public class StoredProcedure extends ProcedureContainer
LanguageObject.UtiltempGroupIDs, TYPE_ALTER_PROC, TYPE_ALTER_TRIGGER, TYPE_ALTER_VIEW, TYPE_BATCHED_UPDATE, TYPE_CREATE, TYPE_DELETE, TYPE_DROP, TYPE_DYNAMIC, TYPE_INSERT, TYPE_QUERY, TYPE_SOURCE_EVENT, TYPE_STORED_PROCEDURE, TYPE_TRIGGER_ACTION, TYPE_UNKNOWN, TYPE_UPDATE, TYPE_UPDATE_PROCEDURE| Constructor and Description |
|---|
StoredProcedure()
Constructs a default instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.
|
boolean |
areResultsCachable()
Whether the results are cachable.
|
void |
clearParameters() |
Object |
clone()
Implement clone to make objects cloneable.
|
boolean |
displayNamedParameters()
Indicates whether parameters should be displayed in traditional
indexed manor, or as named parameters
|
boolean |
equals(Object obj) |
GroupSymbol |
getGroup() |
List<SPParameter> |
getInputParameters() |
Map<Integer,SPParameter> |
getMapOfParameters() |
Object |
getModelID() |
int |
getNumberOfColumns() |
SPParameter |
getParameter(int index) |
Collection<SPParameter> |
getParameters()
Returns a List of SPParameter objects for this stored procedure
|
String |
getProcedureCallableName() |
Object |
getProcedureID() |
String |
getProcedureName()
Get this stored procedure's name
|
LinkedHashMap<ElementSymbol,Expression> |
getProcedureParameters() |
List |
getProjectedSymbols()
Get the ordered list of all elements returned by this query.
|
ElementSymbol |
getResultSetColumn(int index) |
List<ElementSymbol> |
getResultSetColumns() |
int |
getType()
Return type of command.
|
int |
hashCode() |
boolean |
isCallableStatement() |
boolean |
isCalledWithReturn() |
boolean |
isProcedureRelational() |
boolean |
isPushedInQuery() |
boolean |
isReadOnly() |
boolean |
returnParameters() |
boolean |
returnsResultSet() |
boolean |
returnsScalarValue() |
void |
setCallableStatement(boolean isCallableStatement) |
void |
setCalledWithReturn(boolean calledWithReturn) |
void |
setDisplayNamedParameters(boolean displayNamedParameters)
Indicate whether parameters should be displayed in traditional
indexed manor, or as named parameters
|
void |
setGroup(GroupSymbol group) |
void |
setModelID(Object modelID) |
void |
setParameter(SPParameter parameter)
Set a stored procedure's parameter
|
void |
setProcedureCallableName(String callableName) |
void |
setProcedureID(Object procedureID) |
void |
setProcedureName(String procedureName)
Set this stored procedure's name
|
void |
setProcedureRelational(boolean isProcedureRelational) |
void |
setPushedInQuery(boolean pushedInQuery) |
String |
toString()
Returns a string representation of an instance of this class.
|
addTag, copyMetadataState, getUpdateCount, getUpdateInfo, hasTag, setUpdateCount, setUpdateInfoaddExternalGroupToContext, copyMetadataState, getAllExternalGroups, getCacheHint, getCommandToken, getCorrelatedReferences, getExternalGroupContexts, getOption, getProcessorPlan, getSourceHint, getTemporaryMetadata, getUpdateCommandSymbol, printCommandTree, printCommandTree, pushNewResolvingContext, sameOptionAndHint, setCacheHint, setCorrelatedReferences, setExternalGroupContexts, setOption, setProcessorPlan, setSourceHint, setTemporaryMetadatapublic StoredProcedure()
public int getType()
public void setProcedureName(String procedureName)
procedureName - the stored procedure's namepublic String getProcedureName()
public String getProcedureCallableName()
public void setProcedureCallableName(String callableName)
public Object getModelID()
public void setModelID(Object modelID)
public void setProcedureID(Object procedureID)
public Object getProcedureID()
public void setParameter(SPParameter parameter)
parameter - StoredProcedureParameter the parameterIllegalArgumentException - if the parameters (index and parameter)
are invalid.public Collection<SPParameter> getParameters()
public Map<Integer,SPParameter> getMapOfParameters()
public SPParameter getParameter(int index)
public int getNumberOfColumns()
public ElementSymbol getResultSetColumn(int index)
public List<ElementSymbol> getResultSetColumns()
getResultSetColumns in class Commandpublic void acceptVisitor(LanguageVisitor visitor)
LanguageObjectvisitor - Visitor being usedpublic Object clone()
LanguageObjectclone in interface LanguageObjectclone in class Commandpublic boolean returnsResultSet()
returnsResultSet in class Commandpublic boolean returnsScalarValue()
public boolean returnParameters()
public List getProjectedSymbols()
getProjectedSymbols in class Commandpublic String toString()
public int hashCode()
hashCode in class ObjectObject.hashCode()public void clearParameters()
public void setGroup(GroupSymbol group)
public GroupSymbol getGroup()
public boolean areResultsCachable()
CommandareResultsCachable in class CommandCommand.areResultsCachable()public boolean displayNamedParameters()
public void setDisplayNamedParameters(boolean displayNamedParameters)
displayNamedParameters - whether to display parameters as named or notpublic List<SPParameter> getInputParameters()
public boolean isProcedureRelational()
public void setProcedureRelational(boolean isProcedureRelational)
public boolean isCallableStatement()
public void setCallableStatement(boolean isCallableStatement)
public LinkedHashMap<ElementSymbol,Expression> getProcedureParameters()
public void setCalledWithReturn(boolean calledWithReturn)
public boolean isCalledWithReturn()
public boolean isPushedInQuery()
public void setPushedInQuery(boolean pushedInQuery)
public boolean isReadOnly()
Copyright © 2019. All rights reserved.