public class CreateProcedureCommand extends Command
This class represents a update procedure in the storedprocedure language.
It extends the Command
and represents the command for Insert , Update
and Delete procedures.
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 |
---|
CreateProcedureCommand()
Constructor for CreateUpdateProcedureCommand.
|
CreateProcedureCommand(Block block)
Constructor for CreateUpdateProcedureCommand.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.
|
boolean |
areResultsCachable()
Whether the results are cachable.
|
Object |
clone()
Deep clone statement to produce a new identical statement.
|
boolean |
equals(Object obj)
Compare two CreateUpdateProcedureCommand for equality.
|
Block |
getBlock()
Get the block on this command.
|
List |
getProjectedSymbols()
Get the ordered list of all elements returned by this query.
|
List<? extends Expression> |
getResultSetColumns() |
ElementSymbol |
getReturnVariable() |
int |
getType()
Return type of command to make it easier to build switch statements by command type.
|
int |
getUpdateType() |
GroupSymbol |
getVirtualGroup() |
int |
hashCode()
Get hashcode for CreateUpdateProcedureCommand.
|
boolean |
returnsResultSet() |
void |
setBlock(Block block)
Set the block on this command.
|
void |
setProjectedSymbols(List projSymbols) |
void |
setResultSetColumns(List<? extends Expression> resultSetColumns) |
void |
setReturnVariable(ElementSymbol symbol) |
void |
setUpdateType(int type) |
void |
setVirtualGroup(GroupSymbol virtualGroup) |
String |
toString()
Returns a string representation of an instance of this class.
|
addExternalGroupToContext, copyMetadataState, getAllExternalGroups, getCacheHint, getCommandToken, getCorrelatedReferences, getExternalGroupContexts, getOption, getProcessorPlan, getSourceHint, getTemporaryMetadata, getUpdateCommandSymbol, isResolved, printCommandTree, printCommandTree, pushNewResolvingContext, sameOptionAndHint, setCacheHint, setCorrelatedReferences, setExternalGroupContexts, setIsResolved, setOption, setProcessorPlan, setSourceHint, setTemporaryMetadata
public CreateProcedureCommand()
public CreateProcedureCommand(Block block)
block
- The block on this commandtype
- The procedure typepublic int getType()
public Block getBlock()
Block
on this commandpublic void setBlock(Block block)
block
- The Block
on this commandpublic void acceptVisitor(LanguageVisitor visitor)
LanguageObject
visitor
- Visitor being usedpublic Object clone()
clone
in interface LanguageObject
clone
in class Command
public boolean equals(Object obj)
public int hashCode()
public String toString()
public List getProjectedSymbols()
getProjectedSymbols
in class Command
public List<? extends Expression> getResultSetColumns()
getResultSetColumns
in class Command
public void setResultSetColumns(List<? extends Expression> resultSetColumns)
public void setProjectedSymbols(List projSymbols)
projSymbols
- public boolean areResultsCachable()
Command
areResultsCachable
in class Command
Command.areResultsCachable()
public GroupSymbol getVirtualGroup()
public void setVirtualGroup(GroupSymbol virtualGroup)
public void setUpdateType(int type)
public int getUpdateType()
public void setReturnVariable(ElementSymbol symbol)
public ElementSymbol getReturnVariable()
public boolean returnsResultSet()
returnsResultSet
in class Command
Copyright © 2017 JBoss by Red Hat. All rights reserved.