|
||||||||||
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 String |
AND
Constant for thze operator " AND ". |
static String |
OR
Constant for thze operator " OR ". |
Method Summary | |
---|---|
Criteria.Criterion |
and(Criteria.Criterion criterion)
Append an AND Criterion onto this Criterion's list. |
void |
appendTo(StringBuffer sb)
Appends a representation of the Criterion onto the buffer. |
boolean |
equals(Object obj)
This method checks another Criteria.Criterion to see if they contain the same attributes. |
List<String> |
getAllTables()
Get the name of all tables from nested criterion objects |
Criteria.Criterion[] |
getAttachedCriterion()
get an array of all criterion attached to this recursing through all sub criterion |
List<Criteria.Criterion> |
getClauses()
Returns the list of clauses in this Criterion. |
Column |
getColumn()
Get the column. |
SqlEnum |
getComparison()
Get the comparison. |
List<String> |
getConjunctions()
Returns the list of conjunctions in this Criterion |
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. |
Criteria.Criterion |
setIgnoreCase(boolean b)
Sets ignore case. |
void |
setValue(Object value)
Set the value of the criterion. |
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 String AND
public static final String OR
Method Detail |
---|
public Column getColumn()
public SqlEnum getComparison()
public Object getValue()
public void setValue(Object value)
value
- the new value.public Criteria.Criterion setIgnoreCase(boolean b)
b
- True if case should be ignored.
public boolean isIgnoreCase()
public List<Criteria.Criterion> getClauses()
public List<String> getConjunctions()
public Criteria.Criterion and(Criteria.Criterion criterion)
public Criteria.Criterion or(Criteria.Criterion criterion)
public void appendTo(StringBuffer sb) throws TorqueException
TorqueException
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public List<String> getAllTables()
public Criteria.Criterion[] getAttachedCriterion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |