public class QueryElement extends Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
QueryElement()
Default constructor.
|
QueryElement(String fld,
String val,
int rel)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getFieldName()
Returns the field name on which query to be applied
|
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(String field)
Sets the field name for this query element.
|
void |
setFieldValue(String value)
Sets the value for the field name in this query element.
|
void |
setRelation(int value)
This method modifies/sets the relation between the field
name and value in this query element.
|
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
public QueryElement(String fld, String val, int rel) throws 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.IllegalArgumentException
public QueryElement()
public String getFieldName()
public String getFieldValue()
public int getRelation()
public void setFieldName(String field)
field
- field or column name of the log recordpublic void setFieldValue(String value)
value
- field or column value of the log recordpublic void setRelation(int value) throws IllegalArgumentException
value
- relation between field and value to be matched.IllegalArgumentException
- if relation is invalid.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.