Interface ArgumentFactory

All Known Subinterfaces:
ArgumentFactory.Preparable
All Known Implementing Classes:
AbstractArgumentFactory, BitStringEnumSetArgumentFactory, CharSequenceArgumentFactory, DateTimeArgumentFactory, DirectArgumentFactory, DurationArgumentFactory, HStoreArgumentFactory, InetArgumentFactory, JavaTimeArgumentFactory, JavaTimeZoneIdArgumentFactory, JsonArgumentFactory, 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
    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.