A - type of DataObjectAF - type of DataObjectFactoryT - type of TupleFactory.Tuplepublic class TupleFactory<A extends DataObject,AF extends DataObjectFactory<A>,T extends TupleFactory.Tuple<A>> extends AbstractContexed implements Targetted<T>
DataObjects generated by a join.
Each result in the join becomes a tuple. Where a record from one of the contributing
tables appears in multiple results from the join it also appears in multiple tuples.| Modifier and Type | Class and Description |
|---|---|
protected class |
TupleFactory.AbstractFinder<X> |
class |
TupleFactory.AcceptFilterConverter
An
AcceptFilter that forwards onto an AcceptFilter on a member |
class |
TupleFactory.FilterCounter |
class |
TupleFactory.FilterExists |
protected class |
TupleFactory.FilterSet |
static class |
TupleFactory.Tuple<A extends DataObject> |
class |
TupleFactory.TupleAndFilter
A combination filter for
TupleFactory.Tuples
Filters on member types can be added |
class |
TupleFactory.TupleIterator
Iterator over
TupleFactory.Tuples
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. |
class |
TupleFactory.TupleMapper |
conn| Constructor and Description |
|---|
TupleFactory(AppContext c,
AF... fac) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFactory(AF fac) |
void |
addSource(java.lang.StringBuilder sb) |
boolean |
exists(BaseFilter<T> s) |
long |
getCount(BaseFilter<T> s) |
java.lang.String |
getDBTag() |
AF |
getFactory(java.lang.String tag) |
java.util.Collection<AF> |
getMemberFactories()
get the component factories of the tuples
|
java.util.Set<Repository> |
getSourceTables() |
java.lang.Class<T> |
getTarget()
Get the type of the returned object as far as it is known.
|
boolean |
hasMemberFactories() |
FilterResult<T> |
makeResult(BaseFilter<T> f) |
FilterResult<T> |
makeResult(SQLFilter<? super T> f,
int start,
int max) |
T |
makeTuple() |
getContext, getLogger, resetLoggerpublic TupleFactory(AppContext c, AF... fac)
public void addFactory(AF fac)
public AF getFactory(java.lang.String tag)
public T makeTuple()
public void addSource(java.lang.StringBuilder sb)
public final java.util.Set<Repository> getSourceTables()
public java.lang.String getDBTag()
public FilterResult<T> makeResult(BaseFilter<T> f) throws DataFault
DataFaultpublic FilterResult<T> makeResult(SQLFilter<? super T> f, int start, int max) throws DataFault
DataFaultpublic final long getCount(BaseFilter<T> s) throws DataException
DataExceptionpublic final boolean exists(BaseFilter<T> s) throws DataException
DataExceptionpublic java.lang.Class<T> getTarget()
TargettedgetTarget in interface Targetted<T extends TupleFactory.Tuple<A>>public java.util.Collection<AF> getMemberFactories()
public boolean hasMemberFactories()