public class PlSqlDatatype extends PlSqlCodeFragment implements DataType
| Modifier and Type | Class and Description |
|---|---|
static class |
PlSqlDatatype.Structure |
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE |
PCTROWTYPE, PCTTYPE, REF| Constructor and Description |
|---|
PlSqlDatatype() |
| Modifier and Type | Method and Description |
|---|---|
void |
addVariable(PlSqlVariable variable)
Adds the given PlSqlVariable to the Variables property array
|
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.
|
DBObjectID |
getBaseTypeID()
Get method for the BaseTypeID property
|
DataTypeAttribute |
getDataTypeAttribute(java.lang.String name)
Gets a DataTypeAttribute of the given name
|
DataTypeAttribute[] |
getDataTypeAttributes()
Get method for the DataTypeAttributes property
|
java.lang.String |
getDDL(DataTypeUsage dataTypeUsage)
Generates the DDL for this type.
|
java.lang.Integer |
getLimit()
Get method for the Limit property
|
PlSqlDatatype.Structure |
getStructure()
Get method for the Structure property
|
java.lang.String |
getType()
Returns the type of this object.
|
PlSqlVariable[] |
getVariables()
Get method for the Variables property
|
boolean |
hasDataTypeAttribute(java.lang.String name)
Returns true if this DataTYpe has the given attribute name.
|
boolean |
isSubType()
Get method for the SubType property
|
boolean |
matches(java.lang.String usageString)
Returns
true if the usageString is valid syntax for the DataType, false otherwise. |
void |
setBaseTypeID(DBObjectID baseTypeID)
Set method for the BaseTypeID property
|
void |
setLimit(java.lang.Integer limit)
Set method for the Limit property
|
void |
setStructure(PlSqlDatatype.Structure structure)
Set method for the Structure property
|
void |
setSubType(boolean subType)
Set method for the SubType property
|
void |
setVariables(PlSqlVariable[] variables)
Set method for the Variables property
|
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.
|
addComment, getComments, setCommentsclearSourceID, copyToImpl, fireObjectUpdated, getChildAtOffset, getDeclarationAtOffset, getEndOffset, getReferenceAtOffset, getSourceID, getStartOffset, isBuilt, setEndOffset, setName, setSourceImpl, setStartOffsetsetParentcheckInit, checkInit, equalsImpl, getOwnedObjectsImpl, getProperties, getReferenceIDsImpl, needsInitializationaddObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, findOwnedObject, findParent, firePropertyChanged, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, replaceReferenceIDs, setID, setProperties, setProperty, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddObjectListener, copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getParent, getProperties, getReferenceIDs, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setNamegetProperty, getProperty, setProperties, setPropertygetParentpublic static final java.lang.String TYPE
public java.lang.String getType()
DBObjectpublic void setVariables(PlSqlVariable[] variables)
variables - constituent members of a record datatypepublic PlSqlVariable[] getVariables()
public void addVariable(PlSqlVariable variable)
variable - member of a record datatypepublic boolean isSubType()
public void setSubType(boolean subType)
public PlSqlDatatype.Structure getStructure()
public void setStructure(PlSqlDatatype.Structure structure)
structure - indicator of the type of DataTypepublic DBObjectID getBaseTypeID()
public void setBaseTypeID(DBObjectID baseTypeID)
baseTypeID - the ID of the base datatype for collections such as table and varraypublic java.lang.Integer getLimit()
public void setLimit(java.lang.Integer limit)
limit - the size of the collection if varraypublic DataTypeAttribute[] getDataTypeAttributes()
getDataTypeAttributes in interface DataTypepublic boolean hasDataTypeAttribute(java.lang.String name)
DataTypehasDataTypeAttribute in interface DataTypepublic DataTypeAttribute getDataTypeAttribute(java.lang.String name)
getDataTypeAttribute in interface DataTypepublic java.lang.String getDDL(DataTypeUsage dataTypeUsage)
DataTypepublic DataTypeUsage createDefaultUsage()
DataTypecreateDefaultUsage in interface DataTypepublic DataTypeUsage createUsage(java.util.Map<java.lang.String,java.lang.Object> attributes)
DataTypecreateUsage in interface DataTypepublic DataTypeUsage createUsage(java.lang.String usageString)
DataTypeDataType.matches(java.lang.String). Should be overridden by sub-classes to return an object of the sub-class type.createUsage in interface DataTypepublic boolean matches(java.lang.String usageString)
DataTypetrue if the usageString is valid syntax for the DataType, false otherwise. Should be overridden by sub-classes to do the validation.public void validateUsage(DataTypeUsage dataTypeUsage, DBObject dbObject)
DataTypevalidateUsage in interface DataTypedataTypeUsage - : the usage to be validateddbObject - : the context of the data type usage
public void validateDefaultValue(java.lang.Object defaultValue,
DataTypeUsage dataTypeUsage,
DBObject dbObject)
DataTypevalidateDefaultValue in interface DataTypedefaultValue - : the default valuedataTypeUsage - : the usage to be validateddbObject - : the context of the data type usage