public class EndTransactionRequestImpl extends org.apache.directory.api.ldap.model.message.AbstractExtendedRequest implements EndTransactionRequest
ExtendedRequest ::= [APPLICATION 23] SEQUENCE {
requestName [0] LDAPOID,
requestValue [1] OCTET STRING OPTIONAL }
where 'requestName' is 1.3.6.1.1.21.3 and requestValue is a BER encoded value. The
syntax for this value is :
txnEndReq ::= SEQUENCE {
commit BOOLEAN DEFAULT TRUE,
identifier OCTET STRING }
| Modifier and Type | Field and Description |
|---|---|
private boolean |
commit
A flag telling of we should commit or rollback the transaction
|
private byte[] |
transactionId
The transaction ID received from the StartTransactionResponse
|
EXTENSION_OID| Constructor and Description |
|---|
EndTransactionRequestImpl()
Creates a new instance of EndTransactionRequestImpl.
|
EndTransactionRequestImpl(int messageId)
Creates a new instance of EndTransactionRequestImpl.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCommit() |
EndTransactionResponse |
getResultResponse() |
byte[] |
getTransactionId() |
void |
setCommit(boolean commit)
Set the Commit flag for this transaction.
|
void |
setTransactionId(byte[] transactionId)
Set the transaction ID to commit or rollback
|
String |
toString() |
addAllControls, addControl, equals, getRequestName, getResponse, getResponseType, hashCode, removeControl, setMessageId, setRequestName, setResponsehasResponseget, getControl, getControls, getMessageId, getType, hasControl, put, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestNameprivate byte[] transactionId
private boolean commit
public EndTransactionRequestImpl(int messageId)
messageId - the message idpublic EndTransactionRequestImpl()
public EndTransactionResponse getResultResponse()
getResultResponse in interface org.apache.directory.api.ldap.model.message.ResultResponseRequestgetResultResponse in class org.apache.directory.api.ldap.model.message.AbstractExtendedRequestpublic boolean getCommit()
getCommit in interface EndTransactionRequestpublic void setCommit(boolean commit)
setCommit in interface EndTransactionRequestcommit - true if the transaction should be committed, false if
it should be rollbacked.public byte[] getTransactionId()
getTransactionId in interface EndTransactionRequestpublic void setTransactionId(byte[] transactionId)
setTransactionId in interface EndTransactionRequesttransactionId - The transaction ID we got from the startTransaction responsepublic String toString()
toString in class org.apache.directory.api.ldap.model.message.AbstractExtendedRequestObject.toString()Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.