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

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

public final class SQLCharImpl
extends org.atp.spi.TypeableImpl<SQLDataType,SQLChar>
implements SQLChar


Field Summary
static SQLChar PLAIN_FIXED
           
static SQLChar PLAIN_VARYING
           
 
Constructor Summary
SQLCharImpl(Boolean isVarying, Integer length)
           
 
Method Summary
protected  boolean doesEqual(SQLChar another)
           
 Integer getLength()
          Returns the length specification for this CHARACTER or CHARACTER VARYING.
 Boolean isVarying()
          Returns true if this is CHARACTER VARYING; false otherwise.
 
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_FIXED

public static final SQLChar PLAIN_FIXED

PLAIN_VARYING

public static final SQLChar PLAIN_VARYING
Constructor Detail

SQLCharImpl

public SQLCharImpl(Boolean isVarying,
                   Integer length)
Method Detail

doesEqual

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

isVarying

public Boolean isVarying()
Returns true if this is CHARACTER VARYING; false otherwise.

Specified by:
isVarying in interface SQLChar
Returns:
true if this is CHARACTER VARYING; false otherwise.

getLength

public Integer getLength()
Returns the length specification for this CHARACTER or CHARACTER VARYING. Returns null if none specified.

Specified by:
getLength in interface SQLChar
Returns:
The length for this CHARACTER or CHARACTER VARYING.


Copyright © 2010-2012. All Rights Reserved.