isql.constant
Class DateConstant

java.lang.Object
  extended by isql.constant.DateConstant
All Implemented Interfaces:
IConstant, ITypedValue

public class DateConstant
extends java.lang.Object
implements IConstant

A date constant (e.g. #2007-10-28#

Author:
SHZ Sep 28, 2007

Constructor Summary
DateConstant(java.sql.Timestamp value)
           
 
Method Summary
 ColumnType getType()
           
 java.sql.Timestamp getValue()
           
 java.lang.Object getValueAsObject()
          The value of the constant
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateConstant

public DateConstant(java.sql.Timestamp value)
Method Detail

getType

public ColumnType getType()
Specified by:
getType in interface ITypedValue
Returns:
the type

getValue

public java.sql.Timestamp getValue()
Returns:
the value

getValueAsObject

public java.lang.Object getValueAsObject()
Description copied from interface: IConstant
The value of the constant

Specified by:
getValueAsObject in interface IConstant
Returns:
a Double, String, Boolean or Timestamp object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object