Skip navigation links

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

E17493-03


oracle.javatools.db.datatypes
Class ComplexType

java.lang.Object
  extended by oracle.javatools.db.AbstractDBObject
      extended by oracle.javatools.db.AbstractBuildableObject
          extended by oracle.javatools.db.AbstractSystemObject
              extended by oracle.javatools.db.AbstractSchemaObject
                  extended by oracle.javatools.db.PlSql
                      extended by oracle.javatools.db.SpecPlSql
                          extended by oracle.javatools.db.datatypes.ComplexType

All Implemented Interfaces:
DataType, DBObject, SchemaObject, SourceObject, SystemObject, Copyable, DynamicPropertySet
Direct Known Subclasses:
ObjectType

Deprecated. use Type instead

@Deprecated
public class ComplexType
extends SpecPlSql
implements DataType
Since:
11.1.2.0.0

Nested Class Summary
static class ComplexType.SQLJUsingType
          Deprecated.  

 

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

 

Field Summary
static java.lang.String BODY_TYPE
          Deprecated.  
static java.lang.String COLLECTION_TYPECODE
          Deprecated.  
static java.lang.String OBJECT_TYPECODE
          Deprecated.  
static java.lang.String TABLE_TYPE
          Deprecated.  
static java.lang.String TYPE
          Deprecated.  
static java.lang.String VARRAY_TYPE
          Deprecated.  

 

Fields inherited from class oracle.javatools.db.PlSql
BLOCK_TYPE

 

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

 

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

 

Constructor Summary
ComplexType()
          Deprecated.  
ComplexType(java.lang.String name, Schema schema)
          Deprecated.  

 

Method Summary
 void addDeclaratorError(java.lang.String error)
          Deprecated.  
protected  void copyToImpl(AbstractDBObject other, DBObject copyParent, IDPolicy idPolicy)
          Deprecated. Implementation method for making a copy of this object.
 DataTypeUsage createDefaultUsage()
          Deprecated. Returns an DataTypeUsage object for this type.
 DataTypeUsage createUsage(java.util.Map<java.lang.String,java.lang.Object> attributes)
          Deprecated. Returns an DataTypeUsage object for this type, populated with attributes.
 DataTypeUsage createUsage(java.lang.String usageString)
          Deprecated. Returns an DataTypeUsage object for this type, populated with attributes based on the usageString.
protected  boolean equalsImpl(AbstractDBObject other)
          Deprecated. Equals implementation for testing equality with another AbstractDBObject.
 java.lang.String getCollectionType()
          Deprecated. Returns the code for the Type for Collection ComplexTypes - either VARRAY or TABLE.
 DataTypeAttribute getDataTypeAttribute(java.lang.String name)
          Deprecated. Returns the DataTypeAttribute with the given name, if this DataType has such an attribute.
 DataTypeAttribute[] getDataTypeAttributes()
          Deprecated. Returns the DataTypeAttributes for this DataType.
 java.lang.String getDDL(DataTypeUsage dataTypeUsage)
          Deprecated. Generates the DDL for this type.
 java.util.List<java.lang.String> getDeclaratorErrors()
          Deprecated.  
 java.lang.Integer getLimit()
          Deprecated.  
 DataTypeUsage getOfTypeUsage()
          Deprecated.  
 java.lang.String getOID()
          Deprecated.  
protected  void getOwnedObjectsImpl(java.util.Collection<DBObject> c, java.lang.String... types)
          Deprecated. Implementation first checks that the object has been built - then returns the collection from suprt.getOwnedObjectsImpl().
