|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object isql.predicate.DoublePredicate
public class DoublePredicate
Returns a view that is the result of AND-ing (or OR-ing) all the views (table rows in relation) that return from the input conditions. E.g. WHERE T1.C1 = T2.C2 AND T2.C3 = T3.C4 the two predicates have the table T2 in common. In this case the result contains all the view rows of the first predicate that match the view rows of the second predicate that contain the same T2 table rows.
Nested Class Summary | |
---|---|
static class |
DoublePredicate.AddRowAnyway
Add always a row. |
static class |
DoublePredicate.AddRowOnlyIfInBoth
Add row to the result view only if both the views have, for that row, the same index in the merge table |
static class |
DoublePredicate.AddRowOnlyIfInJustInOne
Add row to the result view only if only one of the views have, for that row, a specific index in the merge table In this case the other table will have dummy values (-1) for the column indices in that row |
static interface |
DoublePredicate.IAddRow
Add row to the result view only at a certain condition |
static class |
DoublePredicate.MergeRowsAnd
In case of an AND between two conditions, the views have to be merged so that only the row indices that are in both views are stored in the result view |
static class |
DoublePredicate.MergeRowsOr
In case of an AND between two conditions, the views have to be merged so that the result view contains the union of the rows indices of the views. |
Constructor Summary | |
---|---|
DoublePredicate(java.util.List<IPredicate> lstPredicate,
isql.predicate.IMergeRows mergeRows,
ColumnValues values)
|
Method Summary | |
---|---|
WhereView |
apply()
applies the AND/OR to the predicates. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DoublePredicate(java.util.List<IPredicate> lstPredicate, isql.predicate.IMergeRows mergeRows, ColumnValues values)
Method Detail |
---|
public WhereView apply() throws ISQLException
ISQLException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |