public class DBRecordListFactoryImpl<T extends DBRecordBase> extends Object implements DBRecordListFactory<T>
Modifier and Type | Field and Description |
---|---|
protected Constructor<T> |
constructor |
protected static org.slf4j.Logger |
log |
protected DBRowSet |
rowset |
Constructor and Description |
---|
DBRecordListFactoryImpl(Class<T> recordClass,
Class<? extends DBContext> contextClass,
DBRowSet rowset)
Constructs a DBRecordListFactoryImpl based on an DBRecord class
|
DBRecordListFactoryImpl(Constructor<T> constructor,
DBRowSet rowset)
Constructs a DBRecordListFactoryImpl based on an DBRecord constructor
|
Modifier and Type | Method and Description |
---|---|
void |
completeQuery(List<T> list) |
protected static <T extends DBRecordBase> |
findRecordConstructor(Class<T> recordClass,
Class<? extends DBContext> contextClass,
Class<? extends DBRowSet> rowsetClass)
Finds a constructor for recordClass
|
List<T> |
newList(int capacity) |
T |
newRecord(int rownum,
DBRecordData recData) |
void |
prepareQuery(DBCommand cmd,
DBContext context) |
protected static final org.slf4j.Logger log
protected final Constructor<T extends DBRecordBase> constructor
protected final DBRowSet rowset
public DBRecordListFactoryImpl(Constructor<T> constructor, DBRowSet rowset)
constructor
- the DBRecord constructorrowset
- the rowset for the created recordspublic DBRecordListFactoryImpl(Class<T> recordClass, Class<? extends DBContext> contextClass, DBRowSet rowset)
recordClass
- the record class to be created for this listcontextClass
- the database context classrowset
- the rowset for the created recordsprotected static <T extends DBRecordBase> Constructor<T> findRecordConstructor(Class<T> recordClass, Class<? extends DBContext> contextClass, Class<? extends DBRowSet> rowsetClass)
recordClass
- the DBRecord class to instantiatecontextClass
- the context paramrowsetClass
- the rowset parampublic void prepareQuery(DBCommand cmd, DBContext context)
prepareQuery
in interface DBRecordListFactory<T extends DBRecordBase>
public List<T> newList(int capacity)
newList
in interface DBRecordListFactory<T extends DBRecordBase>
public T newRecord(int rownum, DBRecordData recData)
newRecord
in interface DBRecordListFactory<T extends DBRecordBase>
public void completeQuery(List<T> list)
completeQuery
in interface DBRecordListFactory<T extends DBRecordBase>
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.