Top Inners Fields Constructors Methods
org.jooq.impl

public Class DefaultBinding<T, U>

extends Object
implements Binding<T, U>
Class Inheritance
All Implemented Interfaces
org.jooq.Binding, java.io.Serializable
Static Imports
java.lang.Boolean.FALSE, .Boolean.TRUE, java.time.temporal.ChronoField.DAY_OF_MONTH, .ChronoField.HOUR_OF_DAY, .ChronoField.MINUTE_OF_HOUR, .ChronoField.MONTH_OF_YEAR, .ChronoField.NANO_OF_SECOND, .ChronoField.SECOND_OF_MINUTE, .ChronoField.YEAR, java.util.Arrays.asList, java.util.function.Function.identity, java.util.regex.Matcher.quoteReplacement, org.jooq.ContextConverter.scoped, .Geography.geography, .Geometry.geometry, .SQLDialect.CUBRID, .SQLDialect.DEFAULT, .SQLDialect.DERBY, .SQLDialect.FIREBIRD, .SQLDialect.H2, .SQLDialect.HSQLDB, .SQLDialect.MYSQL, .SQLDialect.POSTGRES, .SQLDialect.SQLITE, .SQLDialect.YUGABYTEDB, org.jooq.conf.ParamType.INLINED, org.jooq.impl.Convert.convert, .Convert.patchIso8601Timestamp, .DSL.cast, .DSL.field, .DSL.inline, .DSL.log, .DSL.name, .DSL.using, .DefaultBinding.DefaultDoubleBinding.REQUIRES_LITERAL_CAST, .DefaultBinding.DefaultDoubleBinding.infinity, .DefaultBinding.DefaultDoubleBinding.nan, .DefaultBinding.DefaultEnumTypeBinding.pgEnumValue, .DefaultBinding.DefaultEnumTypeBinding.pgRenderEnumCast, .DefaultBinding.DefaultJSONBBinding.EMULATE_AS_BLOB, .DefaultBinding.DefaultJSONBinding.patchSnowflakeJSON, .DefaultBinding.DefaultResultBinding.readMultisetJSON, .DefaultBinding.DefaultResultBinding.readMultisetXML, .DefaultDataType.getDataType, .DefaultExecuteContext.localExecuteContext, .DefaultExecuteContext.localTargetConnection, .Internal.arrayType, .Keywords.K_ARRAY, .Keywords.K_AS, .Keywords.K_BLOB, .Keywords.K_CAST, .Keywords.K_DATE, .Keywords.K_DATETIME, .Keywords.K_DATETIME2, .Keywords.K_DATETIMEOFFSET, .Keywords.K_FALSE, .Keywords.K_FORMAT, .Keywords.K_GEOGRAPHY, .Keywords.K_GEOMETRY, .Keywords.K_HOUR_TO_SECOND, .Keywords.K_JSON, .Keywords.K_NULL, .Keywords.K_TIME, .Keywords.K_TIMESTAMP, .Keywords.K_TIMESTAMP_WITH_TIME_ZONE, .Keywords.K_TIME_WITH_TIME_ZONE, .Keywords.K_TRUE, .Keywords.K_YEAR_TO_DAY, .Keywords.K_YEAR_TO_FRACTION, .Names.N_BYTEA, .Names.N_PARSE_JSON, .Names.N_ST_GEOMFROMTEXT, .Names.N_ST_GEOMFROMWKB, .R2DBC.isR2dbc, .SQLDataType.BIGINT, .SQLDataType.BLOB, .SQLDataType.BOOLEAN, .SQLDataType.CHAR, .SQLDataType.DATE, .SQLDataType.DECIMAL_INTEGER, .SQLDataType.DOUBLE, .SQLDataType.INTEGER, .SQLDataType.LONGVARCHAR, .SQLDataType.NUMERIC, .SQLDataType.OTHER, .SQLDataType.REAL, .SQLDataType.ROWID, .SQLDataType.SMALLINT, .SQLDataType.TIME, .SQLDataType.TIMESTAMP, .SQLDataType.VARBINARY, .SQLDataType.VARCHAR, .Tools.CTX, .Tools.apply, .Tools.asInt, .Tools.attachRecords, .Tools.convertBytesToHex, .Tools.convertHexToBytes, .Tools.emulateMultiset, .Tools.enums, .Tools.getMappedUDTName, .Tools.getRecordQualifier, .Tools.isEmpty, .Tools.map, .Tools.needsBackslashEscaping, .Tools.newRecord, .Tools.uncoerce, org.jooq.tools.StringUtils.leftPad, org.jooq.tools.jdbc.JDBCUtils.safeFree, .JDBCUtils.wasNull, org.jooq.tools.reflect.Reflect.onClass, .Reflect.wrapper, org.jooq.util.postgres.PostgresUtils.toDayToSecond, .PostgresUtils.toPGArray, .PostgresUtils.toPGArrayString, .PostgresUtils.toPGInterval, .PostgresUtils.toYearToMonth

