Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.javatools.db.ora
Class OracleNumberDataType

java.lang.Object
  extended by oracle.javatools.db.AbstractDBObject
      extended by oracle.javatools.db.datatypes.PredefinedDataType
          extended by oracle.javatools.db.datatypes.NumericDataType
              extended by oracle.javatools.db.ora.OracleNumberDataType

All Implemented Interfaces:
DataType, DBObject, Copyable, DynamicPropertySet

public class OracleNumberDataType
extends NumericDataType

Nested Class Summary

 

Nested classes/interfaces inherited from class oracle.javatools.db.datatypes.NumericDataType
NumericDataType.MinMaxValue

 

Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport

 

Field Summary

 

Fields inherited from class oracle.javatools.db.datatypes.NumericDataType
MIN_MAX_BIGINT, MIN_MAX_BIT, MIN_MAX_INT, MIN_MAX_MEDIUMINT, MIN_MAX_MONEY, MIN_MAX_SIGNED_TINYINT, MIN_MAX_SMALLINT, MIN_MAX_SMALLMONEY, MIN_MAX_UNSIGNED_TINYINT, UNSIGNED

 

Fields inherited from interface oracle.javatools.db.datatypes.DataType
PCTROWTYPE, PCTTYPE, REF, TYPE

 

Fields inherited from interface oracle.javatools.db.DBObject
COMMENT

 

Constructor Summary
OracleNumberDataType()
           
OracleNumberDataType(int domain)
           

 

Method Summary
 java.lang.String getDDL(DataTypeUsage dataTypeUsage)
          Generates the DDL for this type.
 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.NumericDataType
copyToImpl, equalsImpl

 

Methods inherited from class oracle.javatools.db.datatypes.PredefinedDataType
addAttribute, addAttribute, createDefaultUsage, createUsage, createUsage, getDataTypeAttribute, getDataTypeAttributes, 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

 

Constructor Detail

OracleNumberDataType

public OracleNumberDataType()

OracleNumberDataType

public OracleNumberDataType(int domain)

Method Detail

validateUsage

public void validateUsage(DataTypeUsage dataTypeUsage,
                          DBObject dbObject)
                   throws DataTypeValidationException
Description copied from class: NumericDataType
Validates dataTypeUsage against self's definition. Uses dataTypeUsage's get() methods to get the actual property values for validation. Method should be overridden by sub-classes to do sub-class validation.
Specified by:
validateUsage in interface DataType
Overrides:
validateUsage in class NumericDataType
Parameters:
dataTypeUsage - : the usage to be validated
dbObject - : the context of the data type usage
Throws:
DataTypeValidationException

validateDefaultValue

public void validateDefaultValue(java.lang.Object defaultValue,
                                 DataTypeUsage dataTypeUsage,
                                 DBObject dbObject)
                          throws DefaultValueValidationException
Description copied from class: NumericDataType
Validates defaultValue for dataTypeUsage against the declared precision, scale and min and max values of this numeric type.
Specified by:
validateDefaultValue in interface DataType
Overrides:
validateDefaultValue in class NumericDataType
Parameters:
defaultValue - : the default value
dataTypeUsage - : the usage to be validated
dbObject - : the context of the data type usage
Throws:
DefaultValueValidationException

getDDL

public java.lang.String getDDL(DataTypeUsage dataTypeUsage)
Description copied from interface: DataType
Generates the DDL for this type. Uses dataTypeUsages's get() methods to get the actual property values. Should be overridden by sub-classes to generate extra bits.
Specified by:
getDDL in interface DataType
Overrides:
getDDL in class PredefinedDataType

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


Copyright © 1997, 2012, Oracle. All rights reserved.