Package com.sun.identity.log
Class QueryElement
java.lang.Object
com.sun.identity.log.QueryElement
Deprecated.
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
Modifier and TypeFieldDescriptionstatic final int
Deprecated.Contains Relationship.static final int
Deprecated.Equal Relationship.static final int
Deprecated.Ends With Relationship.static final int
Deprecated.Greater Than or Equal Relationship.static final int
Deprecated.Greater Than Relationship.static final int
Deprecated.Lesser Than or Equal Relationship.static final int
Deprecated.Lesser Than Relationship.static final int
Deprecated.Not Equal Relationship.static final int
Deprecated.Invalid Relationship.static final int
Deprecated.Starts With Relationship. -
Constructor Summary
ConstructorDescriptionDeprecated.Default constructor.QueryElement
(String fld, String val, int rel) Deprecated.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the field name on which query to be appliedDeprecated.Returns the value of the field to be compared as stored in the query element.int
Deprecated.Returns relation to be applied in between field and value as stored in the query element.void
setFieldName
(String field) Deprecated.Sets the field name for this query element.void
setFieldValue
(String value) Deprecated.Sets the value for the field name in this query element.void
setRelation
(int value) Deprecated.This method modifies/sets the relation between the field name and value in this query element.
-
Field Details
-
NV
public static final int NVDeprecated.Invalid Relationship.- See Also:
-
GT
public static final int GTDeprecated.Greater Than Relationship.- See Also:
-
LT
public static final int LTDeprecated.Lesser Than Relationship.- See Also:
-
EQ
public static final int EQDeprecated.Equal Relationship.- See Also:
-
NE
public static final int NEDeprecated.Not Equal Relationship.- See Also:
-
GE
public static final int GEDeprecated.Greater Than or Equal Relationship.- See Also:
-
LE
public static final int LEDeprecated.Lesser Than or Equal Relationship.- See Also:
-
CN
public static final int CNDeprecated.Contains Relationship.- See Also:
-
SW
public static final int SWDeprecated.Starts With Relationship.- See Also:
-
EW
public static final int EWDeprecated.Ends With Relationship.- See Also:
-
-
Constructor Details
-
QueryElement
Deprecated.Constructor.- Parameters:
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.- Throws:
IllegalArgumentException
-
QueryElement
public QueryElement()Deprecated.Default constructor. Allocates memory for respective items. All the fields to be set before use.
-
-
Method Details
-
getFieldName
Deprecated.Returns the field name on which query to be applied- Returns:
- field name present in this query element.
-
getFieldValue
Deprecated.Returns the value of the field to be compared as stored in the query element.- Returns:
- value the field to be queried.
-
getRelation
public int getRelation()Deprecated.Returns relation to be applied in between field and value as stored in the query element.- Returns:
- relation the relation between the field and value to be checked.
-
setFieldName
Deprecated.Sets the field name for this query element.- Parameters:
field
- field or column name of the log record
-
setFieldValue
Deprecated.Sets the value for the field name in this query element.- Parameters:
value
- field or column value of the log record
-
setRelation
Deprecated.This method modifies/sets the relation between the field name and value in this query element.- Parameters:
value
- relation between field and value to be matched.- Throws:
IllegalArgumentException
- if relation is invalid.
-