Author
Lukas Eder

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv abstract static class
DefaultBinding.InternalBinding<T, U>

An internal binding class for default data type binding implementations.

pack-priv static class
DefaultBinding.OffsetDateTimeParser

[#7986] OffsetDateTime.parse() is way too slow and not lenient enough to handle all the possible RDBMS output formats and quirks.

Field Summary

Modifier and TypeField and Description
pack-priv final Binding<T, U>
pack-priv static final JooqLogger
private static final long
private static final long
private static final Set<SQLDialect>

Constructor Summary

AccessConstructor and Description
public
DefaultBinding(Converter<T, U> converter)

Deprecated for removal. - 3.11 - [#6631] - Use binding(Converter) instead.
public
DefaultBinding(Binding<T, U> delegate)

Method Summary

Modifier and TypeMethod and Description
public static final <T, U> Binding<T, U>
binding(Converter<T, U> converter)

Get the internal default binding for a Converter.

public static final <T> Binding<T, T>
binding(DataType<T> dataType)

Get the internal default binding for a DataType.

pack-priv static final <T, U> Binding<T, U>
binding(DataType<T> dataType, Converter<T, U> converter)

public Converter<T, U>
converter()

Implements org.jooq.Binding.converter.

A converter that can convert between the database type and the custom type.
public void
get(BindingGetResultSetContext<U>
The context object containing all argument objects.
ctx
)

Implements org.jooq.Binding.get.

Get a ResultSet's OUT value.
public void
get(BindingGetStatementContext<U>
The context object containing all argument objects.
ctx
)

Implements org.jooq.Binding.get.

Get a CallableStatement's OUT value.
public void
get(BindingGetSQLInputContext<U>
The context object containing all argument objects.
ctx
)

Implements org.jooq.Binding.get.

Get a SQLInput's OUT value.
pack-priv static final <T, X, U> Binding<T, U>
newBinding(final Converter<X, U> converter, final DataType<T> dataType, final Binding<T, X> binding)

private static final long
parse(Class<? extends Date> type, String date)

public void
register(BindingRegisterContext<U>
The context object containing all argument objects.
ctx
)

Implements org.jooq.Binding.register.

Register a CallableStatement's OUT parameter.
public void
set(BindingSetStatementContext<U>
The context object containing all argument objects.
ctx
)

Implements org.jooq.Binding.set.

Set a PreparedStatement's IN parameter.
public void
set(BindingSetSQLOutputContext<U>
The context object containing all argument objects.
ctx
)

Implements org.jooq.Binding.set.

Set a SQLOutput's IN parameter.
public void
sql(BindingSQLContext<U>
The context object containing all argument objects.
ctx
)

Implements org.jooq.Binding.sql.

Generate SQL code for the bind variable.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
pack-priv static final Map<String, Class<?>>
typeMap(Class<?> type, Scope scope)

pack-priv static final Map<String, Class<?>>
typeMap(Class<?> type, Scope scope, Map<String, Class<?>> result)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait