Interface ArgumentFactory

All Known Subinterfaces:
All Known Implementing Classes:
AbstractArgumentFactory, BuiltInArgumentFactory, CharSequenceArgumentFactory, DateTimeArgumentFactory, DirectArgumentFactory, DurationArgumentFactory, HStoreArgumentFactory, InetArgumentFactory, JavaTimeArgumentFactory, JavaTimeZoneIdArgumentFactory, ObjectArgumentFactory, PeriodArgumentFactory, SetObjectArgumentFactory, SqlArrayArgumentFactory, TypedEnumArgumentFactory, UUIDArgumentFactory
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ArgumentFactory
Inspect a value with optional static type information and produce an Argument that binds the value to a prepared statement. Make sure to override Object.toString() in your Argument instances if you want to be able to log their values with an SqlLogger.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    static interface 
    ArgumentFactory extension interface that allows preparing arguments for efficient batch binding.
  • Method Summary

    Modifier and Type
    build(Type type, Object value, ConfigRegistry config)
    Returns an Argument for the given value if the factory supports it; empty otherwise.