public class JDBCSetProvider extends AbstractFeatureSetProvider
Modifier and Type | Field and Description |
---|---|
protected Boolean |
isEmpty |
protected static Logger |
logger |
protected List<ResulSetControler.ResultSetEntry> |
resultSets |
protected Long |
size |
Constructor and Description |
---|
JDBCSetProvider(AbstractFeatureStoreProvider store,
JDBCHelper helper,
FeatureQuery query,
FeatureType featureType) |
Modifier and Type | Method and Description |
---|---|
boolean |
canFilter() |
boolean |
canIterateFromIndex() |
boolean |
canOrder() |
protected JDBCIterator |
createFastIterator(long index)
Creates a new fast
Iterator , begginning at the specified data
index. |
protected JDBCIterator |
createFastIterator(long index,
long elements) |
protected JDBCIterator |
createIterator(long index)
Creates a new
Iterator , begginning at the specified data index. |
protected JDBCIterator |
createIterator(long index,
long elements) |
protected void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
int |
getDefaultFetchSize() |
protected int |
getFetchSize() |
protected JDBCHelper |
getHelper() |
protected JDBCStoreProvider |
getJDBCStore() |
protected OperationsFactory |
getOperations() |
ResulSetControler |
getResulSetControler() |
long |
getSize() |
boolean |
isEmpty() |
void |
setDefaultFetchSize(int defaultFetchSize) |
fastIterator, fastIterator, fastIterator, getFeatureType, getQuery, getStore, iterator, iterator, iterator
dispose, dispose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose
protected static final Logger logger
protected Long size
protected Boolean isEmpty
protected List<ResulSetControler.ResultSetEntry> resultSets
public JDBCSetProvider(AbstractFeatureStoreProvider store, JDBCHelper helper, FeatureQuery query, FeatureType featureType) throws DataException
DataException
public int getDefaultFetchSize()
public void setDefaultFetchSize(int defaultFetchSize)
defaultFetchSize
- the defaultFetchSize to setprotected JDBCStoreProvider getJDBCStore()
protected JDBCHelper getHelper()
protected OperationsFactory getOperations()
public boolean canIterateFromIndex()
public boolean canFilter()
public boolean canOrder()
public ResulSetControler getResulSetControler()
protected void doDispose() throws BaseException
AbstractDisposable
AbstractDisposable.dispose()
method, to be
implemented by child classes.doDispose
in class AbstractDisposable
BaseException
AbstractDisposable.dispose()
protected int getFetchSize()
public long getSize() throws DataException
DataException
public boolean isEmpty() throws DataException
DataException
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 createFastIterator(long index, long elements) throws DataException
createFastIterator
in class AbstractFeatureSetProvider
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 createIterator(long index, long elements) throws DataException
createIterator
in class AbstractFeatureSetProvider
DataException