org.spicefactory.pimento.service
Class TemporalValue

java.lang.Object
  extended by org.spicefactory.pimento.service.TemporalValue

public class TemporalValue
extends Object

Represents a temporal value used as a query parameter.

Author:
Jens Halm

Constructor Summary
TemporalValue(Date value, TemporalType type)
          Creates a new instance.
 
Method Summary
 TemporalType getType()
          Returns the temporal type.
 Date getValue()
          Returns the Date value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemporalValue

public TemporalValue(Date value,
                     TemporalType type)
Creates a new instance.

Parameters:
value - the value
type - the temporal type
Method Detail

getValue

public Date getValue()
Returns the Date value.

Returns:
the Date value

getType

public TemporalType getType()
Returns the temporal type.

Returns:
the temporal type