T
- the type of target data modelpublic interface DataModelJdbcSupport<T>
Modifier and Type | Interface and Description |
---|---|
static interface |
DataModelJdbcSupport.DataModelPreparedStatement<T>
Supports
PreparedStatement interface for data models. |
static interface |
DataModelJdbcSupport.DataModelResultSet<T>
Supports
ResultSet interface for data models. |
Modifier and Type | Method and Description |
---|---|
DataModelJdbcSupport.DataModelPreparedStatement<T> |
createPreparedStatementSupport(PreparedStatement statement,
List<String> columnNames)
Creates a new
DataModelJdbcSupport.DataModelPreparedStatement for the specified columns. |
DataModelJdbcSupport.DataModelResultSet<T> |
createResultSetSupport(ResultSet resultSet,
List<String> columnNames)
Creates a new
DataModelJdbcSupport.DataModelResultSet for the specified columns. |
Map<String,String> |
getColumnMap()
Returns the column names into property names mapping.
|
Class<T> |
getSupportedType()
Returns the supported data model type.
|
boolean |
isSupported(List<String> columnNames)
Checks whether this object supports the target column names.
|
Class<T> getSupportedType()
Map<String,String> getColumnMap()
boolean isSupported(List<String> columnNames)
columnNames
- the column namestrue
to support the columns names, otherwise false
IllegalArgumentException
- if some parameters were null
DataModelJdbcSupport.DataModelResultSet<T> createResultSetSupport(ResultSet resultSet, List<String> columnNames)
DataModelJdbcSupport.DataModelResultSet
for the specified columns.
The resultSet
must have results corresponded with the columnNames
in same order.resultSet
- the target result set to be supportedcolumnNames
- the column names corresponding with result columns,
the columnNames[i]
is mapped into resultSet.get*(i + 1)
.IllegalArgumentException
- if this does not support target columns,
or any parameter is null
isSupported(List)
DataModelJdbcSupport.DataModelPreparedStatement<T> createPreparedStatementSupport(PreparedStatement statement, List<String> columnNames)
DataModelJdbcSupport.DataModelPreparedStatement
for the specified columns.
The statement
must have parameters corresponded with the columnNames
in same order.statement
- the target statement to be supportedcolumnNames
- the column names corresponding with paremeters,
the columnNames[i]
is mapped into statement.set*(i + 1, column-value)
.IllegalArgumentException
- if this does not support target columns,
or any parameter is null
isSupported(List)
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.