public class PlSqlBlock extends PlSqlStatement
PlSqlSubProgram and all the SchemaObject types: Procedure,
Function, Package, PackageBody, Type,
TypeBody and Trigger.PlSqlStatement.TypeAbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE |
| Constructor and Description |
|---|
PlSqlBlock() |
PlSqlBlock(java.lang.String name,
DBObject parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBlock(PlSqlBlock block)
Deprecated.
Use super.addStatement()
|
void |
addDatatype(PlSqlDatatype datatype)
Adds the given PlSqlDatatype to the Datatypes property array
|
void |
addSubProgram(PlSqlSubProgram subProgram)
Adds the given PlSqlSubProgram to the SubPrograms property array
|
void |
addVariable(PlSqlVariable variable)
Adds the given PlSqlVariable to the Variables property array
|
DBObject |
findOwnedObject(DBObjectID id,
boolean strict)
Returns a child of this object that has the given ID.
|
PlSqlBlock[] |
getBlocks()
Deprecated.
Use super.getStatements()
|
PlSqlDatatype[] |
getDatatypes()
Get method for the Datatypes property
|
PlSqlSubProgram |
getSubProgram(java.lang.String name)
Gets a SubProgram of the given name
|
PlSqlSubProgram[] |
getSubPrograms()
Get method for the SubPrograms property
|
java.lang.String |
getType()
Returns the type of this object.
|
PlSqlVariable |
getVariable(java.lang.String name)
Gets a Variable of the given name
|
PlSqlVariable[] |
getVariables()
Get method for the Variables property
|
void |
setBlocks(PlSqlBlock[] blocks)
Deprecated.
Use super.setStatements()
|
void |
setDatatypes(PlSqlDatatype[] datatypes)
Set method for the Datatypes property
|
void |
setSubPrograms(PlSqlSubProgram[] subPrograms)
Set method for the SubPrograms property
|
void |
setVariables(PlSqlVariable[] variables)
Set method for the Variables property
|
addStatement, getStatements, getStatementType, setStatements, setStatementTypeaddComment, addPropertyReference, addReference, getComments, getPropertyReferences, getReferences, setComments, setPropertyReferences, setReferencescopyToImpl, getChildAtOffset, getDeclarationAtOffset, getEndOffset, getName, getReferenceAtOffset, getSource, getSourceID, getStartOffset, setEndOffset, setSource, setSourceImpl, setStartOffsetsetParentcheckInit, checkInit, getOwnedObjectsImpl, getProperties, getReferenceIDsImpl, needsInitialization, processPropertyChange, setIDaddObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, findParent, fireObjectUpdated, firePropertyChanged, getChildSupport, getChildSupport, getID, getOwnedObjects, getOwnedObjects, getParent, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, replaceReferenceIDs, setName, setProperties, setProperty, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetParentaddObjectListener, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, getID, getOwnedObjects, getOwnedObjects, getProperties, getProperty, getProperty, getReferenceIDs, hashCode, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setName, setProperties, setPropertypublic static final java.lang.String TYPE
public PlSqlBlock()
public PlSqlBlock(java.lang.String name,
DBObject parent)
public java.lang.String getType()
DBObjectgetType in interface DBObjectgetType in class PlSqlStatement@Deprecated public void setBlocks(PlSqlBlock[] blocks)
@Deprecated public PlSqlBlock[] getBlocks()
@Deprecated public void addBlock(PlSqlBlock block)
public void setVariables(PlSqlVariable[] variables)
variables - Variables defined within this PlSqlBlockpublic PlSqlVariable[] getVariables()
public PlSqlVariable getVariable(java.lang.String name)
public void addVariable(PlSqlVariable variable)
variable - Variables defined within this PlSqlBlockpublic void setSubPrograms(PlSqlSubProgram[] subPrograms)
subPrograms - SubPrograms (procedures and functions) defined within this PlSqlBlockpublic PlSqlSubProgram[] getSubPrograms()
public PlSqlSubProgram getSubProgram(java.lang.String name)
public void addSubProgram(PlSqlSubProgram subProgram)
subProgram - SubProgram (procedure or function) of the given name defined
within this PlSqlBlockpublic void setDatatypes(PlSqlDatatype[] datatypes)
datatypes - DataTypes defined within this PlSqlBlockpublic PlSqlDatatype[] getDatatypes()
public void addDatatype(PlSqlDatatype datatype)
datatype - DataType defined within this PlSqlBlockpublic DBObject findOwnedObject(DBObjectID id, boolean strict)
DBObjectNote: an unstrict comparison can be time consuming, only request it if you need it (i.e. you are searching using a DBObjectID that did not originate in this object's heirarchy).
The method does not recurse to look for children of children.
This will not find SchemaObjects in a Schema, as in the API the Schema -> SchemaObject relationship is not an owner -> owned object relationship.
findOwnedObject in interface DBObjectfindOwnedObject in class AbstractDBObjectid - the id to look forstrict - whether to stricly compare IDs or notDBObjectID.equals(DBObjectID,boolean)