com.sun.identity.log
クラス QueryElement

java.lang.Object
  上位を拡張 com.sun.identity.log.QueryElement

public class QueryElement
extends Object

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.


フィールドの概要
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.
 
コンストラクタの概要
QueryElement()
          Default constructor.
QueryElement(String fld, String val, int rel)
          Constructor.
 
メソッドの概要
 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.
 

フィールドの詳細

NV

public static final int NV
Invalid Relationship.

関連項目:
定数フィールド値

GT

public static final int GT
Greater Than Relationship.

関連項目:
定数フィールド値

LT

public static final int LT
Lesser Than Relationship.

関連項目:
定数フィールド値

EQ

public static final int EQ
Equal Relationship.

関連項目:
定数フィールド値

NE

public static final int NE
Not Equal Relationship.

関連項目:
定数フィールド値

GE

public static final int GE
Greater Than or Equal Relationship.

関連項目:
定数フィールド値

LE

public static final int LE
Lesser Than or Equal Relationship.

関連項目:
定数フィールド値

CN

public static final int CN
Contains Relationship.

関連項目:
定数フィールド値

SW

public static final int SW
Starts With Relationship.

関連項目:
定数フィールド値

EW

public static final int EW
Ends With Relationship.

関連項目:
定数フィールド値
コンストラクタの詳細

QueryElement

public QueryElement(String fld,
                    String val,
                    int rel)
Constructor.

パラメータ:
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.

QueryElement

public QueryElement()
Default constructor. Allocates memory for respective items. All the fields to be set before use.

メソッドの詳細

getFieldName

public String getFieldName()
Returns the field name on which query to be applied

戻り値:
field name present in this query element.

getFieldValue

public String getFieldValue()
Returns the value of the field to be compared as stored in the query element.

戻り値:
value the field to be queried.

getRelation

public int getRelation()
Returns relation to be applied in between field and value as stored in the query element.

戻り値:
relation the relation between the field and value to be checked.

setFieldName

public void setFieldName(String field)
Sets the field name for this query element.

パラメータ:
field - field or column name of the log record

setFieldValue

public void setFieldValue(String value)
Sets the value for the field name in this query element.

パラメータ:
value - field or column value of the log record

setRelation

public void setRelation(int value)
This method modifies/sets the relation between the field name and value in this query element.

パラメータ:
value - relation between field and value to be matched.
例外:
IllegalArgumentException - if relation is invalid.