|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.db.AbstractDBObject
oracle.javatools.db.AbstractBuildableObject
oracle.javatools.db.plsql.DBObjectPlSqlFragment
oracle.javatools.db.plsql.PlSqlBlock
public class PlSqlBlock
When instantiated as a concrete class, this represents a PL/SQL Block. However it also acts as a generic superclass for any PL/SQL object that may contain declarations of variables, sub programs and datatypes, and references to other objects. As such it is in the class hierarchy of PlSqlSubProgram
and all the SchemaObject types: Procedure
, Function
, Package
, PackageBody
, Type
, TypeBody
and Trigger
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class oracle.javatools.db.AbstractDBObject |
---|
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport |
Field Summary | |
---|---|
static java.lang.String |
TYPE |
Fields inherited from interface oracle.javatools.db.DBObject |
---|
COMMENT |
Constructor Summary | |
---|---|
PlSqlBlock() |
|
PlSqlBlock(java.lang.String name, DBObject parent) |
Method Summary | |
---|---|
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 |
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 |
Methods inherited from class oracle.javatools.db.plsql.DBObjectPlSqlFragment |
---|
clearSourceID, copyToImpl, getChildAtOffset, getEndOffset, getParent, getSourceID, getStartOffset, setEndOffset, setParent, setStartOffset |
Methods inherited from class oracle.javatools.db.AbstractBuildableObject |
---|
checkInit, checkInit, equalsImpl, getOwnedObjectsImpl, getProperties, getProperty, getReferenceIDsImpl, needsInitialization, setProperty |
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, replaceReferenceIDs, 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, getReferenceIDs, replaceReferenceIDs, setID, setName |
Methods inherited from interface oracle.javatools.util.DynamicPropertySet |
---|
getProperties, getProperty, getProperty, setProperties, setProperty |
Field Detail |
---|
public static final java.lang.String TYPE
Constructor Detail |
---|
public PlSqlBlock()
public PlSqlBlock(java.lang.String name, DBObject parent)
Method Detail |
---|
public java.lang.String getType()
DBObject
public 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 PlSqlBlock
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |