Module org.jooq
Package org.jooq

Interface Binding<T,​U>

Type Parameters:
T - The database type - i.e. any type available from SQLDataType
U - The user type
All Superinterfaces:
All Known Implementing Classes:
AbstractBinding, AbstractXMLasObjectBinding, BlobBinding, ClobBinding, DateAsTimestampBinding, DefaultBinding, LocalDateAsLocalDateTimeBinding, NClobBinding, XMLasDOMBinding

public interface Binding<T,​U> extends Serializable
An SPI (Service Provider Interface) that exposes all low-level interactions with JDBC bind variables.

This SPI is used by jOOQ users to implement support for custom data types that would otherwise not be supported by jOOQ and/or JDBC. All of jOOQ's internal support for bind variable types is implemented in DefaultBinding.

Creating user defined DataTypes

jOOQ provides built in data types through SQLDataType. Users can define their own data types programmatically by calling DataType.asConvertedDataType(Converter) or DataType.asConvertedDataType(Binding), for example. Custom data types can also be defined on generated code using the <forcedType/> configuration, see the manual for more details

Lukas Eder