public class StoredProcedure extends ProcedureContainer
LanguageObject.Util
tempGroupIDs, 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, setUpdateInfo
addExternalGroupToContext, copyMetadataState, getAllExternalGroups, getCacheHint, getCommandToken, getCorrelatedReferences, getExternalGroupContexts, getOption, getProcessorPlan, getSourceHint, getTemporaryMetadata, getUpdateCommandSymbol, printCommandTree, printCommandTree, pushNewResolvingContext, sameOptionAndHint, setCacheHint, setCorrelatedReferences, setExternalGroupContexts, setOption, setProcessorPlan, setSourceHint, setTemporaryMetadata
public 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 Command
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
visitor
- Visitor being usedpublic Object clone()
LanguageObject
clone
in interface LanguageObject
clone
in class Command
public boolean returnsResultSet()
returnsResultSet
in class Command
public boolean returnsScalarValue()
public boolean returnParameters()
public List getProjectedSymbols()
getProjectedSymbols
in class Command
public String toString()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public void clearParameters()
public void setGroup(GroupSymbol group)
public GroupSymbol getGroup()
public boolean areResultsCachable()
Command
areResultsCachable
in class Command
Command.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.