|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.identity.log.QueryElement
This class defines each individual query format. It stores field name, value and relationship between them. Currently it supports Equal, Not Equal, Greater Than, Lesser Than, Greater Than Or Equal and Lesser Than Or Equal relationships.
Field Summary | |
static int |
CN
Contains Relationship. |
static int |
EQ
Equal Relationship. |
static int |
EW
Ends With Relationship. |
static int |
GE
Greater Than or Equal Relationship. |
static int |
GT
Greater Than Relationship. |
static int |
LE
Lesser Than or Equal Relationship. |
static int |
LT
Lesser Than Relationship. |
static int |
NE
Not Equal Relationship. |
static int |
NV
Invalid Relationship. |
static int |
SW
Starts With Relationship. |
Constructor Summary | |
QueryElement()
Default constructor. |
|
QueryElement(java.lang.String fld,
java.lang.String val,
int rel)
Constructor. |
Method Summary | |
java.lang.String |
getFieldName()
Returns the field name on which query to be applied |
java.lang.String |
getFieldValue()
Returns the value of the field to be compared as stored in the query element. |
int |
getRelation()
Returns relation to be applied in between field and value as stored in the query element. |
void |
setFieldName(java.lang.String field)
Sets the field name for this query element. |
void |
setFieldValue(java.lang.String value)
Sets the value for the field name in this query element. |
void |
setRelation(int value)
This method modifies/sets the relation between field name and value in this query element. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NV
public static final int GT
public static final int LT
public static final int EQ
public static final int NE
public static final int GE
public static final int LE
public static final int CN
public static final int SW
public static final int EW
Constructor Detail |
public QueryElement(java.lang.String fld, java.lang.String val, int rel) throws java.lang.IllegalArgumentException
fld
- name of the field to be set.val
- value of the field to be set.rel
- relation between field and value to be checked.public QueryElement()
Method Detail |
public java.lang.String getFieldName()
public java.lang.String getFieldValue()
public int getRelation()
public void setFieldName(java.lang.String field)
field
- field or column name of the log recordpublic void setFieldValue(java.lang.String value)
value
- field/column value of the log recordpublic void setRelation(int value) throws java.lang.IllegalArgumentException
value
- relation between field and value to be matched.java.lang.IllegalArgumentException
- if relation is invalid.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |