public class JDBCSetProvider extends AbstractFeatureSetProvider
Modifier and Type | Field and Description |
---|---|
protected String |
filter |
protected Boolean |
isEmpty |
protected String |
order |
protected List |
resultSetIDReferenced |
protected Long |
size |
Constructor and Description |
---|
JDBCSetProvider(JDBCStoreProvider store,
FeatureQuery query,
FeatureType featureType) |
Modifier and Type | Method and Description |
---|---|
void |
addResulsetReference(int resulsetID) |
boolean |
canFilter() |
boolean |
canIterateFromIndex() |
boolean |
canOrder() |
protected JDBCIterator |
createDefaultFastIterator(int resultSetID) |
protected JDBCIterator |
createDefaultIterator(int resultSetID) |
protected JDBCIterator |
createFastIterator(long index)
Creates a new fast
Iterator , begginning at the specified data
index. |
protected JDBCIterator |
createIterator(long index)
Creates a new
Iterator , begginning at the specified data index. |
protected void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
int |
getDefaultFetchSize() |
protected String |
getEscapedFieldName(String fieldName) |
protected int |
getFetchSize() |
long |
getSize() |
protected String |
getSQL(long fromIndex) |
protected String |
getSqlForEvaluator(Evaluator filter) |
boolean |
isEmpty() |
void |
removeResulsetReference(int resulsetID) |
void |
setDefaultFetchSize(int defaultFetchSize) |
protected void |
setFilter(Evaluator filter) |
protected void |
setOrder(FeatureQueryOrder order) |
fastIterator, fastIterator, getFeatureType, getQuery, getStore, iterator, iterator
dispose, dispose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose
protected String filter
protected String order
protected Long size
protected Boolean isEmpty
protected List resultSetIDReferenced
public JDBCSetProvider(JDBCStoreProvider store, FeatureQuery query, FeatureType featureType) throws DataException
DataException
public int getDefaultFetchSize()
public void setDefaultFetchSize(int defaultFetchSize)
defaultFetchSize
- the defaultFetchSize to setprotected void setOrder(FeatureQueryOrder order)
protected void setFilter(Evaluator filter)
public boolean canFilter()
public boolean canIterateFromIndex()
public boolean canOrder()
protected void doDispose() throws BaseException
AbstractDisposable
AbstractDisposable.dispose()
method, to be
implemented by child classes.doDispose
in class AbstractDisposable
BaseException
AbstractDisposable.dispose()
protected String getSQL(long fromIndex) throws DataException
DataException
public long getSize() throws DataException
DataException
public boolean isEmpty() throws DataException
DataException
protected int getFetchSize()
protected JDBCIterator createFastIterator(long index) throws DataException
AbstractFeatureSetProvider
Iterator
, begginning at the specified data
index. By fast this means the object instances of data (
FeatureProvider
) may be reused between the
Iterator.next()
method invocations.createFastIterator
in class AbstractFeatureSetProvider
index
- the first element position to be returned by the
Iterator
Iterator
DataException
- if there is an error creating the Iterator
protected JDBCIterator createDefaultFastIterator(int resultSetID) throws DataException
DataException
protected JDBCIterator createIterator(long index) throws DataException
AbstractFeatureSetProvider
Iterator
, begginning at the specified data index.createIterator
in class AbstractFeatureSetProvider
index
- the first element position to be returned by the
Iterator
Iterator
DataException
- if there is an error creating the Iterator
protected JDBCIterator createDefaultIterator(int resultSetID) throws DataException
DataException
public void addResulsetReference(int resulsetID)
public void removeResulsetReference(int resulsetID)