|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.root.db.query.DBCriteriaAdapter
org.norther.tammi.root.ojb.query.OJBCriteria
public class OJBCriteria
An OJB criteria adapter.
| Field Summary |
|---|
| Fields inherited from interface org.norther.tammi.root.db.query.DBCriteria |
|---|
CLASS_ATTRIBUTE, EQ, GE, GT, IN, LE, LIKE, LT, NEQ, NIN, NONE, OBJECT_NAME_ATTRIBUTE |
| Constructor Summary | |
|---|---|
OJBCriteria()
Constructs new criteria. |
|
OJBCriteria(Criteria adapt)
Constructs new criteria with adapted criteria. |
|
| Method Summary | |
|---|---|
DBCriteria |
add(DBCriteria criteria,
boolean union)
Adds the specified criteria. |
DBCriteria |
add(String attribute,
Object value,
int condition,
boolean union)
Adds a named attribute value criteria. |
DBCriteria |
negate()
Negates the criteria. |
| Methods inherited from class org.norther.tammi.root.db.query.DBCriteriaAdapter |
|---|
add, add, add, getAdaptee |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OJBCriteria()
public OJBCriteria(Criteria adapt)
adapt - the criteria adaptee.| Method Detail |
|---|
public DBCriteria negate()
DBCriteria
negate in interface DBCriteria
public DBCriteria add(DBCriteria criteria,
boolean union)
DBCriteria
add in interface DBCriteriacriteria - the new criteria.union - the flag for a union.
public DBCriteria add(String attribute,
Object value,
int condition,
boolean union)
DBCriteriaIf exact match is not required, the value can be a pattern with well known wildcard characters such as '*', '?', or in the case of SQL '%'.
add in interface DBCriteriaattribute - the field name to form the search criteria.value - the field value to form the search criteria.condition - the condition for the attribute.union - the flag for a union.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||