|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.log.LogQuery
public class LogQuery
LogQuery defines the query format that the reader api supports.
This class contains a list of individual query elements
and also stores information about whether all the query to
be satisfied or any one to be satisfied. It also allows
caller to set required number of most recent records and
to specify the sortby
field name (optional).
Field Summary | |
---|---|
static int |
ALL_RECORDS
All the records that matches query criteria (if any) will be retrieved. |
static int |
MATCH_ALL_CONDITIONS
matching condition, values of globalOperand. |
static int |
MATCH_ANY_CONDITION
|
static int |
MOST_RECENT_MAX_RECORDS
when maximum records asked Most recent maximum number of records to be collected. |
Constructor Summary | |
---|---|
LogQuery()
Default constructor It creates the new object and assigns space to them. |
|
LogQuery(int max_record)
Customized constructor to set only maxrecord . |
|
LogQuery(int max_Record,
int matchCriteria,
String sortingBy)
Customized constructor. |
Method Summary | |
---|---|
void |
addQuery(QueryElement qryElement)
Adds a query element to the list present in LogQuery . |
ArrayList |
getColumns()
Returns the table column names selected. |
int |
getGlobalOperand()
Returns the value of global operand set in the query. |
int |
getNumRecordsWanted()
|
ArrayList |
getQueries()
Returns the full list of query |
String |
getSortingField()
Returns the field name on which records to be sorted. |
void |
setColumns(ArrayList columns)
Set the columns to be selected. |
void |
setGlobalOperand(int no)
Sets the globalOperand field to either any query criteria
match or to match all the criteria. |
void |
setMaxRecord(int value)
|
void |
setSortingField(String fieldName)
Set the field name on which records to be sorted. |
Field Detail |
---|
public static final int MATCH_ALL_CONDITIONS
public static final int MATCH_ANY_CONDITION
public static final int MOST_RECENT_MAX_RECORDS
public static final int ALL_RECORDS
Constructor Detail |
---|
public LogQuery()
public LogQuery(int max_record)
maxrecord
.
max_record
- is maximum number of most recent records to be
returned.public LogQuery(int max_Record, int matchCriteria, String sortingBy)
max_Record
- the maximum number of most recent records
to be returnedmatchCriteria
- whether all queries or any one to match.sortingBy
- fieldname
on which records to be sorted.
IllegalArgumentException
- if any of the
max_Record/matchCriteria
is not valid.Method Detail |
---|
public void setGlobalOperand(int no)
globalOperand
field to either any query criteria
match or to match all the criteria.
no
- the value to set to globalOperand
IllegalArgumentException
- when parameter is passed as
neither all nor any match.public void setMaxRecord(int value)
public void addQuery(QueryElement qryElement)
LogQuery
.
qryElement
- the query to be added into the listpublic ArrayList getQueries()
public int getNumRecordsWanted()
public int getGlobalOperand()
public void setSortingField(String fieldName)
fieldName
- field name on which records to be sorted.public String getSortingField()
public void setColumns(ArrayList columns)
columns
- to request.public ArrayList getColumns()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |