org.sql.generation.implementation.grammar.common.datatypes
Class SQLTimeStampImpl

java.lang.Object
  extended by org.atp.spi.TypeableImpl<SQLDataType,SQLTimeStamp>
      extended by org.sql.generation.implementation.grammar.common.datatypes.SQLTimeStampImpl
All Implemented Interfaces:
org.atp.api.Typeable<SQLDataType>, ParametrizableDataType, SQLDataType, SQLTimeStamp

public final class SQLTimeStampImpl
extends org.atp.spi.TypeableImpl<SQLDataType,SQLTimeStamp>
implements SQLTimeStamp

This class represents TIMESTAMP data type.

Author:
Stanislav Muhametsin

Field Summary
static SQLTimeStamp PLAIN_TIMESTAMP
           
static SQLTimeStamp PLAIN_TIMESTAMP_WITH_TZ
           
static SQLTimeStamp PLAIN_TIMESTAMP_WITHOUT_TZ
           
 
Constructor Summary
SQLTimeStampImpl(Integer precision, Boolean withTimeZone)
           
 
Method Summary
protected  boolean doesEqual(SQLTimeStamp another)
           
 Integer getPrecision()
          Returns the precision for this TIMESTAMP.
 Boolean isWithTimeZone()
          Returns whether the TIMESTAMP should be with time zone.
 
Methods inherited from class org.atp.spi.TypeableImpl
bothNullOrEquals, equals, getImplementedType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.atp.api.Typeable
getImplementedType
 

Field Detail

PLAIN_TIMESTAMP

public static final SQLTimeStamp PLAIN_TIMESTAMP

PLAIN_TIMESTAMP_WITHOUT_TZ

public static final SQLTimeStamp PLAIN_TIMESTAMP_WITHOUT_TZ

PLAIN_TIMESTAMP_WITH_TZ

public static final SQLTimeStamp PLAIN_TIMESTAMP_WITH_TZ
Constructor Detail

SQLTimeStampImpl

public SQLTimeStampImpl(Integer precision,
                        Boolean withTimeZone)
Method Detail

doesEqual

protected boolean doesEqual(SQLTimeStamp another)
Specified by:
doesEqual in class org.atp.spi.TypeableImpl<SQLDataType,SQLTimeStamp>

getPrecision

public Integer getPrecision()
Returns the precision for this TIMESTAMP. May be null.

Specified by:
getPrecision in interface SQLTimeStamp
Returns:
The precision for this TIMESTAMP.

isWithTimeZone

public Boolean isWithTimeZone()
Returns whether the TIMESTAMP should be with time zone. May be null if no choice specified.

Specified by:
isWithTimeZone in interface SQLTimeStamp
Returns:


Copyright © 2010-2012. All Rights Reserved.