public class PlSqlSubProgram extends PlSqlBlock
Procedure and Function respectively and type methods by the subclass PlSqlMethod. However, procedures and functions in a package are implemented by this class directly.AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
TYPE  | 
| Constructor and Description | 
|---|
PlSqlSubProgram()  | 
PlSqlSubProgram(java.lang.String name, DBObject parent)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addParameter(int index, PlSqlParameter parameter)
Adds the given PlSqlParameter to the Parameters property array at the specifed index 
 | 
void | 
addParameter(PlSqlParameter parameter)
Adds the given PlSqlParameter to the Parameters property array 
 | 
PlSqlParameter | 
getParameter(java.lang.String name)
Gets a Parameter of the given name 
 | 
PlSqlParameter[] | 
getParameters()
Get method for the Parameters property 
 | 
DBObjectID | 
getReturnTypeID()
Helper method to return the ID of the return type 
 | 
PlSqlReference | 
getReturnTypeReference()
Get method for the ReturnTypeReference property 
 | 
java.lang.String | 
getSignature()
Get method for the Signature property 
 | 
java.lang.String | 
getSignature(boolean names)  | 
java.lang.String | 
getType()
Returns the type of this object. 
 | 
void | 
removeParameter(PlSqlParameter parameter)
Removes the given PlSqlParameter from the Parameters property array 
 | 
void | 
setParameters(PlSqlParameter[] parameters)
Set method for the Parameters property 
 | 
void | 
setReturnTypeReference(PlSqlReference returnTypeRef)
Set method for the ReturnTypeReference property 
 | 
addBlock, addDatatype, addReference, addSubProgram, addVariable, getBlocks, getDatatypes, getReferences, getSubProgram, getSubPrograms, getVariable, getVariables, setBlocks, setDatatypes, setReferences, setSubPrograms, setVariablesaddComment, 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, waitgetParentaddObjectListener, copyTo, copyTo, copyTo, findOwnedObject, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getProperties, getReferenceIDs, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setIDgetProperty, getProperty, setProperties, setPropertypublic static final java.lang.String TYPE
public PlSqlSubProgram()
public PlSqlSubProgram(java.lang.String name,
               DBObject parent)
public java.lang.String getType()
DBObjectgetType in interface DBObjectgetType in class PlSqlBlockpublic void setParameters(PlSqlParameter[] parameters)
parameters - the parameters (arguments) to this sub-programpublic PlSqlParameter[] getParameters()
public void addParameter(PlSqlParameter parameter)
parameter -
public void addParameter(int index,
                PlSqlParameter parameter)
index - the index to add the new column atparameter - the new parameter to addpublic void removeParameter(PlSqlParameter parameter)
parameter -public PlSqlParameter getParameter(java.lang.String name)
public PlSqlReference getReturnTypeReference()
public void setReturnTypeReference(PlSqlReference returnTypeRef)
returnTypeRef - a PlSqlReference to the data type of the return typepublic DBObjectID getReturnTypeID()
public java.lang.String getSignature()
public java.lang.String getSignature(boolean names)