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

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

public interface Numeric
extends SQLDataType, ParametrizableDataType

This class represents the NUMERIC type. 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
 java.lang.Integer getPrecision()
          Returns the precision (first integer) for this NUMERIC.
 java.lang.Integer getScale()
          Returns the scale (second integer) for this NUMERIC.
 
Methods inherited from interface org.atp.api.Typeable
getImplementedType
 

Method Detail

getPrecision

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

Returns:
The precision for this NUMERIC.

getScale

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

Returns:
The precision for this NUMERIC.


Copyright © 2010. All Rights Reserved.