protected  void getReferenceIDsImpl(java.util.Collection<DBObjectID> refs)
          Deprecated. Implementation first checks that the object has been built - then returns the collection from suprt.getReferenceIDsImpl().
 java.lang.String getSqljExternalName()
          Deprecated.  
 ComplexType.SQLJUsingType getSqljUsing()
          Deprecated.  
 java.lang.String getType()
          Deprecated. Returns the type of this object.
 java.lang.String getTypeCode()
          Deprecated. Returns the code for the flavour of ComplexType - either ComplexType or collection type.
 DBObjectID getUnderTypeID()
          Deprecated.  
 boolean hasDataTypeAttribute(java.lang.String name)
          Deprecated. Returns true if this DataTYpe has the given attribute name.
 boolean isAuthidCurrentUser()
          Deprecated.  
 boolean isFinal()
          Deprecated. Whether this object type can be the supertype to another object type
 boolean isInstantiable()
          Deprecated. Whether an object can be defined to be of this type.
 boolean isMadeDeclarative()
          Deprecated.  
 boolean matches(java.lang.String usageString)
          Deprecated. Returns true if the usageString is valid syntax for the DataType, false otherwise.
 boolean replaceReferenceIDs(java.util.Map<DBObjectID,DBObjectID> idMap)
          Deprecated. Override in subclasses to replace reference IDs as appropriate.
 void setAuthidCurrentUser(boolean authidCurrentUser)
          Deprecated.  
 void setCollectionType(java.lang.String collType)
          Deprecated.  
 void setFinal(boolean isFinal)
          Deprecated. Set whether this object type can be the supertype to another object type.
 void setInstantiable(boolean isInstantiable)
          Deprecated. Set whether an object can be defined to be of this type.
 void setLimit(java.lang.Integer limit)
          Deprecated.  
 void setMadeDeclarative(boolean madeDeclarative)
          Deprecated.  
 void setOfTypeUsage(DataTypeUsage ofTypeUsage)
          Deprecated.  
 void setOID(java.lang.String oid)
          Deprecated.  
 void setSource(java.lang.String source)
          Deprecated.  
 void setSqljExternalName(java.lang.String sqljExternalName)
          Deprecated.  
 void setSqljUsing(ComplexType.SQLJUsingType sqljUsing)
          Deprecated.  
 void setTypeCode(java.lang.String typeCode)
          Deprecated.  
 void setUnderTypeID(DBObjectID underTypeID)
          Deprecated.  
 void validateDefaultValue(java.lang.Object defaultValue, DataTypeUsage dataTypeUsage, DBObject dbObject)
          Deprecated. Validates defaultValue for dataTypeUsage against self's definition.
 void validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject)
          Deprecated. Validates dataTypeUsage against self's definition.

 

Methods inherited from class oracle.javatools.db.SpecPlSql
addAttribute, addAttribute, addMethod, addMethod, getAttribute, getAttributes, getBodySource, getBodySourceInterrogator, getMethod, getMethods, removeAttribute, removeMethod, setAttributes, setBodySource, setMethods

 

Methods inherited from class oracle.javatools.db.PlSql
getSource, getSourceInterrogator, isPlSql

 

Methods inherited from class oracle.javatools.db.AbstractSchemaObject
getProperty, getSchema, setProperty, setSchema

 

Methods inherited from class oracle.javatools.db.AbstractSystemObject
addObjectListener, addObjectListener, addObjectListener, fireObjectUpdated, getParent, removeObjectListener, removeObjectListener, removeObjectListener

 

Methods inherited from class oracle.javatools.db.AbstractBuildableObject
checkInit, checkInit, getProperties, needsInitialization

 

Methods inherited from class oracle.javatools.db.AbstractDBObject
changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeThisAsParent, setID, setName, setProperties, 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, getParent, getReferenceIDs, setID, setName

 

Methods inherited from interface oracle.javatools.util.DynamicPropertySet
getProperties, getProperty, getProperty, setProperties, setProperty

 

Methods inherited from interface oracle.javatools.db.SchemaObject
addObjectListener, getSchema, removeObjectListener, setSchema

 

Methods inherited from interface oracle.javatools.db.SystemObject
addObjectListener, addObjectListener, fireObjectUpdated, removeObjectListener, removeObjectListener

 

Field Detail

TYPE

public static final java.lang.String TYPE
Deprecated. 
See Also:
Constant Field Values

OBJECT_TYPECODE

public static final java.lang.String OBJECT_TYPECODE
Deprecated. 
See Also:
Constant Field Values

COLLECTION_TYPECODE

public static final java.lang.String COLLECTION_TYPECODE
Deprecated. 
See Also:
Constant Field Values

BODY_TYPE

public static final java.lang.String BODY_TYPE
Deprecated. 
See Also:
Constant Field Values

TABLE_TYPE

public static final java.lang.String TABLE_TYPE
Deprecated. 
See Also:
Constant Field Values

VARRAY_TYPE

public static final java.lang.String VARRAY_TYPE
Deprecated. 
See Also:
Constant Field Values

Constructor Detail

ComplexType

public ComplexType()
Deprecated. 

ComplexType

public ComplexType(java.lang.String name,
                   Schema schema)
Deprecated. 

Method Detail

getType

public java.lang.String getType()
Deprecated. 
Description copied from interface: DBObject
Returns the type of this object. Valid types include things like tables, views, synonyms, and columns.
Specified by:
getType in interface DBObject
Returns:
a string describing the type of object.

