|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.db.AbstractDBObject oracle.javatools.db.datatypes.PredefinedDataType oracle.javatools.db.datatypes.NumericDataType
public class NumericDataType
Nested Class Summary | |
---|---|
static class |
NumericDataType.MinMaxValue
public static class MinMaxValue defines the minimum and maximum value range of integer and floating-point numbers for use by NumericDataType.validateDefaultValue(). |
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject |
---|
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport |
Field Summary | |
---|---|
static NumericDataType.MinMaxValue |
MIN_MAX_BIGINT
Standard definitions of integer MinMaxValues. |
static NumericDataType.MinMaxValue |
MIN_MAX_BIT
|
static NumericDataType.MinMaxValue |
MIN_MAX_INT
|
static NumericDataType.MinMaxValue |
MIN_MAX_MEDIUMINT
|
static NumericDataType.MinMaxValue |
MIN_MAX_MONEY
|
static NumericDataType.MinMaxValue |
MIN_MAX_SIGNED_TINYINT
|
static NumericDataType.MinMaxValue |
MIN_MAX_SMALLINT
|
static NumericDataType.MinMaxValue |
MIN_MAX_SMALLMONEY
|
static NumericDataType.MinMaxValue |
MIN_MAX_UNSIGNED_TINYINT
|
static DataTypeAttribute |
UNSIGNED
Standard definition of UNSIGNED data type attribute |
Fields inherited from interface oracle.javatools.db.datatypes.DataType |
---|
PCTROWTYPE, PCTTYPE, REF, TYPE |
Fields inherited from interface oracle.javatools.db.DBObject |
---|
COMMENT |
Constructor Summary | |
---|---|
NumericDataType()
|
|
NumericDataType(int domain,
java.lang.String name,
NumericDataType.MinMaxValue minMaxValues)
Use this constructor when the data type is a simple name with no declarable attributes, e.g. |
|
NumericDataType(int domain,
java.lang.String name,
java.lang.String definition,
DataTypeAttribute[] attributes,
NumericDataType.MinMaxValue minMaxValues)
Use this constructor when the data type has declarable attributes, e.g. |
|
NumericDataType(int domain,
java.lang.String name,
java.lang.String definition,
long minPrecision,
long maxPrecision,
java.lang.Long defaultPrecision,
boolean isPrecisionMandatory,
DataTypeAttribute[] attributes,
NumericDataType.MinMaxValue minMaxValues)
Use this constructor when the datatype has declarable precision, e.g. |
|
NumericDataType(int domain,
java.lang.String name,
java.lang.String definition,
long minPrecision,
long maxPrecision,
java.lang.Long defaultPrecision,
boolean isPrecisionMandatory,
long minScale,
java.lang.Long maxScale,
java.lang.Long defaultScale,
boolean isScaleMandatory,
DataTypeAttribute[] attributes,
NumericDataType.MinMaxValue minMaxValues)
Use this constructor when the number type has declarable precision and scale, e.g. |
Method Summary | |
---|---|
protected void |
copyToImpl(AbstractDBObject other,
DBObject copyParent,
IDPolicy idPolicy)
Implementation method for making a copy of this object. |
protected boolean |
equalsImpl(AbstractDBObject target)
Equals implementation for testing equality with another AbstractDBObject. |
void |
validateDefaultValue(java.lang.Object defaultValue,
DataTypeUsage dataTypeUsage,
DBObject dbObject)
Validates defaultValue for dataTypeUsage against the declared precision, scale and min and max values of this numeric type. |
void |
validateUsage(DataTypeUsage dataTypeUsage,
DBObject dbObject)
Validates dataTypeUsage against self's definition. |
Methods inherited from class oracle.javatools.db.datatypes.PredefinedDataType |
---|
addAttribute, addAttribute, createDefaultUsage, createUsage, createUsage, getDataTypeAttribute, getDataTypeAttributes, getDDL, getParent, getType, hasDataTypeAttribute, matches, parseDefaultValue, removeAttribute, setDataTypeAttributes, tokenize, validateDefinition |
Methods inherited from class oracle.javatools.db.AbstractDBObject |
---|
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getOwnedObjectsImpl, getProperties, getProperty, getProperty, getReferenceIDs, getReferenceIDsImpl, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, setProperty, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.javatools.db.DBObject |
---|
copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getReferenceIDs, replaceReferenceIDs, setID, setName |
Methods inherited from interface oracle.javatools.util.DynamicPropertySet |
---|
getProperties, getProperty, getProperty, setProperties, setProperty |
Field Detail |
---|
public static final DataTypeAttribute UNSIGNED
public static final NumericDataType.MinMaxValue MIN_MAX_BIGINT
public static final NumericDataType.MinMaxValue MIN_MAX_INT
public static final NumericDataType.MinMaxValue MIN_MAX_MEDIUMINT
public static final NumericDataType.MinMaxValue MIN_MAX_SMALLINT
public static final NumericDataType.MinMaxValue MIN_MAX_SIGNED_TINYINT
public static final NumericDataType.MinMaxValue MIN_MAX_UNSIGNED_TINYINT
public static final NumericDataType.MinMaxValue MIN_MAX_MONEY
public static final NumericDataType.MinMaxValue MIN_MAX_SMALLMONEY
public static final NumericDataType.MinMaxValue MIN_MAX_BIT
Constructor Detail |
---|
public NumericDataType()
public NumericDataType(int domain, java.lang.String name, NumericDataType.MinMaxValue minMaxValues)
domain
- : Context of data type definition, e.g. column, variable.
Domains are specific to each database and are defined in their interface.name
- : data type nameminMaxValues
- : the min and max permissible value for this typepublic NumericDataType(int domain, java.lang.String name, java.lang.String definition, DataTypeAttribute[] attributes, NumericDataType.MinMaxValue minMaxValues)
domain
- : Context of data type definition, e.g. column, variable.
Domains are specific to each database and are defined in their interface.name
- : data type namedefinition
- : BNF definition of this data typeattributes
- : definitions of this type's attributesminMaxValues
- : the min and max permissible value for this typepublic NumericDataType(int domain, java.lang.String name, java.lang.String definition, long minPrecision, long maxPrecision, java.lang.Long defaultPrecision, boolean isPrecisionMandatory, DataTypeAttribute[] attributes, NumericDataType.MinMaxValue minMaxValues)
domain
- : Context of data type definition, e.g. column, variable.
Domains are specific to each database and are defined in their interface.name
- : data type namedefinition
- : BNF definition of this data typeminPrecision
- : the minimum declarable precision of the data typemaxPrecision
- : the maximum declarable precision of the data typedefaultPrecision
- : default precision for optional fixed-point numbers,
default precision for initialising UI of mandatory fixed-point numbers,
null for floating-point numbers.isPrecisionMandatory
- : TRUE if the precision must be specifiedattributes
- : definitions of additional attributesminMaxValues
- : the min and max permissible value for this typepublic NumericDataType(int domain, java.lang.String name, java.lang.String definition, long minPrecision, long maxPrecision, java.lang.Long defaultPrecision, boolean isPrecisionMandatory, long minScale, java.lang.Long maxScale, java.lang.Long defaultScale, boolean isScaleMandatory, DataTypeAttribute[] attributes, NumericDataType.MinMaxValue minMaxValues)
domain
- : Context of data type definition, e.g. column, variable.
Domains are specific to each database and are defined in their interface.name
- : data type namedefinition
- : BNF definition of this data typeminPrecision
- : the minimum declarable precision of the data typemaxPrecision
- : the maximum declarable precision of the data typedefaultPrecision
- : default precision for optional fixed-point numbers,
default precision for initialising UI of mandatory exact numbers,
null for floating-point numbers.isPrecisionMandatory
- : TRUE if the precision must be specifiedminScale
- : the minimum declarable scale of the data typemaxScale
- : the maximum declarable scale of the data type, or null if s <= pdefaultScale
- : default scale for optional exact numbers,
default scale for initialising UI of mandatory exact numbers,
null for approximate numbers.isScaleMandatory
- : TRUE if the scale must be specifiedattributes
- : definitions of additional attributesminMaxValues
- : the min and max permissible value for this typeMethod Detail |
---|
protected void copyToImpl(AbstractDBObject other, DBObject copyParent, IDPolicy idPolicy)
AbstractDBObject
copyToImpl
in class PredefinedDataType
other
- the copy being created of this objectcopyParent
- if this object is being copied underneath a parent, this
parameter is the copy of the parent of this object, which will therefore
need to be the parent of the copy of this object.idPolicy
- the policy for copying the object's ID.protected boolean equalsImpl(AbstractDBObject target)
AbstractDBObject
equalsImpl
in class PredefinedDataType
public void validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject) throws DataTypeValidationException
validateUsage
in interface DataType
validateUsage
in class PredefinedDataType
dataTypeUsage
- : the usage to be validateddbObject
- : the context of the data type usage
DataTypeValidationException
public void validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject) throws DefaultValueValidationException
validateDefaultValue
in interface DataType
validateDefaultValue
in class PredefinedDataType
dataTypeUsage
- : the usage to be validateddefaultValue
- : the default valuedbObject
- : the context of the data type usage
DataTypeValidationException
DefaultValueValidationException
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |