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