|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.sqlscribe.Match
org.openanzo.sqlscribe.ValueMatch
public class ValueMatch
Simple value constraint builder. For example "WHERE id = 10" is a simple value constraint on the 'id' column of some table.
| Constructor Summary | |
|---|---|
ValueMatch(Column lhs,
java.lang.String operator,
java.lang.Object value)
Create a new Value match |
|
| Method Summary | |
|---|---|
java.lang.String |
getConstraint(java.util.List<java.lang.String> unboundVariables)
Get the SQL text for this constraint, using any variables from the provided list |
java.lang.Object |
getValue()
Get the value to match |
void |
writeConstraint(java.lang.StringBuffer buf,
java.util.List<java.lang.String> unboundVariables)
Write the SQL text for this constraint to the provided buffer, using any variables from the provided list |
| Methods inherited from class org.openanzo.sqlscribe.Match |
|---|
equals, equals, getLhs, getOperator, greater, greater, in, isNotNull, isNull, less, less, listTables, varEquals, varGreater, varGreaterEquals, varLess, varLessEquals |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openanzo.sqlscribe.Constraint |
|---|
listTables |
| Constructor Detail |
|---|
public ValueMatch(Column lhs,
java.lang.String operator,
java.lang.Object value)
lhs - column to matchoperator - type of match operationvalue - value to match| Method Detail |
|---|
public java.lang.String getConstraint(java.util.List<java.lang.String> unboundVariables)
Constraint
getConstraint in interface ConstraintunboundVariables - set of variables that can be used within constraints
public void writeConstraint(java.lang.StringBuffer buf,
java.util.List<java.lang.String> unboundVariables)
Constraint
writeConstraint in interface Constraintbuf - StringBuffer to which the SQL text for this constraint is appendedunboundVariables - set of variables that can be used within constraintspublic java.lang.Object getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||