oracle.javatools.db.ora
Class OracleNumberDataType
java.lang.Object
oracle.javatools.db.AbstractDBObject
oracle.javatools.db.datatypes.PredefinedDataType
oracle.javatools.db.datatypes.NumericDataType
oracle.javatools.db.ora.OracleNumberDataType
- All Implemented Interfaces:
- DataType, DBObject, Copyable, DynamicPropertySet
public class OracleNumberDataType
- extends NumericDataType
- Since:
- release specific (what release of product did this appear in)
Methods inherited from class oracle.javatools.db.datatypes.PredefinedDataType |
addAttribute, addAttribute, copyToImpl, createDefaultUsage, createUsage, createUsage, equalsImpl, getDataTypeAttribute, getDataTypeAttributes, getParent, getType, hasDataTypeAttribute, matches, parseDefaultValue, removeAttribute, tokenize, validateDefinition |
Methods inherited from class oracle.javatools.db.AbstractDBObject |
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyToImpl, equalsImpl, 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 |
OracleNumberDataType
public OracleNumberDataType()
OracleNumberDataType
public OracleNumberDataType(int domain)
copyTo
public DBObject copyTo(DBObject target,
DBObject copyParent,
IDPolicy idPolicy)
- Description copied from class:
AbstractDBObject
- Internal copy method used by the API to perform copy operations. All
objects must implement this method if they are instantiable objects.
Abstract objects (e.g. Relation) must NOT implement this method. The
implementation should delegate to the copyToImpl method to copy
the actual properties.
This method does not fix internal reference ids on copy. That is done by
the calling DBObject.copyTo(DBObject, IDPolicy)
method.
- Overrides:
copyTo
in class NumericDataType
- See Also:
DBObject.copyTo(java.lang.Object)
,
DBObject.copyTo(DBObject, boolean)
,
AbstractDBObject.copyToImpl(oracle.javatools.db.AbstractDBObject, oracle.javatools.db.DBObject, oracle.javatools.db.IDPolicy)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class NumericDataType
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 validateddbObject
- : 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 valuedataTypeUsage
- : the usage to be validateddbObject
- : 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
Copyright © 1997, 2010, Oracle. All rights reserved.