org.sql.generation.api.grammar.common.datatypes
Interface Decimal

All Superinterfaces:
ParametrizableDataType, SQLDataType, org.atp.api.Typeable<SQLDataType>

public interface Decimal
extends SQLDataType, ParametrizableDataType

This class represents the DECIMAL data type, sometimes abbreviated as DEC. The site http://intelligent-enterprise.informationweek.com/000626/celko.jhtml explains difference between NUMERIC and DECIMAL:

The difference between DECIMAL(s,p) and NUMERIC(s,p) is subtle in the SQL-92 Standard -- DECIMAL(s,p) must be exactly as precise as declared, while NUMERIC(s,p) must be at least as precise as declared.

Author:
Stanislav Muhametsin

Method Summary
 Integer getPrecision()
          Returns the precision (first integer) for this DECIMAL.
 Integer getScale()
          Returns the scale (second integer) for this DECIMAL.
 
Methods inherited from interface org.atp.api.Typeable
getImplementedType
 

Method Detail

getPrecision

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

Returns:
The precision for this DECIMAL.

getScale

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

Returns:
The precision for this DECIMAL.


Copyright © 2010-2012. All Rights Reserved.