Esri Geoportal Server
1.0

com.esri.gpt.framework.util
Class DateRange

java.lang.Object
  extended by com.esri.gpt.framework.util.DateRange
All Implemented Interfaces:
Serializable

public class DateRange
extends Object
implements Serializable

Stores from and to date proxies for date range queries.

See Also:
Serialized Form

Constructor Summary
DateRange()
          Default constructor.
 
Method Summary
 void check()
          Checks the range.
 DateProxy getFromDate()
          Gets the from date.
 Timestamp getFromTimestamp()
          Returns a timestamp applicable for the from part of a date range query.
 DateProxy getToDate()
          Gets the to date.
 Timestamp getToTimestamp()
          Returns a timestamp applicable for the to part of a date range query.
 String toString()
          Returns a string representation this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateRange

public DateRange()
Default constructor.

Method Detail

getFromDate

public DateProxy getFromDate()
Gets the from date.

Returns:
the from date

getFromTimestamp

public Timestamp getFromTimestamp()
Returns a timestamp applicable for the from part of a date range query.

Returns:
the timestamp (null in unspecified)

getToDate

public DateProxy getToDate()
Gets the to date.

Returns:
the to date

getToTimestamp

public Timestamp getToTimestamp()
Returns a timestamp applicable for the to part of a date range query.

Returns:
the timestamp (null in unspecified)

check

public void check()
Checks the range.
The from and to dates will be flipped if the from date is greater than the to date.


toString

public String toString()
Returns a string representation this object.

Overrides:
toString in class Object
Returns:
the string

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.