|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataType
Interface defines a database datatype (e.g. VARCHAR, INTEGER) abstractly in terms of its attributes (e.g. size, precision, scale). It has methods to return the DDL representing its definition, and to validate a usage or default value for the represented type.
This replaces the deprecated oracle.javatools.db.DataType.
Field Summary | |
---|---|
static java.lang.String |
PCTROWTYPE |
static java.lang.String |
PCTTYPE |
static java.lang.String |
REF |
static java.lang.String |
TYPE |
Fields inherited from interface oracle.javatools.db.DBObject |
---|
COMMENT |
Method Summary | |
---|---|
DataTypeUsage |
createDefaultUsage() Returns an DataTypeUsage object for this type. |
DataTypeUsage |
createUsage(java.util.Map<java.lang.String,java.lang.Object> attributes) Returns an DataTypeUsage object for this type, populated with attributes. |
DataTypeUsage |
createUsage(java.lang.String usageString) Returns an DataTypeUsage object for this type, populated with attributes based on the usageString. |
DataTypeAttribute |
getDataTypeAttribute(java.lang.String name) Returns the DataTypeAttribute with the given name, if this DataType has such an attribute. |
DataTypeAttribute[] |
getDataTypeAttributes() Returns the DataTypeAttributes for this DataType. |
java.lang.String |
getDDL(DataTypeUsage dataTypeUsage) Generates the DDL for this type. |
boolean |
hasDataTypeAttribute(java.lang.String name) Returns true if this DataTYpe has the given attribute name. |
boolean |
matches(java.lang.String usageString) Returns true if the usageString is valid syntax for the DataType, false otherwise. |
void |
validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject) Validates defaultValue for dataTypeUsage against self's definition. |
void |
validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject) Validates dataTypeUsage against self's definition. |
Methods inherited from interface oracle.javatools.db.DBObject |
---|
copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getReferenceIDs, getType, replaceReferenceIDs, setID, setName |
Methods inherited from interface oracle.javatools.util.DynamicPropertySet |
---|
getProperties, getProperty, getProperty, setProperties, setProperty |
Field Detail |
---|
static final java.lang.String TYPE
static final java.lang.String PCTTYPE
static final java.lang.String PCTROWTYPE
static final java.lang.String REF
Method Detail |
---|
DataTypeAttribute[] getDataTypeAttributes()
boolean hasDataTypeAttribute(java.lang.String name)
name
-DataTypeAttribute getDataTypeAttribute(java.lang.String name)
name
-java.lang.String getDDL(DataTypeUsage dataTypeUsage)
dataType
-DataTypeUsage createDefaultUsage()
DataTypeUsage createUsage(java.util.Map<java.lang.String,java.lang.Object> attributes)
attributes
-boolean matches(java.lang.String usageString)
true
if the usageString is valid syntax for the DataType, false
otherwise. Should be overridden by sub-classes to do the validation.usageString
-DataTypeUsage createUsage(java.lang.String usageString)
matches(java.lang.String)
. Should be overridden by sub-classes to return an object of the sub-class type.attributes
-void validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject) throws DataTypeValidationException
dataTypeUsage
- : the usage to be validateddbObject
- : the context of the data type usageDataTypeValidationException
void validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject) throws DefaultValueValidationException
dataTypeUsage
- : the usage to be validateddefaultValue
- : the default valuedbObject
- : the context of the data type usageDefaultValueValidationException
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |