A
- type of DataObject
AF
- type of DataObjectFactory
T
- type of TupleFactory.Tuple
public class TupleFactory<A extends DataObject,AF extends DataObjectFactory<A>,T extends TupleFactory.Tuple<A>> extends AbstractContexed implements Targetted<T>
DataObject
s 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.Tuple s
Filters on member types can be added |
class |
TupleFactory.TupleIterator
Iterator over
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. |
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, resetLogger
public 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
DataFault
public FilterResult<T> makeResult(SQLFilter<? super T> f, int start, int max) throws DataFault
DataFault
public final long getCount(BaseFilter<T> s) throws DataException
DataException
public final boolean exists(BaseFilter<T> s) throws DataException
DataException
public java.lang.Class<T> getTarget()
Targetted
getTarget
in interface Targetted<T extends TupleFactory.Tuple<A>>
public java.util.Collection<AF> getMemberFactories()
public boolean hasMemberFactories()