public abstract class DmlCommand
extends java.lang.Object
Constructor and Description |
---|
DmlCommand() |
Modifier and Type | Method and Description |
---|---|
static Relation |
execDmlCommand(DBTransaction transaction,
DmlCommand command)
Sends a command to the server and returns the result obtained.
|
static Relation |
execDmlCommandAndEndTransaction(DBTransaction dbTransaction,
DmlCommand command)
Sends a command to the server and returns the result obtained.
|
abstract java.lang.String |
getCommand()
Gets the command text
|
abstract ServerCommand |
getServerCommand()
Gets the ServerCommand object representing this dml command
|
abstract void |
success()
Invoked after successfull execution.
|
public abstract java.lang.String getCommand()
public abstract ServerCommand getServerCommand()
public abstract void success()
public static final Relation execDmlCommand(DBTransaction transaction, DmlCommand command) throws ConnectionClosedException, ErrorMessageException
transaction
- The transaction in which to execute the commandcommand
- the command to be executed, in textual form.ConnectionClosedException
- If the connection was closed due to an I/O error that occurred during communication with the serverErrorMessageException
- If the response obtained from the server is not a commit confirmation, but an error response instead.public static final Relation execDmlCommandAndEndTransaction(DBTransaction dbTransaction, DmlCommand command) throws ConnectionClosedException, ErrorMessageException
dbTransaction
- The transaction in which to execute the given DML commandcommand
- the command to be executed, in textual form.ConnectionClosedException
- If the connection was closed due to an I/O error that occurred during communication with the serverErrorMessageException
- If the response obtained from the server is not a commit confirmation, but an error response instead.