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

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

public final class SQLTimeImpl
extends org.atp.spi.TypeableImpl<SQLDataType,SQLTime>
implements SQLTime

Author:
Stanislav Muhametsin

Field Summary
static SQLTime PLAIN_TIME
           
static SQLTime PLAIN_TIME_WITH_TZ
           
static SQLTime PLAIN_TIME_WITHOUT_TZ
           
 
Constructor Summary
SQLTimeImpl(java.lang.Integer precision, java.lang.Boolean withTimeZone)
           
 
Method Summary
protected  boolean doesEqual(SQLTime another)
           
 java.lang.Integer getPrecision()
          Returns the precision for this TIME.
 java.lang.Boolean isWithTimeZone()
          Returns whether the TIME 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_TIME

public static final SQLTime PLAIN_TIME

PLAIN_TIME_WITHOUT_TZ

public static final SQLTime PLAIN_TIME_WITHOUT_TZ

PLAIN_TIME_WITH_TZ

public static final SQLTime PLAIN_TIME_WITH_TZ
Constructor Detail

SQLTimeImpl

public SQLTimeImpl(java.lang.Integer precision,
                   java.lang.Boolean withTimeZone)
Method Detail

doesEqual

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

getPrecision

public java.lang.Integer getPrecision()
Returns the precision for this TIME. May be null.

Specified by:
getPrecision in interface SQLTime
Returns:
The precision for this TIME.

isWithTimeZone

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

Specified by:
isWithTimeZone in interface SQLTime
Returns:


Copyright © 2010. All Rights Reserved.