Lines Matching defs:LogQuery
25 * $Id: LogQuery.java,v 1.4 2008/06/25 05:43:35 qcheng Exp $
37 * LogQuery defines the query format that the reader api supports.
46 public class LogQuery {
82 public LogQuery() {
83 this.maxRecord = LogQuery.MOST_RECENT_MAX_RECORDS;
84 this.globalOperand = LogQuery.MATCH_ANY_CONDITION;
96 public LogQuery(int max_record) {
98 this.globalOperand = LogQuery.MATCH_ANY_CONDITION;
114 public LogQuery(int max_Record, int matchCriteria, String sortingBy)
116 if (max_Record < LogQuery.ALL_RECORDS) {
118 "max_Record should be greater than LogQuery.ALL_RECORDS");
122 if ((matchCriteria > LogQuery.MATCH_ANY_CONDITION) ||
123 (matchCriteria < LogQuery.MATCH_ALL_CONDITIONS))
126 "matchCriteria should be LogQuery.MATCH_ANY_CONDITION or " +
127 "LogQuery.MATCH_ALL_CONDITIONS");
149 if (no > LogQuery.MATCH_ANY_CONDITION) {
151 "parameter should be LogQuery.MATCH_ANY_CONDITION or " +
152 "LogQuery.MATCH_ALL_CONDITIONS");
154 } else if (no < LogQuery.MATCH_ALL_CONDITIONS) {
156 "parameter should be LogQuery.MATCH_ANY_CONDITION or " +
157 "LogQuery.MATCH_ALL_CONDITIONS");
171 if (value < LogQuery.ALL_RECORDS) {
178 * Adds a query element to the list present in <code>LogQuery</code>.