public abstract class BaseMappedQuery<T,ID> extends BaseMappedStatement<T,ID> implements GenericRowMapper<T>
Modifier and Type | Field and Description |
---|---|
protected FieldType[] |
resultsFieldTypes |
argFieldTypes, clazz, connectionSource, dao, idField, logger, statement, tableInfo
Modifier | Constructor and Description |
---|---|
protected |
BaseMappedQuery(Dao<T,ID> dao,
TableInfo<T,ID> tableInfo,
String statement,
FieldType[] argFieldTypes,
FieldType[] resultsFieldTypes) |
Modifier and Type | Method and Description |
---|---|
T |
mapRow(DatabaseResults results)
Used to convert a results row to an object.
|
void |
setParentInformation(Object parent,
Object parentId)
If we have a foreign collection object then this sets the value on the foreign object in the class.
|
convertIdToFieldObject, getFieldObjects, toString
protected final FieldType[] resultsFieldTypes
public T mapRow(DatabaseResults results) throws SQLException
GenericRowMapper
mapRow
in interface GenericRowMapper<T>
results
- Results object we are mapping.SQLException
- If we could not get the SQL results or instantiate the object.This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.