Interface ArgumentFactory

All Known Subinterfaces:
ArgumentFactory.Preparable
All Known Implementing Classes:
AbstractArgumentFactory, BitStringEnumSetArgumentFactory, BlobInputStreamArgumentFactory, BoxedArgumentFactory, BuiltInArgumentFactory, BuiltInArgumentFactory.LegacyEnumByNameArgumentFactory, CharSequenceArgumentFactory, ClobReaderArgumentFactory, DateTimeArgumentFactory, DelegatingArgumentFactory, DirectArgumentFactory, DurationArgumentFactory, EssentialsArgumentFactory, GuavaArguments.Factory, HStoreArgumentFactory, InetArgumentFactory, InternetArgumentFactory, JavaTimeArgumentFactory, JavaTimeArgumentFactory, JavaTimeZoneIdArgumentFactory, JsonArgumentFactory, JsonArgumentFactory, MacAddrArgumentFactory, NVarcharArgumentFactory, ObjectArgumentFactory, OptionalArgumentFactory, PeriodArgumentFactory, PGobjectArgumentFactory, PrimitivesArgumentFactory, SetObjectArgumentFactory, SqlArgumentFactory, SqlArrayArgumentFactory, SqlTimeArgumentFactory, TypedEnumArgumentFactory, UntypedNullArgumentFactory, URLArgumentFactory, UUIDArgumentFactory, VavrValueArgumentFactory
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
    Interface
    Description
    static interface 
    ArgumentFactory extension interface that allows preparing arguments for efficient batch binding.
  • Method Summary

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