Package org.jdbi.v3.core.array
Class SqlArrayTypeImpl<T>
java.lang.Object
org.jdbi.v3.core.array.SqlArrayTypeImpl<T>
- All Implemented Interfaces:
SqlArrayType<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertArrayElement(T element) Returns an equivalent value in a type supported by the JDBC vendor.Returns the vendor-specific SQL type nameStringfor the element typeT.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jdbi.v3.core.array.SqlArrayType
getArrayElementClass
-
Field Details
-
typeName
-
conversion
-
-
Constructor Details
-
SqlArrayTypeImpl
-
-
Method Details
-
getTypeName
Description copied from interface:SqlArrayTypeReturns the vendor-specific SQL type nameStringfor the element typeT. This value will be passed toConnection.createArrayOf(String, Object[])to create SQL arrays.- Specified by:
getTypeNamein interfaceSqlArrayType<T>- Returns:
- the type name
-
convertArrayElement
Description copied from interface:SqlArrayTypeReturns an equivalent value in a type supported by the JDBC vendor. If element typeTis already supported by the JDBC vendor, this method may returnelementwithout modification.- Specified by:
convertArrayElementin interfaceSqlArrayType<T>- Parameters:
element- the element to convert- Returns:
- the converted element
-