org.sql.generation.implementation.grammar.common.datatypes
Class NumericImpl
java.lang.Object
org.atp.spi.TypeableImpl<SQLDataType,Numeric>
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. |
| Methods inherited from class org.atp.spi.TypeableImpl |
bothNullOrEquals, equals, getImplementedType |
| Methods inherited from interface org.atp.api.Typeable |
getImplementedType |
PLAIN_NUMERIC
public static final Numeric PLAIN_NUMERIC
- This instance represents
NUMERIC without precision and scale.
NumericImpl
public NumericImpl(Integer precision,
Integer scale)
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-2012. All Rights Reserved.