javax.rad.type
Class TimestampType

java.lang.Object
  extended by javax.rad.type.AbstractType<T>
      extended by javax.rad.type.AbstractDateType<java.sql.Timestamp>
          extended by javax.rad.type.TimestampType
All Implemented Interfaces:
IType<java.sql.Timestamp>

public class TimestampType
extends AbstractDateType<java.sql.Timestamp>

The TimestampType is a platform independent definition of Timestamp.


Field Summary
 
Fields inherited from class javax.rad.type.AbstractDateType
dateUtil, FORMAT
 
Fields inherited from interface javax.rad.type.IType
UNKNOWN_TYPE
 
Constructor Summary
TimestampType()
          Constructs a new TimestampType.
 
Method Summary
 java.lang.Class<java.sql.Timestamp> getTypeClass()
          Returns the class used by this type.
 java.sql.Timestamp valueOf(java.lang.Object pObject)
          Converts the object to an Object which is an instance of type class.
 
Methods inherited from class javax.rad.type.AbstractDateType
compareTo, getDateFormat, setDateFormat
 
Methods inherited from class javax.rad.type.AbstractType
equals, getTypeFromClass, getTypeFromObject, hashCode, registerType, toString, validatedValueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampType

public TimestampType()
Constructs a new TimestampType.

Method Detail

getTypeClass

public java.lang.Class<java.sql.Timestamp> getTypeClass()
Returns the class used by this type.

Returns:
the class used by this type.

valueOf

public java.sql.Timestamp valueOf(java.lang.Object pObject)
Converts the object to an Object which is an instance of type class.

Specified by:
valueOf in interface IType<java.sql.Timestamp>
Overrides:
valueOf in class AbstractType<java.sql.Timestamp>
Parameters:
pObject - the Object to convert
Returns:
the Object which is an instance of type class.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.