T - the array element typepublic interface SqlArrayType<T>
| Modifier and Type | Method and Description |
|---|---|
Object |
convertArrayElement(T element)
Returns an equivalent value in a type supported by the JDBC vendor.
|
String |
getTypeName()
Returns the vendor-specific SQL type name
String for the element type T. |
static <T> SqlArrayType<T> |
of(String typeName,
Function<T,?> conversion)
Create a SqlArrayType from the given type and convert function.
|
Object convertArrayElement(T element)
T is already
supported by the JDBC vendor, this method may return element without modification.element - the element to convertString getTypeName()
String for the element type T. This value will be
passed to Connection.createArrayOf(String, Object[]) to create SQL arrays.static <T> SqlArrayType<T> of(String typeName, Function<T,?> conversion)
typeName - the vendor sql type to useconversion - convert the array element to the jdbc representationCopyright © 2019. All rights reserved.