copyToImpl

protected void copyToImpl(AbstractDBObject other,
                          DBObject copyParent,
                          IDPolicy idPolicy)
Deprecated. 
Description copied from class: AbstractDBObject
Implementation method for making a copy of this object. To add custom copyTo logic, a subclass must override this method (exactly), and must call back to the super implementation.
Overrides:
copyToImpl in class SpecPlSql
Parameters:
other - the copy being created of this object
copyParent - 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.

equalsImpl

protected boolean equalsImpl(AbstractDBObject other)
Deprecated. 
Description copied from class: AbstractDBObject
Equals implementation for testing equality with another AbstractDBObject. Override this method (with exact signature) to customise the equality comparison.
Overrides:
equalsImpl in class SpecPlSql

getOwnedObjectsImpl

protected void getOwnedObjectsImpl(java.util.Collection<DBObject> c,
                                   java.lang.String... types)
Deprecated. 
Description copied from class: AbstractBuildableObject
Implementation first checks that the object has been built - then returns the collection from suprt.getOwnedObjectsImpl(). All overrides must call this first to ensure the object has been built.
Overrides:
getOwnedObjectsImpl in class AbstractBuildableObject
Parameters:
c - a Collection of the apppropriate children.
types - a vararg of the type(s) to search for
See Also:
AbstractDBObject.includesType(java.lang.String, java.lang.String...)

getReferenceIDsImpl

protected void getReferenceIDsImpl(java.util.Collection<DBObjectID> refs)
Deprecated. 
Description copied from class: AbstractBuildableObject
Implementation first checks that the object has been built - then returns the collection from suprt.getReferenceIDsImpl(). All overrides must call this first to ensure the object has been built.
Overrides:
getReferenceIDsImpl in class AbstractBuildableObject
Parameters:
refs - the collection of ids this object references

replaceReferenceIDs

public boolean replaceReferenceIDs(java.util.Map<DBObjectID,DBObjectID> idMap)
Deprecated. 
Description copied from class: AbstractDBObject
Override in subclasses to replace reference IDs as appropriate. Always call super in the overridden implementation to make sure the default implementation (which checks the property map) is called.
Specified by:
replaceReferenceIDs in interface DBObject
Overrides:
replaceReferenceIDs in class AbstractDBObject
Parameters:
idMap - key = old DBObjectID, value = new DBObjectID
Returns:
true if any ids were replaced.

isFinal

public boolean isFinal()
Deprecated. 
Whether this object type can be the supertype to another object type
Returns:
true if no subtypes are allowed, false otherwise

setFinal

public void setFinal(boolean isFinal)
Deprecated. 
Set whether this object type can be the supertype to another object type. This will not affect the PL/SQL of the type and should only be used when bulding the type from the PL/SQL.
Parameters:
isFinal - true if no subtypes are to be allowed, false otherwise

isInstantiable

public boolean isInstantiable()
Deprecated. 
Whether an object can be defined to be of this type.
Returns:
true if an object can be of this type

setInstantiable

public void setInstantiable(boolean isInstantiable)
Deprecated. 
Set whether an object can be defined to be of this type. This will not affect the PL/SQL of the type and should only be used when bulding the type from the PL/SQL.
Parameters:
isInstantiable - set true if an object can be of this type

getTypeCode

public java.lang.String getTypeCode()
Deprecated. 
Returns the code for the flavour of ComplexType - either ComplexType or collection type.

setTypeCode

public void setTypeCode(java.lang.String typeCode)
Deprecated. 

getCollectionType

public java.lang.String getCollectionType()
Deprecated. 
Returns the code for the Type for Collection ComplexTypes - either VARRAY or TABLE.

setCollectionType

public void setCollectionType(java.lang.String collType)
Deprecated. 

setAuthidCurrentUser

public void setAuthidCurrentUser(boolean authidCurrentUser)
Deprecated. 

isAuthidCurrentUser

public boolean isAuthidCurrentUser()
Deprecated. 

setLimit

public void setLimit(java.lang.Integer limit)
Deprecated. 

getLimit

public java.lang.Integer getLimit()
Deprecated. 

setOfTypeUsage

public void setOfTypeUsage(DataTypeUsage ofTypeUsage)
Deprecated. 

getOfTypeUsage

public DataTypeUsage getOfTypeUsage()
Deprecated. 

setUnderTypeID

public void setUnderTypeID(DBObjectID underTypeID)
Deprecated. 

getUnderTypeID

public DBObjectID getUnderTypeID()
Deprecated. 

