|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectisql.predicate.ComparisonPredicate
public class ComparisonPredicate
It builds the view for a single comparison in the WHERE clause (a = b, a <> b...)
| Constructor Summary | |
|---|---|
ComparisonPredicate(IExpression a,
IExpression b,
IComparison comparison)
|
|
| Method Summary | |
|---|---|
WhereView |
apply()
Builds the view resulting from the comparison of the two expressions |
static void |
fillViewMaps(java.lang.Object[] arrA,
java.lang.Object[] arrB,
WhereView viewA,
WhereView viewB,
IComparison comparison)
Fills the views of A and B with the indices of the columns for the rows for which the comparison has success |
static java.lang.Object[] |
toArray(ITypedValue res)
Convert the content of a column into an array, whatever it is |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ComparisonPredicate(IExpression a,
IExpression b,
IComparison comparison)
| Method Detail |
|---|
public WhereView apply()
throws ISQLException
apply in interface IPredicateISQLException
public static void fillViewMaps(java.lang.Object[] arrA,
java.lang.Object[] arrB,
WhereView viewA,
WhereView viewB,
IComparison comparison)
throws ISQLException
arrA - the values of column AarrB - the values of column BviewA - the view related to column A, that gets filled with the indicesviewB - the view related to column B, that gets filled with the indicescomparison - the comparison operator
ISQLExceptionpublic static java.lang.Object[] toArray(ITypedValue res)
res - the content of a column (can be an array or a constant)
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 | |||||||||