H
- Type of home tableI
- Type of intermediate tableT
- Type of target tablepublic class CompositeIndexedSQLValue<H extends DataObject,I extends DataObject,T extends DataObject> extends java.lang.Object implements IndexedSQLValue<H,T>, GroupingSQLValue<IndexedReference>
IndexedSQLValue
that extends through a joinConstructor and Description |
---|
CompositeIndexedSQLValue(IndexedSQLValue<H,I> base,
IndexedSQLValue<I,T> branch) |
Modifier and Type | Method and Description |
---|---|
int |
add(java.lang.StringBuilder sb,
boolean qualify)
Add the expression to a StringBuilder
|
DataObjectFactory<T> |
getFactory()
get the remote
DataObjectFactory |
SQLFilter<H> |
getFilter(MatchCondition match,
IndexedReference val)
Create a
SQLFilter comparing against the target value |
java.lang.Class<H> |
getFilterType()
get the type bounds on the produced
SQLFilter . |
SQLExpression<java.lang.Integer> |
getIDExpression()
Get a Integer valued
SQLExpression for the id of the referenced value. |
SQLFilter<H> |
getNullFilter(boolean is_null)
create a
SQLFilter checking if the target value is or is not null. |
SQLFilter<H> |
getOrderFilter(boolean descending)
create a
SQLFilter that orders results by the target value. |
java.util.List<PatternArgument> |
getParameters(java.util.List<PatternArgument> list)
Add parameters for this value to a list.
|
SQLFilter |
getRequiredFilter()
Get an SQLFilter required to be added to the filter set.
|
SQLFilter<H> |
getSQLFilter(SQLFilter<T> fil)
Create a filter for the home table out of a a filter on the target object.
|
java.lang.Class<IndexedReference> |
getTarget()
Get the type of the returned object as far as it is known.
|
IndexedReference<T> |
makeObject(java.sql.ResultSet rs,
int pos)
Extract a result of the expression from a ResultSet into an object of the specified type.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addGroup, checkContentsCanGroup, getGroupParameters, groupingIsomorphic
public CompositeIndexedSQLValue(IndexedSQLValue<H,I> base, IndexedSQLValue<I,T> branch) throws CannotFilterException
CannotFilterException
public int add(java.lang.StringBuilder sb, boolean qualify)
SQLValue
add
in interface SQLValue<IndexedReference>
sb
- StringBuilder to modifyqualify
- boolean should fields be qualified with the table namepublic java.util.List<PatternArgument> getParameters(java.util.List<PatternArgument> list)
SQLValue
getParameters
in interface SQLValue<IndexedReference>
list
- to modifypublic IndexedReference<T> makeObject(java.sql.ResultSet rs, int pos) throws DataException, java.sql.SQLException
SQLValue
makeObject
in interface SQLValue<IndexedReference>
rs
- ResultSetDataException
java.sql.SQLException
public SQLFilter getRequiredFilter()
SQLValue
getRequiredFilter
in interface SQLValue<IndexedReference>
public java.lang.Class<IndexedReference> getTarget()
Targetted
getTarget
in interface Targetted<IndexedReference>
public SQLFilter<H> getFilter(MatchCondition match, IndexedReference val) throws CannotFilterException, NoSQLFilterException
FilterProvider
SQLFilter
comparing against the target valuegetFilter
in interface FilterProvider<H extends DataObject,IndexedReference>
SQLFilter
CannotFilterException
NoSQLFilterException
public SQLFilter<H> getNullFilter(boolean is_null) throws CannotFilterException, NoSQLFilterException
FilterProvider
SQLFilter
checking if the target value is or is not null.getNullFilter
in interface FilterProvider<H extends DataObject,IndexedReference>
SQLFilter
CannotFilterException
NoSQLFilterException
public SQLFilter<H> getOrderFilter(boolean descending) throws CannotFilterException, NoSQLFilterException
FilterProvider
SQLFilter
that orders results by the target value. This may involve joins so
may not be just an OrderFilter
though it will contain one.getOrderFilter
in interface FilterProvider<H extends DataObject,IndexedReference>
SQLFilter
CannotFilterException
NoSQLFilterException
public java.lang.Class<H> getFilterType()
FilterProvider
SQLFilter
.getFilterType
in interface FilterProvider<H extends DataObject,IndexedReference>
public SQLFilter<H> getSQLFilter(SQLFilter<T> fil) throws CannotFilterException
IndexedSQLValue
getSQLFilter
in interface IndexedSQLValue<H extends DataObject,T extends DataObject>
SQLFilter
CannotFilterException
public DataObjectFactory<T> getFactory() throws java.lang.Exception
IndexedSQLValue
DataObjectFactory
getFactory
in interface IndexedSQLValue<H extends DataObject,T extends DataObject>
DataObjectFactory
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
public SQLExpression<java.lang.Integer> getIDExpression()
IndexedSQLValue
SQLExpression
for the id of the referenced value.
This is used to provide match filters for two references.getIDExpression
in interface IndexedSQLValue<H extends DataObject,T extends DataObject>
SQLExpression