|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.query.sql.lang.Command
com.metamatrix.query.sql.lang.ProcedureContainer
com.metamatrix.query.sql.lang.StoredProcedure
public class StoredProcedure
Represents a StoredProcedure statement of the form:
| Field Summary |
|---|
| Fields inherited from class com.metamatrix.query.sql.lang.Command |
|---|
tempGroupIDs, TYPE_BATCHED_UPDATE, TYPE_CREATE, TYPE_DELETE, TYPE_DROP, TYPE_DYNAMIC, TYPE_INSERT, TYPE_QUERY, TYPE_SQL, TYPE_STORED_PROCEDURE, TYPE_UNKNOWN, TYPE_UPDATE, TYPE_UPDATE_PROCEDURE, TYPE_XQUERY |
| Constructor Summary | |
|---|---|
StoredProcedure()
Constructs a default instance of this class. |
|
| Method Summary | |
|---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
boolean |
areResultsCachable()
Whether the results are cachable. |
void |
clearParameters()
|
java.lang.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(java.lang.Object obj)
|
GroupSymbol |
getGroup()
|
java.util.List<SPParameter> |
getInputParameters()
|
java.lang.Object |
getModelID()
|
int |
getNumberOfColumns()
|
SPParameter |
getParameter(int index)
|
java.util.List<SPParameter> |
getParameters()
Returns a List of SPParameter objects for this stored procedure |
java.lang.String |
getParamFullName(SPParameter param)
Return the full parameter name for the indicated parameter of this stored procedure. |
java.lang.String |
getProcedureCallableName()
|
java.lang.Object |
getProcedureID()
|
java.lang.String |
getProcedureName()
Get this stored procedure's name |
java.util.Map |
getProcedureParameters()
|
java.util.List |
getProjectedSymbols()
Get the ordered list of all elements returned by this query. |
ElementSymbol |
getResultSetColumn(int index)
|
java.util.List |
getResultSetColumns()
|
int |
getType()
Return type of command. |
int |
hashCode()
|
boolean |
isCallableStatement()
|
boolean |
isProcedureRelational()
|
boolean |
returnParameters()
|
boolean |
returnsResultSet()
|
boolean |
returnsScalarValue()
|
void |
setCallableStatement(boolean isCallableStatement)
|
void |
setDisplayNamedParameters(boolean displayNamedParameters)
Indicate whether parameters should be displayed in traditional indexed manor, or as named parameters |
void |
setGroup(GroupSymbol group)
|
void |
setModelID(java.lang.Object modelID)
|
void |
setParameter(SPParameter parameter)
Set a stored procedure's parameter |
void |
setProcedureCallableName(java.lang.String callableName)
|
void |
setProcedureID(java.lang.Object procedureID)
|
void |
setProcedureName(java.lang.String procedureName)
Set this stored procedure's name |
void |
setProcedureRelational(boolean isProcedureRelational)
|
java.lang.String |
toString()
Returns a string representation of an instance of this class. |
| Methods inherited from class com.metamatrix.query.sql.lang.ProcedureContainer |
|---|
copyMetadataState, getContainedCommands, getSubCommand, getUpdateCount, setSubCommand, setUpdateCount, updatingModelCount |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StoredProcedure()
| Method Detail |
|---|
public int getType()
getType in class Commandpublic void setProcedureName(java.lang.String procedureName)
procedureName - the stored procedure's name
IllegalArgumentExcecption - if the procedureName is invalid.public java.lang.String getProcedureName()
public java.lang.String getProcedureCallableName()
public void setProcedureCallableName(java.lang.String callableName)
public java.lang.Object getModelID()
public void setModelID(java.lang.Object modelID)
public void setProcedureID(java.lang.Object procedureID)
public java.lang.Object getProcedureID()
public void setParameter(SPParameter parameter)
index - the index of the parameter to setparameter - StoredProcedureParameter the parameter
IllegalArgumentExcecption - if the parameters (index and parameter)
are invalid.public java.util.List<SPParameter> getParameters()
public SPParameter getParameter(int index)
public int getNumberOfColumns()
public ElementSymbol getResultSetColumn(int index)
public java.util.List getResultSetColumns()
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
visitor - Visitor being usedpublic java.lang.Object clone()
LanguageObject
clone in interface LanguageObjectclone in class Commandpublic boolean returnsResultSet()
public boolean returnsScalarValue()
public boolean returnParameters()
public java.util.List getProjectedSymbols()
getProjectedSymbols in class Commandpublic java.lang.String toString()
toString in class Commandpublic int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void clearParameters()
public void setGroup(GroupSymbol group)
public GroupSymbol getGroup()
getGroup in class ProcedureContainerpublic boolean areResultsCachable()
Command
areResultsCachable in class CommandCommand.areResultsCachable()public boolean displayNamedParameters()
public void setDisplayNamedParameters(boolean displayNamedParameters)
namedParameters - whether to display parameters as named or notpublic java.lang.String getParamFullName(SPParameter param)
param -
public java.util.List<SPParameter> getInputParameters()
public boolean isProcedureRelational()
public void setProcedureRelational(boolean isProcedureRelational)
public boolean isCallableStatement()
public void setCallableStatement(boolean isCallableStatement)
public java.util.Map getProcedureParameters()
getProcedureParameters in class ProcedureContainerProcedureContainer.getProcedureParameters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||