public class DataListFactoryImpl<T extends DataListEntry> extends Object implements DataListFactory<T>
| Modifier and Type | Field and Description |
|---|---|
protected Constructor<T> |
constructor |
protected DataListHead |
head |
| Constructor and Description |
|---|
DataListFactoryImpl(Class<T> listEntryClass,
DataListHead head)
Constructs a DataListFactoryImpl based on a DateListEntry class and a DataListHead
|
DataListFactoryImpl(Constructor<T> constructor,
DataListHead head)
Constructs a DataListFactoryImpl based on a DateListEntry constructor and a DataListHead
|
| Modifier and Type | Method and Description |
|---|---|
void |
completeQuery(List<T> list) |
protected static <T extends DataListEntry> |
findEntryConstructor(Class<?> listEntryClass,
Class<? extends DataListHead> listHeadClass)
Finds a constructor for listEntryClass
|
protected T |
newEntry(int rownum,
Object[] values) |
T |
newEntry(int rownum,
RecordData dataRow) |
List<T> |
newList(int capacity) |
void |
prepareQuery(Object cmd,
Object context) |
protected final Constructor<T extends DataListEntry> constructor
protected final DataListHead head
public DataListFactoryImpl(Constructor<T> constructor, DataListHead head)
constructor - the DataListEntry constructorhead - the listHead objectpublic DataListFactoryImpl(Class<T> listEntryClass, DataListHead head)
listEntryClass - the class of the DataListEntryhead - the listHead objectprotected static <T extends DataListEntry> Constructor<T> findEntryConstructor(Class<?> listEntryClass, Class<? extends DataListHead> listHeadClass)
T - the type of the DataListEntrylistEntryClass - the listEntryClass to instantiatelistHeadClass - the DataListHead classpublic void prepareQuery(Object cmd, Object context)
prepareQuery in interface DataListFactory<T extends DataListEntry>public List<T> newList(int capacity)
newList in interface DataListFactory<T extends DataListEntry>public T newEntry(int rownum, RecordData dataRow)
newEntry in interface DataListFactory<T extends DataListEntry>public void completeQuery(List<T> list)
completeQuery in interface DataListFactory<T extends DataListEntry>Copyright © 2008–2023 Apache Software Foundation. All rights reserved.