T
- the class to map from and to a database record@FunctionalInterface public interface RecordMapper<T> extends Serializable
Modifier and Type | Method and Description |
---|---|
T |
processRow(ResultSet resultSet,
int rowOffset,
Criteria criteria)
Constructs the object from the current row in the resultSet.
|
T processRow(ResultSet resultSet, int rowOffset, Criteria criteria) throws TorqueException
resultSet
- the resultSet to operate on, already pointing
to the correct row. Not null.rowOffset
- a possible offset in the columns to be considered
(if previous columns contain other objects), or 0 for no offset.criteria
- the Criteria which contains the query to process,
or null if not known or the query was not produced by a Criteria.
Can be used by the RecordMapper to determine the columns
contained in the result set.TorqueException
- when the mapping fails.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.