|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.torque.util.Criteria.Criterion
public final class Criteria.Criterion
This is an inner class that describes an object in the criteria.
Field Summary | |
---|---|
static java.lang.String |
AND
|
static java.lang.String |
OR
|
Method Summary | |
---|---|
Criteria.Criterion |
and(Criteria.Criterion criterion)
Append an AND Criterion onto this Criterion's list. |
void |
appendPsTo(java.lang.StringBuffer sb,
java.util.List params)
Appends a Prepared Statement representation of the Criterion onto the buffer. |
void |
appendTo(java.lang.StringBuffer sb)
Appends a representation of the Criterion onto the buffer. |
boolean |
equals(java.lang.Object obj)
This method checks another Criteria.Criterion to see if they contain the same attributes and hashtable entries. |
java.util.List |
getAllTables()
get all tables from nested criterion objects |
Criteria.Criterion[] |
getAttachedCriterion()
get an array of all criterion attached to this recursing through all sub criterion |
java.lang.String |
getColumn()
Get the column name. |
SqlEnum |
getComparison()
Get the comparison. |
DB |
getDb()
Get the value of db. |
java.lang.String |
getTable()
Get the table name. |
java.lang.Object |
getValue()
Get the value. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isIgnoreCase()
Is ignore case on or off? |
Criteria.Criterion |
or(Criteria.Criterion criterion)
Append an OR Criterion onto this Criterion's list. |
void |
setDB(DB v)
Set the value of db. |
Criteria.Criterion |
setIgnoreCase(boolean b)
Sets ignore case. |
void |
setTable(java.lang.String name)
Set the table name. |
void |
setValue(java.lang.Object value)
Set the value of the criterion. |
java.lang.String |
toString()
Build a string representation of the Criterion. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String AND
public static final java.lang.String OR
Method Detail |
---|
public java.lang.String getColumn()
public void setTable(java.lang.String name)
name
- A String with the table name.public java.lang.String getTable()
public SqlEnum getComparison()
public java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
- the new value.public DB getDb()
public void setDB(DB v)
v
- Value to assign to db.public Criteria.Criterion setIgnoreCase(boolean b)
b
- True if case should be ignored.
public boolean isIgnoreCase()
public Criteria.Criterion and(Criteria.Criterion criterion)
public Criteria.Criterion or(Criteria.Criterion criterion)
public void appendTo(java.lang.StringBuffer sb) throws TorqueException
TorqueException
public void appendPsTo(java.lang.StringBuffer sb, java.util.List params)
sb
- The stringbuffer that will receive the Prepared Statementparams
- A list to which Prepared Statement parameters
will be appendedpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.List getAllTables()
public Criteria.Criterion[] getAttachedCriterion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |