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.plsql
Class PlSqlBlock

java.lang.Object
  extended by oracle.javatools.db.AbstractDBObject
      extended by oracle.javatools.db.AbstractBuildableObject
          extended by oracle.javatools.db.plsql.DBObjectPlSqlFragment
              extended by oracle.javatools.db.plsql.PlSqlBlock

All Implemented Interfaces:
ChildDBObject, DBObject, Copyable, DynamicPropertySet
Direct Known Subclasses:
PlSqlSchemaObject, PlSqlSubProgram

public class PlSqlBlock
extends DBObjectPlSqlFragment

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

TYPE

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

Constructor Detail

PlSqlBlock

public PlSqlBlock()

PlSqlBlock

public PlSqlBlock(java.lang.String name,
                  DBObject parent)

Method Detail

getType

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

setBlocks

public void setBlocks(PlSqlBlock[] blocks)
Set method for the Blocks property
Parameters:
blocks - any child PlSqlBlock's
Since:
11.1.2.0.0

getBlocks

public PlSqlBlock[] getBlocks()
Get method for the Blocks property
Returns:
any child PlSqlBlock's
Since:
11.1.2.0.0

addBlock

public void addBlock(PlSqlBlock block)
Adds the given PlSqlBlock to the Blocks property array
Parameters:
block -
Since:
11.1.2.0.0

setReferences

public void setReferences(PlSqlReference[] refs)
Set method for the References property
Parameters:
refs - references to other objects from within this PlSqlBlock
Since:
11.1.2.0.0

getReferences

public PlSqlReference[] getReferences()
Get method for the References property
Returns:
references to other objects from within this PlSqlBlock
Since:
11.1.2.0.0

addReference

public void addReference(PlSqlReference reference)
Adds the given PlSqlReference to the References property array
Parameters:
reference - reference to an object from within this PlSqlBlock
Since:
11.1.2.0.0

setVariables

public void setVariables(PlSqlVariable[] variables)
Set method for the Variables property
Parameters:
variables - Variables defined within this PlSqlBlock
Since:
11.1.2.0.0

getVariables

public PlSqlVariable[] getVariables()
Get method for the Variables property
Returns:
Variables defined within this PlSqlBlock
Since:
11.1.2.0.0

getVariable

public PlSqlVariable getVariable(java.lang.String name)
Gets a Variable of the given name
Returns:
Variable of the given name defined within this PlSqlBlock, or null
Since:
11.1.2.0.0

addVariable

public void addVariable(PlSqlVariable variable)
Adds the given PlSqlVariable to the Variables property array
Parameters:
variable - Variables defined within this PlSqlBlock
Since:
11.1.2.0.0

setSubPrograms

public void setSubPrograms(PlSqlSubProgram[] subPrograms)
Set method for the SubPrograms property
Parameters:
subPrograms - SubPrograms (procedures and functions) defined within this PlSqlBlock
Since:
11.1.2.0.0

getSubPrograms

public PlSqlSubProgram[] getSubPrograms()
Get method for the SubPrograms property
Returns:
SubPrograms (procedures and functions) defined within this PlSqlBlock
Since:
11.1.2.0.0

getSubProgram

public PlSqlSubProgram getSubProgram(java.lang.String name)
Gets a SubProgram of the given name
Returns:
SubProgram (procedure or function) of the given name defined within this PlSqlBlock, or null
Since:
11.1.2.0.0

addSubProgram

public void addSubProgram(PlSqlSubProgram subProgram)
Adds the given PlSqlSubProgram to the SubPrograms property array
Parameters:
subProgram - SubProgram (procedure or function) of the given name defined within this PlSqlBlock
Since:
11.1.2.0.0

setDatatypes

public void setDatatypes(PlSqlDatatype[] datatypes)
Set method for the Datatypes property
Parameters:
datatypes - DataTypes defined within this PlSqlBlock
Since:
11.1.2.0.0

getDatatypes

public PlSqlDatatype[] getDatatypes()
Get method for the Datatypes property
Returns:
DataTypes defined within this PlSqlBlock
Since:
11.1.2.0.0

addDatatype

public void addDatatype(PlSqlDatatype datatype)
Adds the given PlSqlDatatype to the Datatypes property array
Parameters:
datatype - DataType defined within this PlSqlBlock
Since:
11.1.2.0.0

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.