public class TupleFactory.TupleIterator extends ResultIterator<T>
TupleFactory.Tuple
s
Run-time type checking on the filters is disabled so SQL filters of either factory
(and join expressions) can be used to filter the Tuple.Modifier | Constructor and Description |
---|---|
protected |
TupleIterator() |
|
TupleIterator(BaseFilter<T> s) |
|
TupleIterator(BaseFilter<T> fil,
int start,
int max) |
Modifier and Type | Method and Description |
---|---|
protected void |
addSource(java.lang.StringBuilder sb) |
protected java.lang.String |
getDBTag()
Get the tag used to create the connection for this query from
a
DatabaseService . |
boolean |
getQualify()
Should field names be qualified.
|
protected java.util.Set<Repository> |
getSourceTables() |
iterate, setup, setVisitor
close, fallbackOrder, getChunkSize, hasNext, next, remove, setChunkSize, useChunking
getContext, getFilter, getLockClause, getLogger, getModify, getModifyParameters, getTarget, getTargetParameters, makeDefault, makeEntry, makeSelect, setFilter, setMapper, setQualify, toString
getFilterArguments, isEmpty, makeWhere, setParams
protected TupleIterator()
public TupleIterator(BaseFilter<T> fil, int start, int max) throws DataFault
c
- target
- DataFault
public TupleIterator(BaseFilter<T> s) throws DataFault
s
- DataFault
protected java.lang.String getDBTag()
FilterReader
DatabaseService
.
Normally this just queries the repository for the main table in the query
(as this table HAS to take part) and
relies on the query failing if there is an illegal join.
Any more advanced checking should really be done when constructing the filter
as this is where there is a chance to recover from the error.getDBTag
in class FilterReader<T extends TupleFactory.Tuple<A>,T extends TupleFactory.Tuple<A>>
protected void addSource(java.lang.StringBuilder sb)
addSource
in class FilterReader<T extends TupleFactory.Tuple<A>,T extends TupleFactory.Tuple<A>>
public boolean getQualify()
FilterReader
getQualify
in class FilterReader<T extends TupleFactory.Tuple<A>,T extends TupleFactory.Tuple<A>>
protected java.util.Set<Repository> getSourceTables()
getSourceTables
in class FilterReader<T extends TupleFactory.Tuple<A>,T extends TupleFactory.Tuple<A>>