interface ValueAdapter<T>
Interface describing an object that is used to adapt a PreparedStatement or a ResultSet by getting/setting a value of the appropriate type.
javaSqlTypesTypeOrFail |
Give the java.sql.Types type of this adapter if it is an adapter for nullable types. If it is not, fail with an IllegalArgumentException. This value is needed when setting a value to null. See PreparedStatement.setNull abstract val javaSqlTypesTypeOrFail: Int |
get |
Get the column at index in set. abstract fun get(set: ResultSet, index: Int): T |
set |
Set the column at index within the statement to value. abstract fun set(statement: PreparedStatement, index: Int, value: T): Unit |
update |
Update (set) the column at index in set to value. abstract fun update(set: ResultSet, index: Int, value: T): Unit |
ValueAdapterNotNull |
Abstract superclass for all value adapters of non-nullable types. This provides an implementation of a method that creates a value adapter of the corresponding nullable type. abstract class ValueAdapterNotNull<T> : ValueAdapter<T> |