Package com.sun.identity.log
Class QueryElement
- java.lang.Object
-
- com.sun.identity.log.QueryElement
-
@SupportedAll @Deprecated public class QueryElement extends Object
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
Fields Modifier and Type Field Description static intCNDeprecated.Contains Relationship.static intEQDeprecated.Equal Relationship.static intEWDeprecated.Ends With Relationship.static intGEDeprecated.Greater Than or Equal Relationship.static intGTDeprecated.Greater Than Relationship.static intLEDeprecated.Lesser Than or Equal Relationship.static intLTDeprecated.Lesser Than Relationship.static intNEDeprecated.Not Equal Relationship.static intNVDeprecated.Invalid Relationship.static intSWDeprecated.Starts With Relationship.
-
Constructor Summary
Constructors Constructor Description QueryElement()Deprecated.Default constructor.QueryElement(String fld, String val, int rel)Deprecated.Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetFieldName()Deprecated.Returns the field name on which query to be appliedStringgetFieldValue()Deprecated.Returns the value of the field to be compared as stored in the query element.intgetRelation()Deprecated.Returns relation to be applied in between field and value as stored in the query element.voidsetFieldName(String field)Deprecated.Sets the field name for this query element.voidsetFieldValue(String value)Deprecated.Sets the value for the field name in this query element.voidsetRelation(int value)Deprecated.This method modifies/sets the relation between the field name and value in this query element.
-
-
-
Field Detail
-
NV
public static final int NV
Deprecated.Invalid Relationship.- See Also:
- Constant Field Values
-
GT
public static final int GT
Deprecated.Greater Than Relationship.- See Also:
- Constant Field Values
-
LT
public static final int LT
Deprecated.Lesser Than Relationship.- See Also:
- Constant Field Values
-
EQ
public static final int EQ
Deprecated.Equal Relationship.- See Also:
- Constant Field Values
-
NE
public static final int NE
Deprecated.Not Equal Relationship.- See Also:
- Constant Field Values
-
GE
public static final int GE
Deprecated.Greater Than or Equal Relationship.- See Also:
- Constant Field Values
-
LE
public static final int LE
Deprecated.Lesser Than or Equal Relationship.- See Also:
- Constant Field Values
-
CN
public static final int CN
Deprecated.Contains Relationship.- See Also:
- Constant Field Values
-
SW
public static final int SW
Deprecated.Starts With Relationship.- See Also:
- Constant Field Values
-
EW
public static final int EW
Deprecated.Ends With Relationship.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QueryElement
public QueryElement(String fld, String val, int rel) throws IllegalArgumentException
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 Detail
-
getFieldName
public String getFieldName()
Deprecated.Returns the field name on which query to be applied- Returns:
- field name present in this query element.
-
getFieldValue
public String 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
public void setFieldName(String field)
Deprecated.Sets the field name for this query element.- Parameters:
field- field or column name of the log record
-
setFieldValue
public void setFieldValue(String value)
Deprecated.Sets the value for the field name in this query element.- Parameters:
value- field or column value of the log record
-
setRelation
public void setRelation(int value) throws IllegalArgumentExceptionDeprecated.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.
-
-