public final class StartSubTransactionMessageTypeV1_0 extends StartSubTransactionMessageType
This message has the following fields :
Zone | Format | Length | Description |
---|---|---|---|
READONLYTRANSACTION | INTEGER | 1 | 1 if the transaction will not be doing any updates, and can therefore operate in read-only mode, 0 if the transaction is to perform updates on the database. This requires that the current transaction is also an update transaction. Update transactions cannot be nested within read-only transactions. |
AUTOCOMMIT | INTEGER | 1 | 1 if the server is required to commit every individual command sent to this transaction, 0 if the server is to commit this transaction only at the client's explicit request. |
MESSAGETYPEID
Modifier and Type | Method and Description |
---|---|
StartSubTransactionMessage |
message(boolean readOnlyTransaction,
boolean transactionWithStatementLevelLockRelease)
Gets a StartSubTransactionMessage of this MessageType's version, holding the given data
|
public StartSubTransactionMessage message(boolean readOnlyTransaction, boolean transactionWithStatementLevelLockRelease)
StartSubTransactionMessageType
message
in class StartSubTransactionMessageType
readOnlyTransaction
- flag indicating whether or not the new transaction is a read-only one, i.e. whether it will or will not attempt updates to the databasetransactionWithStatementLevelLockRelease
- flag indicating whether or not the server may automatically commit each individual statement executed in this transaction.