|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.sql.WhereClauseExpression
public class WhereClauseExpression
The raw values for a part of the where clause of a SQL statement, either of the form lValue operator rValue, e.g. author.author_id = 1, or in form of a custom sql query with sql and replacement values.
Constructor Summary | |
---|---|
WhereClauseExpression(Object lValue,
SqlEnum operator,
Object rValue,
String sql,
Object[] preparedStatementReplacements)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
Object |
getLValue()
Returns the value on the left hand side of the operator of the expression. |
SqlEnum |
getOperator()
Returns the value on the operator of the expression. |
Object[] |
getPreparedStatementReplacements()
Returns the values for the placeholders in the verbatim sql condition. |
Object |
getRValue()
Returns the value on the right hand side of the operator of the expression. |
String |
getSql()
Returns the verbatim sql for this expression, if any. |
int |
hashCode()
|
boolean |
isVerbatimSqlCondition()
Returns whether this expression represents a verbatim sql condition. |
void |
setLValue(String lValue)
Sets the value on the left hand side of the operator of the expression. |
void |
setOperator(SqlEnum operator)
Sets the value on the operator of the expression. |
void |
setRValue(Object rValue)
Sets the value on the right hand side of the operator of the expression. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WhereClauseExpression(Object lValue, SqlEnum operator, Object rValue, String sql, Object[] preparedStatementReplacements)
lValue
- The value on the left hand side of the operator of the
expression. The value represents the name of a database column.operator
- the operator. Either this parameter or sql must be
not null.rValue
- The value on the right hand side of the operator of the
expression. The value represents the name of a database column.sql
- a verbatim sql condition. Either this parameter or
operator must be not null.preparedStatementReplacements
- Values for the placeholders
in the verbatim sql condition.Method Detail |
---|
public Object getLValue()
public void setLValue(String lValue)
lValue
- the value to set, not null or empty.
IllegalArgumentException
- if lValue is null or empty.public SqlEnum getOperator()
public void setOperator(SqlEnum operator)
operator
- the value to set, or null fo no operator.public Object getRValue()
public void setRValue(Object rValue)
rValue
- the value to set, or null for the empty String.public String getSql()
public Object[] getPreparedStatementReplacements()
public boolean isVerbatimSqlCondition()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |