|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.war.report.ReportConstraints
public class ReportConstraints
Field Summary | |
---|---|
static int |
WHERE_AND
|
static int |
WHERE_OR
|
static int |
WHERE_SET
|
Constructor Summary | |
---|---|
ReportConstraints()
Default constructor |
|
ReportConstraints(long timeStart,
long timeEnd)
Constructor |
|
ReportConstraints(long timeStart,
long timeEnd,
boolean validGPS,
EventData.LimitType selLimitType,
long selLimit)
Constructor |
|
ReportConstraints(ReportConstraints rc)
Copy Constructor |
Method Summary | |
---|---|
protected void |
_appendWhere(java.lang.String dbsel,
int op)
Appends the specified DB selection 'WHERE' clause |
void |
andWhere(java.lang.String dbsel)
Adds ("AND's) the specified selection clause with the current 'WHERE' selection clause |
java.lang.Object |
clone()
Returns a clone of this ReportConstraints instance |
java.lang.String |
getEmailAddresses()
|
boolean |
getOrderAscending()
Returns true if the data records are to be in ascending order |
long |
getReportLimit()
Gets the report limit |
java.lang.String |
getRuleSelector()
Gets the rule selector constraint |
long |
getSelectionLimit()
Gets the selection limit |
EventData.LimitType |
getSelectionLimitType()
Gets the selection limit type |
int[] |
getStatusCodes()
Gets the status code constraints |
long |
getTimeEnd()
Gets the time 'end' constraint |
long |
getTimeStart()
Gets the time 'start' constraint |
java.util.TimeZone |
getTimeZone()
Gets the timezone |
boolean |
getValidGPSRequired()
Returns true if all events require a valid GPS fix |
java.lang.String |
getWhere()
Gets the selection 'WHERE' clause |
boolean |
hasEmailAddresses()
|
boolean |
hasReportLimit()
Returns true if a report limit has been defined |
boolean |
hasRuleSelector()
Return true if a rule selector constraint has been defined |
boolean |
hasSelectionLimit()
Returns true if a selection limit has been defined |
boolean |
hasStatusCodes()
Return true if status code constraints have been defined |
boolean |
hasWhere()
Returns true if a selection 'WHERE' clause has been defined |
void |
orWhere(java.lang.String dbsel)
Adds ("OR's) the specified selection clause with the current 'WHERE' selection clause |
void |
setEmailAddresses(java.lang.String emailAddr)
|
void |
setOrderAscending(boolean ascending)
Sets whether data records are to be in ascending order |
void |
setReportLimit(long limit)
Sets the report limit |
void |
setRuleSelector(java.lang.String ruleSel)
Sets the rule selector constraint |
void |
setSelectionLimit(EventData.LimitType limitType,
long limit)
Sets the selection limit and type |
void |
setSelectionLimit(long limit)
Sets the selection limit |
void |
setStatusCodes(int[] sc)
Sets the status code constraints |
void |
setTimeEnd(long te)
Sets the time 'end' constraint |
void |
setTimeRange(long timeStart,
long timeEnd)
Sets the time 'start'/'end' constraint |
void |
setTimeStart(long ts)
Sets the time 'start' constraint |
void |
setTimeZone(java.util.TimeZone tmz)
Sets the timezone |
void |
setValidGPSRequired(boolean reqGPS)
Sets whether a valid GPS fix is required for all events |
void |
setWhere(java.lang.String dbsel)
Sets the selection 'WHERE' clause |
java.lang.String |
toString()
Returns a String representation of this ReportConstraints instance |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int WHERE_SET
public static final int WHERE_OR
public static final int WHERE_AND
Constructor Detail |
---|
public ReportConstraints()
public ReportConstraints(long timeStart, long timeEnd)
timeStart
- Time 'start' constrainttimeEnd
- Time 'end' constraintpublic ReportConstraints(long timeStart, long timeEnd, boolean validGPS, EventData.LimitType selLimitType, long selLimit)
timeStart
- Time 'start' constrainttimeEnd
- Time 'end' constraintvalidGPS
- If true, only events with a valid GPS fix are allowed, false to allow all eventsselLimitType
- The Selection limit type (ie. first/last)selLimit
- The Selection limitpublic ReportConstraints(ReportConstraints rc)
rc
- The ReportConstraints to copy (shallow copy)Method Detail |
---|
public void setTimeZone(java.util.TimeZone tmz)
tmz
- The timezonepublic java.util.TimeZone getTimeZone()
public void setTimeStart(long ts)
ts
- The time 'start' constraintpublic long getTimeStart()
public void setTimeEnd(long te)
te
- The time 'start' constraintpublic long getTimeEnd()
public void setTimeRange(long timeStart, long timeEnd)
timeStart
- The time 'start' constrainttimeEnd
- The time 'end' constraintpublic boolean getValidGPSRequired()
public void setValidGPSRequired(boolean reqGPS)
reqGPS
- True to require valid a GPS fix, false to allow all eventspublic boolean getOrderAscending()
public void setOrderAscending(boolean ascending)
ascending
- True to sort data records in ascending orderpublic EventData.LimitType getSelectionLimitType()
public long getSelectionLimit()
public boolean hasSelectionLimit()
public void setSelectionLimit(long limit)
limit
- The selection limit, or -1 to specify no limitpublic void setSelectionLimit(EventData.LimitType limitType, long limit)
limitType
- The selection limit type (may be one of EventData.LimitType.FIRST or EventData.LimitType.LAST)limit
- The selection limitpublic long getReportLimit()
public boolean hasReportLimit()
public void setReportLimit(long limit)
limit
- The report limit, or -1 to specify no limitpublic java.lang.String getWhere()
public boolean hasWhere()
public void setWhere(java.lang.String dbsel)
dbsel
- The DB selection 'WHERE' clausepublic void orWhere(java.lang.String dbsel)
dbsel
- The selection clause to append to the current clausepublic void andWhere(java.lang.String dbsel)
dbsel
- The selection clause to append to the current clauseprotected void _appendWhere(java.lang.String dbsel, int op)
dbsel
- The selection clause to appendop
- The append operation (WHERE_SET, WHERE_OR, WHERE_AND)public java.lang.String getRuleSelector()
public boolean hasRuleSelector()
public void setRuleSelector(java.lang.String ruleSel)
ruleSel
- The rule selector constraintpublic int[] getStatusCodes()
public boolean hasStatusCodes()
public void setStatusCodes(int[] sc)
sc
- The status code constraintspublic boolean hasEmailAddresses()
public java.lang.String getEmailAddresses()
public void setEmailAddresses(java.lang.String emailAddr)
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |