public class CompositeMapper extends Object implements RecordMapper<List<Object>>
| Constructor and Description |
|---|
CompositeMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMapper(RecordMapper<?> mapper,
int offset)
Adds a new mapper to be applied to a result set.
|
List<Object> |
processRow(ResultSet resultSet,
int offset,
Criteria criteria)
Maps the current row in the result Set by applying all known mappers
and putting the result of each mapper in the result list.
|
public void addMapper(RecordMapper<?> mapper, int offset)
mapper - the mapper.offset - the offset of the mapper within this mapper, 0 based.public List<Object> processRow(ResultSet resultSet, int offset, Criteria criteria) throws TorqueException
processRow in interface RecordMapper<List<Object>>resultSet - the result set to map, not null.offset - the total column offset of this mapper
within the result set.criteria - The criteria which created the result set, or null
if not known. This parameter is not used by this record mapper.TorqueException - when the mapping fails.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.