public class MapTransformer<T> extends Object implements IQueryRowTransformer<T>
| Constructor and Description |
|---|
MapTransformer(Query query,
boolean reuse,
QueryMapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAll(Collection<T> result) |
Collection<T> |
beforeAll(ResultSetWrapper rsw) |
protected MapTable |
buildTree() |
protected <T> T |
fromDb(ResultSetWrapper rsw,
int columnIndex,
Class<T> type) |
Query |
getQuery() |
void |
onTransformation(Collection<T> result,
T object) |
void |
setQuery(Query query) |
T |
transform(ResultSetWrapper rsw) |
public MapTransformer(Query query, boolean reuse, QueryMapper mapper)
public Query getQuery()
getQuery in interface IQueryRowTransformer<T>public void setQuery(Query query)
setQuery in interface IQueryRowTransformer<T>public Collection<T> beforeAll(ResultSetWrapper rsw)
beforeAll in interface IRowTransformer<T>protected MapTable buildTree()
public T transform(ResultSetWrapper rsw) throws SQLException
transform in interface IRowTransformer<T>SQLExceptionpublic void onTransformation(Collection<T> result, T object)
onTransformation in interface IRowTransformer<T>public void afterAll(Collection<T> result)
afterAll in interface IRowTransformer<T>protected <T> T fromDb(ResultSetWrapper rsw, int columnIndex, Class<T> type) throws SQLException
SQLExceptionCopyright © 2019. All rights reserved.