getDDL

public java.lang.String getDDL(DataTypeUsage dataTypeUsage)
Deprecated. 
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

getDataTypeAttributes

public DataTypeAttribute[] getDataTypeAttributes()
Deprecated. 
Description copied from interface: DataType
Returns the DataTypeAttributes for this DataType.
Specified by:
getDataTypeAttributes in interface DataType
Returns:
DataType's DataTypeAttributes in the order they were added.

hasDataTypeAttribute

public boolean hasDataTypeAttribute(java.lang.String name)
Deprecated. 
Description copied from interface: DataType
Returns true if this DataTYpe has the given attribute name.
Specified by:
hasDataTypeAttribute in interface DataType
Returns:
true if the DataTypeAttribute corresponding to name exists.

getDataTypeAttribute

public DataTypeAttribute getDataTypeAttribute(java.lang.String name)
Deprecated. 
Description copied from interface: DataType
Returns the DataTypeAttribute with the given name, if this DataType has such an attribute.
Specified by:
getDataTypeAttribute in interface DataType
Returns:
The DataTypeAttribute corresponding to name or null if none exists.

createDefaultUsage

public DataTypeUsage createDefaultUsage()
Deprecated. 
Description copied from interface: DataType
Returns an DataTypeUsage object for this type. Used by UI to create a default data type usage. Mandatory declarable attributes of the data type are initialised with appropriate values, e.g. the size of a usage of an Oracle VARCHAR2 data type would be set to 4000, its maximum. Should be overridden by sub-classes to return an object of the sub-class type.
Specified by:
createDefaultUsage in interface DataType

createUsage

public DataTypeUsage createUsage(java.util.Map<java.lang.String,java.lang.Object> attributes)
Deprecated. 
Description copied from interface: DataType
Returns an DataTypeUsage object for this type, populated with attributes. Should be overridden by sub-classes to return an object of the sub-class type.
Specified by:
createUsage in interface DataType

validateUsage

public void validateUsage(DataTypeUsage dataTypeUsage,
                          DBObject dbObject)
                   throws DataTypeValidationException
Deprecated. 
Description copied from interface: DataType
Validates dataTypeUsage against self's definition. Uses dataTypeUSage's get() methods to get the actual property values for validation. Should be overridden by sub-classes to do sub-class validation.
Specified by:
validateUsage in interface DataType
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
Deprecated. 
Description copied from interface: DataType
Validates defaultValue for dataTypeUsage against self's definition. Method should be overridden by sub-classes to do sub-class validation.
Specified by:
validateDefaultValue in interface DataType
Parameters:
defaultValue - : the default value
dataTypeUsage - : the usage to be validated
dbObject - : the context of the data type usage
Throws:
DefaultValueValidationException

setOID

public void setOID(java.lang.String oid)
Deprecated. 

getOID

public java.lang.String getOID()
Deprecated. 

setSqljExternalName

public void setSqljExternalName(java.lang.String sqljExternalName)
Deprecated. 

getSqljExternalName

public java.lang.String getSqljExternalName()
Deprecated. 

setSqljUsing

public void setSqljUsing(ComplexType.SQLJUsingType sqljUsing)
Deprecated. 

getSqljUsing

public ComplexType.SQLJUsingType getSqljUsing()
Deprecated. 

setMadeDeclarative

public final void setMadeDeclarative(boolean madeDeclarative)
Deprecated. 

isMadeDeclarative

public final boolean isMadeDeclarative()
Deprecated. 

setSource

public void setSource(java.lang.String source)
Deprecated. 
Specified by:
setSource in interface SourceObject
Overrides:
setSource in class PlSql

matches

public boolean matches(java.lang.String usageString)
Deprecated. 
Description copied from interface: DataType
Returns true if the usageString is valid syntax for the DataType, false otherwise. Should be overridden by sub-classes to do the validation.
Specified by:
matches in interface DataType

createUsage

public DataTypeUsage createUsage(java.lang.String usageString)
Deprecated. 
Description copied from interface: DataType
Returns an DataTypeUsage object for this type, populated with attributes based on the usageString. Returns null if the usageString does not match the syntax of the DataType. See DataType.matches(java.lang.String). Should be overridden by sub-classes to return an object of the sub-class type.
Specified by:
createUsage in interface DataType

addDeclaratorError

public void addDeclaratorError(java.lang.String error)
Deprecated. 

getDeclaratorErrors

public java.util.List<java.lang.String> getDeclaratorErrors()
Deprecated. 

Skip navigation links

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

E17493-03


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