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

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

public final class DecimalImpl
extends org.atp.spi.TypeableImpl<SQLDataType,Decimal>
implements Decimal

Author:
Stanislav Muhametsin

Field Summary
static Decimal PLAIN_DECIMAL
          This instance represents DECIMAL without precision and scale.
 
Constructor Summary
DecimalImpl(Integer precision, Integer scale)
           
 
Method Summary
protected  boolean doesEqual(Decimal another)
           
 Integer getPrecision()
          Returns the precision (first integer) for this DECIMAL.
 Integer getScale()
          Returns the scale (second integer) for this DECIMAL.
 
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_DECIMAL

public static final Decimal PLAIN_DECIMAL
This instance represents DECIMAL without precision and scale.

Constructor Detail

DecimalImpl

public DecimalImpl(Integer precision,
                   Integer scale)
Method Detail

doesEqual

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

getPrecision

public Integer getPrecision()
Returns the precision (first integer) for this DECIMAL.

Specified by:
getPrecision in interface Decimal
Returns:
The precision for this DECIMAL.

getScale

public Integer getScale()
Returns the scale (second integer) for this DECIMAL.

Specified by:
getScale in interface Decimal
Returns:
The precision for this DECIMAL.


Copyright © 2010-2011. All Rights Reserved.