public class PlSqlBlock extends PlSqlCodeFragment
PlSqlSubProgram and all the SchemaObject types: Procedure,
 Function, Package, PackageBody, Type,
 TypeBody and Trigger.AbstractDBObject.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)
Adds the given PlSqlBlock to the Blocks property array 
 | 
void | 
addDatatype(PlSqlDatatype datatype)
Adds the given PlSqlDatatype to the Datatypes property array 
 | 
void | 
addReference(PlSqlReference reference)
Adds the given PlSqlReference to the References 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()
Get method for the Blocks property 
 | 
PlSqlDatatype[] | 
getDatatypes()
Get method for the Datatypes property 
 | 
PlSqlReference[] | 
getReferences()
Get method for the References 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)
Set method for the Blocks property 
 | 
void | 
setDatatypes(PlSqlDatatype[] datatypes)
Set method for the Datatypes property 
 | 
void | 
setReferences(PlSqlReference[] refs)
Set method for the References property 
 | 
void | 
setSubPrograms(PlSqlSubProgram[] subPrograms)
Set method for the SubPrograms property 
 | 
void | 
setVariables(PlSqlVariable[] variables)
Set method for the Variables property 
 | 
addComment, getComments, setCommentscopyToImpl, getChildAtOffset, getDeclarationAtOffset, getEndOffset, getEndToken, getName, getReferenceAtOffset, getSourceID, getStartOffset, getStartToken, setEndOffset, setSourceImpl, setStartOffsetsetParentcheckInit, checkInit, getOwnedObjectsImpl, getProperties, getReferenceIDsImpl, needsInitializationaddObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, equals, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, findParent, fireObjectUpdated, firePropertyChanged, getChildSupport, getID, getOwnedObjects, getOwnedObjects, getParent, getProperty, getProperty, getReferenceIDs, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, setProperty, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetParentaddObjectListener, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, getID, getOwnedObjects, getOwnedObjects, getProperties, getReferenceIDs, hashCode, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setNamegetProperty, getProperty, setProperties, setPropertypublic static final java.lang.String TYPE
public PlSqlBlock()
public PlSqlBlock(java.lang.String name,
          DBObject parent)
public java.lang.String getType()
DBObjectpublic void setBlocks(PlSqlBlock[] blocks)
blocks - any child PlSqlBlock'spublic PlSqlBlock[] getBlocks()
PlSqlBlock'spublic void addBlock(PlSqlBlock block)
block - public void setReferences(PlSqlReference[] refs)
refs - references to other objects from within this PlSqlBlockpublic PlSqlReference[] getReferences()
public void addReference(PlSqlReference reference)
reference - reference to an object from within this PlSqlBlockpublic 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)