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