|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DBCriteria
An interface to classes representing database query criteria.
| Field Summary | |
|---|---|
static String |
CLASS_ATTRIBUTE
The class attribute. |
static int |
EQ
The equals to condition. |
static int |
GE
The greater than or equals to condition. |
static int |
GT
The greater than condition. |
static int |
IN
The in condition. |
static int |
LE
The greater than or equals to condition. |
static int |
LIKE
The like condition. |
static int |
LT
The less than condition. |
static int |
NEQ
The not equals to condition. |
static int |
NIN
The not in condition. |
static int |
NONE
The none condition. |
static String |
OBJECT_NAME_ATTRIBUTE
The object name attribute. |
| Method Summary | |
|---|---|
DBCriteria |
add(DBAttribute attribute,
boolean union)
Adds an attribute criteria. |
DBCriteria |
add(DBCriteria criteria,
boolean union)
Adds the specified criteria. |
DBCriteria |
add(List attributes,
boolean union)
Adds an attribute list criteria. |
DBCriteria |
add(Map attributes,
int condition,
boolean union)
Adds an attribute map criteria. |
DBCriteria |
add(String attribute,
Object value,
int condition,
boolean union)
Adds a named attribute value criteria. |
Object |
getAdaptee()
Gets the implementation specific criteria adaptee, if any. |
DBCriteria |
negate()
Negates the criteria. |
| Field Detail |
|---|
static final String CLASS_ATTRIBUTE
static final String OBJECT_NAME_ATTRIBUTE
static final int NONE
static final int LIKE
static final int EQ
static final int NEQ
static final int IN
static final int NIN
static final int GT
static final int LT
static final int GE
static final int LE
| Method Detail |
|---|
Object getAdaptee()
DBCriteria negate()
DBCriteria add(DBCriteria criteria,
boolean union)
criteria - the new criteria.union - the flag for a union.
DBCriteria add(DBAttribute attribute,
boolean union)
If exact match is not required, the value can be a pattern with well known wildcard characters such as '*', '?', or in the case of SQL '%'.
attribute - the attribute to form the search criteria.union - the flag for a union.
DBCriteria add(List attributes,
boolean union)
If exact match is not required, the value can be a pattern with well known wildcard characters such as '*', '?', or in the case of SQL '%'.
attributes - a list of attributes to form the search criteria.union - a flag to indicate whether the criteria should be a union.
DBCriteria add(String attribute,
Object value,
int condition,
boolean union)
If exact match is not required, the value can be a pattern with well known wildcard characters such as '*', '?', or in the case of SQL '%'.
attribute - 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.
DBCriteria add(Map attributes,
int condition,
boolean union)
If exact match is not required, the value can be a pattern with well known wildcard characters such as '*', '?', or in the case of SQL '%'.
attributes - a map of attributes to form the search criteria.condition - the condition for the criteria.union - the flag for a union.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||