public class LogQuery extends Object
sortby
field name (optional).Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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) throws IllegalArgumentException
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.public void setGlobalOperand(int no) throws IllegalArgumentException
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()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.