Package org.teiid.language
Class BatchedUpdates
- java.lang.Object
-
- org.teiid.language.BaseLanguageObject
-
- org.teiid.language.BatchedUpdates
-
- All Implemented Interfaces:
Command
,LanguageObject
public class BatchedUpdates extends BaseLanguageObject implements Command
Represents a batch of INSERT, UPDATE and DELETE commands to be executed together.
-
-
Constructor Summary
Constructors Constructor Description BatchedUpdates(List<Command> updateCommands)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisitor(LanguageObjectVisitor visitor)
List<Command>
getUpdateCommands()
boolean
isSingleResult()
Whether the batch represents a logical unit of work It is not required that this be treated as atomic, but the translator can use this as hintvoid
setSingleResult(boolean atomic)
String
toString()
String
toString(boolean allCommands)
-
-
-
Method Detail
-
getUpdateCommands
public List<Command> getUpdateCommands()
- Returns:
- a list of IInsert, IUpdate and IDelete commands in this batched update.
-
acceptVisitor
public void acceptVisitor(LanguageObjectVisitor visitor)
- Specified by:
acceptVisitor
in interfaceLanguageObject
-
isSingleResult
public boolean isSingleResult()
Whether the batch represents a logical unit of work It is not required that this be treated as atomic, but the translator can use this as hint- Returns:
-
setSingleResult
public void setSingleResult(boolean atomic)
-
toString
public String toString()
- Overrides:
toString
in classBaseLanguageObject
-
toString
public String toString(boolean allCommands)
-
-