Interface ArrayParameter<E>
- Type Parameters:
E
- the Java element type of the array; each element must be bindable to the SQL element type named bygetBaseTypeName()
by the activePreparedStatementBinder
.
Encapsulates
PreparedStatement
parameter data meant to be bound to a formal java.sql.Array
type by PreparedStatementBinder
.
The baseTypeName
corresponds to the value of java.sql.Array#getBaseTypeName()
and is database-specific.
You may determine available baseTypeName
values for your database by examining metadata exposed via Database.readDatabaseMetaData(DatabaseMetaDataReader)
.
Stardard instances may be constructed via Parameters.arrayOf(String, Object[])
and Parameters.arrayOf(String, List)
.
Implementations should be threadsafe.
- Since:
- 3.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionGets the element type of this SQL ARRAY, which corresponds to the value ofjava.sql.Array#getBaseTypeName()
and is database-specific.Gets the elements of this SQL ARRAY.
-
Method Details
-
getBaseTypeName
Gets the element type of this SQL ARRAY, which corresponds to the value ofjava.sql.Array#getBaseTypeName()
and is database-specific.- Returns:
- the element type of this SQL ARRAY
-
getElements
Gets the elements of this SQL ARRAY.- Returns:
- the elements of this SQL ARRAY
-