be.SIRAPRISE.messages
Class StartSubTransactionMessageTypeV1_0
java.lang.Object
be.SIRAPRISE.messages.ServerMessageType
be.SIRAPRISE.messages.ServerInputMessageType
be.SIRAPRISE.messages.StartSubTransactionMessageType
be.SIRAPRISE.messages.StartSubTransactionMessageTypeV1_0
public final class StartSubTransactionMessageTypeV1_0
- extends StartSubTransactionMessageType
StartSubTransactionMessageTypeV1_0 is V1_0 of the 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. |
- Since:
- SIRA_PRISE 1.2
- Author:
- Erwin Smout
Method Summary |
StartSubTransactionMessage |
message(boolean readOnlyTransaction,
boolean transactionWithStatementLevelLockRelease)
Gets a StartSubTransactionMessage of this MessageType's version, holding the given data |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
message
public StartSubTransactionMessage message(boolean readOnlyTransaction,
boolean transactionWithStatementLevelLockRelease)
- Description copied from class:
StartSubTransactionMessageType
- Gets a StartSubTransactionMessage of this MessageType's version, holding the given data
- Specified by:
message
in class StartSubTransactionMessageType
- Parameters:
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.
- Returns:
- StartTransactionMessage a StartTransactionMessage of this MessageType's version, holding the given data