getMappingsForColumn(String columnName) Returns a list of all the
ColumnMapping s that are mapped to the
column name.
Parameters: columnName - The column name for the mapped columns.
getMappingsForColumn(int columnIndex) Returns a list of all the
ColumnMapping s that are mapped to the
column index.
Parameters: columnIndex - The column index for the mapped columns.
Creates a new ResultSet to Resource
mapping. Must set at least the alias, the select query, and at lease one
id mapping.
Indexing of unmapped columns is diasabled by default.
ResultSetToResourceMapping
public ResultSetToResourceMapping(String alias, String selectQuery)(Code)
Creates a new ResultSet to Resource mapping
using the supplied alias and select query. At least one id mapping is
required to be configured as well.
Indexing of unmapped columns is diasabled by default.
Parameters: alias - The alias of the mapped Resource. Parameters: selectQuery - The select query that generates teh ResultSet.
Indexing of unmapped columns is diasabled by default.
Parameters: alias - The alias of the mapped Resource. Parameters: selectQuery - The select query that generates teh ResultSet. Parameters: idMapping - Id mapping used to map an id column.
Returns a list of all the
ColumnMapping s that are mapped to the
column name.
Parameters: columnName - The column name for the mapped columns. A list of all the ColumnMappings.
Returns a list of all the
ColumnMapping s that are mapped to the
column index.
Parameters: columnIndex - The column index for the mapped columns. A list of all the ColumnMappings.