public class PlSqlSubProgram extends PlSqlBlock implements SQLCallable
Procedure and Function respectively and type methods
by the subclass PlSqlMethod. However, procedures and functions
in a package are implemented by this class directly.PlSqlStatement.TypeAbstractDBObject.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
|
java.lang.Integer |
getArgumentDefiningReturnType() |
SQLCallableArgument[] |
getArguments() |
java.lang.String |
getDeclarartion()
Deprecated.
- Use getSignature()
|
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()
Returns a String representation of the signature of the PlSqlSubProgram.
|
java.lang.String |
getSignature(boolean names)
Returns a String representation of the signature of the PlSqlSubProgram.
|
java.lang.String |
getSignature(boolean showParent,
boolean names)
Returns a String representation of the signature of the PlSqlSubProgram.
|
java.lang.String |
getType()
Returns the type of this object.
|
boolean |
isAggregate() |
boolean |
isFunction() |
boolean |
isParenthesesRequired()
Typically a function with arguments will require parentheses and one with no arguments
will not.
|
boolean |
isVariableArgumentList() |
boolean |
isWindow() |
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, addSubProgram, addVariable, findOwnedObject, getBlocks, getDatatypes, getSubProgram, getSubPrograms, getVariable, getVariables, setBlocks, setDatatypes, setSubPrograms, setVariablesaddStatement, 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, waitgetNamegetParentaddObjectListener, 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 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()
getReturnTypeID in interface SQLCallableSQLCallable.getArgumentDefiningReturnType()) or if the method is not a function.public java.lang.String getSignature()
public java.lang.String getSignature(boolean names)
names - whether to show the names of the parameters (or just datatype)public java.lang.String getSignature(boolean showParent,
boolean names)
showParent - whether to include the name of the package for packages
subprograms or type for type methods.names - whetherto show the names of the parameters (or just datatype)public final boolean isFunction()
isFunction in interface SQLCallablepublic final java.lang.Integer getArgumentDefiningReturnType()
getArgumentDefiningReturnType in interface SQLCallablepublic final SQLCallableArgument[] getArguments()
getArguments in interface SQLCallablepublic final boolean isAggregate()
isAggregate in interface SQLCallablepublic final boolean isWindow()
isWindow in interface SQLCallablepublic final boolean isParenthesesRequired()
SQLCallableisParenthesesRequired in interface SQLCallablepublic boolean isVariableArgumentList()
isVariableArgumentList in interface SQLCallable@Deprecated public final java.lang.String getDeclarartion()