public class BatchedUpdateCommand extends Command
LanguageObject.Util
Modifier and Type | Field and Description |
---|---|
protected List<Command> |
commands |
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 |
---|
BatchedUpdateCommand(List<? extends Command> updateCommands) |
BatchedUpdateCommand(List<? extends Command> updateCommands,
boolean singleResult) |
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.
|
boolean |
areResultsCachable()
Whether the results are cachable.
|
Object |
clone()
Implement clone to make objects cloneable.
|
boolean |
equals(Object obj) |
List |
getProjectedSymbols()
Get the ordered list of all elements returned by this query.
|
String |
getStringForm(boolean full) |
int |
getType()
Return type of command to make it easier to build switch statements by command type.
|
List<Command> |
getUpdateCommands()
Gets the List of updates contained in this batch
|
List<VariableContext> |
getVariableContexts() |
int |
hashCode() |
boolean |
isSingleResult() |
void |
setSingleResult(boolean singleResult) |
void |
setVariableContexts(List<VariableContext> variableContexts) |
String |
toString()
Returns a string representation of an instance of this class.
|
addExternalGroupToContext, copyMetadataState, getAllExternalGroups, getCacheHint, getCommandToken, getCorrelatedReferences, getExternalGroupContexts, getOption, getProcessorPlan, getResultSetColumns, getSourceHint, getTemporaryMetadata, getUpdateCommandSymbol, isResolved, printCommandTree, printCommandTree, pushNewResolvingContext, returnsResultSet, sameOptionAndHint, setCacheHint, setCorrelatedReferences, setExternalGroupContexts, setIsResolved, setOption, setProcessorPlan, setSourceHint, setTemporaryMetadata
public BatchedUpdateCommand(List<? extends Command> updateCommands)
updateCommands
- public List<Command> getUpdateCommands()
public int getType()
Command
getType
in class Command
Command.getType()
public List getProjectedSymbols()
Command
getProjectedSymbols
in class Command
Command.getProjectedSymbols()
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
visitor
- Visitor being usedpublic Object clone()
LanguageObject
clone
in interface LanguageObject
clone
in class Command
Object.clone()
public boolean areResultsCachable()
Command
areResultsCachable
in class Command
Command.areResultsCachable()
public String toString()
Command
public void setVariableContexts(List<VariableContext> variableContexts)
public List<VariableContext> getVariableContexts()
public void setSingleResult(boolean singleResult)
public boolean isSingleResult()
public String getStringForm(boolean full)
Copyright © 2017 JBoss by Red Hat. All rights reserved.