public abstract class AbstractRecordIterator<E> extends AbstractJdbcQuery implements IRecordIterator<E>
| Modifier and Type | Field and Description |
|---|---|
protected Class<E> |
clazz |
private IEntityMetaManager |
entityMetaManager |
protected long |
latestId |
protected long |
maxId |
protected String |
pkName |
protected IQuery |
query |
protected Queue<E> |
recordQ |
protected int |
step |
static int |
STEP |
dbCluster, primaryCache, secondCache, txManager| Constructor and Description |
|---|
AbstractRecordIterator(Class<E> clazz) |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
getMaxId() |
int |
getStep() |
E |
next() |
List<E> |
nextMore()
批量返回
|
void |
remove() |
void |
setQuery(IQuery query)
设置遍历时查询的条件
|
void |
setStep(int step)
设置批量读取记录的条数
|
selectByPksWithCache, selectByQuery, selectBySql, selectCountByQuery, selectCountWithCache, selectPksByQueryfillParam, getDBCluster, getPrimaryCache, getSecondCache, getTransactionManager, isCacheAvailable, isCacheAvailable, isSecondCacheAvailable, isSecondCacheAvailable, setDBCluster, setPrimaryCache, setSecondCache, setTransactionManagerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCountgetDBCluster, getPrimaryCache, getSecondCache, getTransactionManager, setDBCluster, setPrimaryCache, setSecondCache, setTransactionManagerprivate IEntityMetaManager entityMetaManager
public static final int STEP
protected String pkName
protected IQuery query
protected int step
protected long latestId
protected long maxId
public List<E> nextMore()
IRecordIteratornextMore in interface IRecordIterator<E>public void setQuery(IQuery query)
IRecordIteratorsetQuery in interface IRecordIterator<E>public abstract long getMaxId()
public int getStep()
public void setStep(int step)
IRecordIteratorsetStep in interface IRecordIterator<E>Copyright © 2015. All rights reserved.