|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.sqlscribe.Match
public abstract class Match
Convenient class for constructing common SQL constraints for use in the query builder framework.
| Method Summary | |
|---|---|
static Join |
equals(Column lhs,
Column rhs)
Create new Join enforcing column equality |
static Match |
equals(Column lhs,
java.lang.Object value)
New Equality constraint between a column and a fixed value |
Column |
getLhs()
Get the left hand side of the constraint |
java.lang.String |
getOperator()
Get the Operator for this constraint |
static Join |
greater(Column lhs,
Column rhs)
Create new Join enforcing that the left hand column is greater than the right hand column |
static Match |
greater(Column lhs,
java.lang.Object value)
New greater than constraint between a column and a fixed value |
static Match |
in(Column lhs,
Column projection,
Constraint... rhs)
Create a new IN constraint |
static Match |
isNotNull(Column lhs)
Constraint to enforce that a column is not null |
static Match |
isNull(Column lhs)
Constraint to enforce that a column is null |
static Join |
less(Column lhs,
Column rhs)
Create new Join enforcing that the left hand column is less than the right hand column |
static Match |
less(Column lhs,
java.lang.Object value)
New less than constraint between a column and a fixed value |
java.util.Set<ITable> |
listTables()
Get the set of tables to which this constraint is based |
static Match |
varEquals(Column lhs,
java.lang.String variableName)
New Equality constraint between a column and a fixed variableName |
static Match |
varGreater(Column lhs,
java.lang.String variableName)
New greater than constraint between a column and a fixed variableName |
static Match |
varGreaterEquals(Column lhs,
java.lang.String variableName)
New greater than or equals constraint between a column and a fixed variableName |
static Match |
varLess(Column lhs,
java.lang.String variableName)
New less than constraint between a column and a fixed variableName |
static Match |
varLessEquals(Column lhs,
java.lang.String variableName)
New less than or equals constraint between a column and a fixed variableName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openanzo.sqlscribe.Constraint |
|---|
getConstraint, writeConstraint |
| Method Detail |
|---|
public static Join equals(Column lhs,
Column rhs)
lhs - left hand columnrhs - right hand column
public static Join less(Column lhs,
Column rhs)
lhs - left hand columnrhs - right hand column
public static Join greater(Column lhs,
Column rhs)
lhs - left hand columnrhs - right hand column
public static Match equals(Column lhs,
java.lang.Object value)
lhs - left hand columnvalue - value to match
public static Match less(Column lhs,
java.lang.Object value)
lhs - left hand columnvalue - value to match
public static Match greater(Column lhs,
java.lang.Object value)
lhs - left hand columnvalue - value to match
public static Match varEquals(Column lhs,
java.lang.String variableName)
lhs - left hand columnvariableName - value to match
public static Match varLessEquals(Column lhs,
java.lang.String variableName)
lhs - left hand columnvariableName - name of variable to match
public static Match varGreaterEquals(Column lhs,
java.lang.String variableName)
lhs - left hand columnvariableName - name of variable to match
public static Match varLess(Column lhs,
java.lang.String variableName)
lhs - left hand columnvariableName - name of variable to match
public static Match varGreater(Column lhs,
java.lang.String variableName)
lhs - left hand columnvariableName - name of variable to match
public static Match isNull(Column lhs)
lhs - left hand column
public static Match isNotNull(Column lhs)
lhs - left hand column
public static Match in(Column lhs,
Column projection,
Constraint... rhs)
lhs - left side of the constraintprojection - what column should be project out of the right hand side of the queryrhs - the constraints that should be met within the IN sub select
public Column getLhs()
public java.util.Set<ITable> listTables()
Constraint
listTables in interface Constraintpublic java.lang.String getOperator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||