|
||||||||||
| 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.BatchedUpdateCommand
public class BatchedUpdateCommand
Represents a batch of INSERT, UPDATE, DELETE, and SELECT INTO commands
| Field Summary | |
|---|---|
protected java.util.List |
commands
|
| 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 | |
|---|---|
BatchedUpdateCommand(java.util.List updateCommands)
|
|
| Method Summary | |
|---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
void |
addSubCommand(Command command)
Add sub command |
void |
addSubCommands(java.util.Collection commands)
Add sub commands |
boolean |
areResultsCachable()
Whether the results are cachable. |
java.lang.Object |
clone()
Implement clone to make objects cloneable. |
java.util.List |
getContainedCommands()
|
java.util.List |
getProjectedSymbols()
Get the ordered list of all elements returned by this query. |
java.util.List |
getSubCommands()
Gets the subCommands (both embedded and non-embedded) under this command. |
int |
getType()
Return type of command to make it easier to build switch statements by command type. |
java.util.List |
getUpdateCommands()
Gets the List of updates contained in this batch |
java.lang.String |
toString()
Returns a string representation of an instance of this class. |
int |
updatingModelCount(QueryMetadataInterface metadata)
Return the number of updates on physical sources by this command. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List commands
| Constructor Detail |
|---|
public BatchedUpdateCommand(java.util.List updateCommands)
updateCommands - | Method Detail |
|---|
public void addSubCommand(Command command)
command - Additional sub-commandpublic void addSubCommands(java.util.Collection commands)
commands - Additional sub-commandspublic java.util.List getSubCommands()
Command
getSubCommands in class CommandCommand.getSubCommands()public java.util.List getUpdateCommands()
public int getType()
Command
getType in class CommandCommand.getType()public java.util.List getProjectedSymbols()
Command
getProjectedSymbols in class CommandCommand.getProjectedSymbols()
public int updatingModelCount(QueryMetadataInterface metadata)
throws MetaMatrixComponentException
Command
updatingModelCount in class Commandmetadata - QueryMetadataInterface
MetaMatrixComponentExceptionpublic void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor in interface LanguageObjectvisitor - Visitor being usedpublic java.lang.Object clone()
LanguageObject
clone in interface LanguageObjectclone in class CommandObject.clone()public boolean areResultsCachable()
Command
areResultsCachable in class CommandCommand.areResultsCachable()public java.lang.String toString()
Command
toString in class Commandpublic java.util.List getContainedCommands()
getContainedCommands in interface CommandContainerCommandContainer.getContainedCommands()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||