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

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

public final class NumericImpl
extends org.atp.spi.TypeableImpl<SQLDataType,Numeric>
implements Numeric

Author:
Stanislav Muhametsin

Field Summary
static Numeric PLAIN_NUMERIC
          This instance represents NUMERIC without precision and scale.
 
Constructor Summary
NumericImpl(Integer precision, Integer scale)
           
 
Method Summary
protected  boolean doesEqual(Numeric another)
           
 Integer getPrecision()
          Returns the precision (first integer) for this NUMERIC.
 Integer getScale()
          Returns the scale (second integer) for this NUMERIC.
 
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_NUMERIC

public static final Numeric PLAIN_NUMERIC
This instance represents NUMERIC without precision and scale.

Constructor Detail

NumericImpl

public NumericImpl(Integer precision,
                   Integer scale)
Method Detail

doesEqual

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

getPrecision

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

Specified by:
getPrecision in interface Numeric
Returns:
The precision for this NUMERIC.

getScale

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

Specified by:
getScale in interface Numeric
Returns:
The precision for this NUMERIC.


Copyright © 2010-2011. All Rights Reserved.