Interface EndTransactionRequest
- All Superinterfaces:
org.apache.directory.api.ldap.model.message.ExtendedRequest, org.apache.directory.api.ldap.model.message.Message, org.apache.directory.api.ldap.model.message.Request, org.apache.directory.api.ldap.model.message.ResultResponseRequest, org.apache.directory.api.ldap.model.message.SingleReplyRequest
- All Known Implementing Classes:
EndTransactionRequestImpl
public interface EndTransactionRequest
extends org.apache.directory.api.ldap.model.message.ExtendedRequest
The EndTransactionRequest interface. This is for the RFC 5805 End Transaction Request,
which grammar is :
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 }
- Author:
- Apache Directory Project
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe OID for the EndTransaction extended operation request. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTells if the operation should be committedbyte[]Get the transaction IDvoidsetCommit(boolean commit) Set the Commit flag for this transaction.voidsetTransactionId(byte[] transactionId) Set the transaction ID to commit or rollbackMethods inherited from interface org.apache.directory.api.ldap.model.message.ExtendedRequest
addAllControls, addControl, getRequestName, removeControl, setMessageId, setRequestNameMethods inherited from interface org.apache.directory.api.ldap.model.message.Message
get, getControl, getControls, getMessageId, getType, hasControl, putMethods inherited from interface org.apache.directory.api.ldap.model.message.Request
hasResponseMethods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponseRequest
getResultResponseMethods inherited from interface org.apache.directory.api.ldap.model.message.SingleReplyRequest
getResponseType
-
Field Details
-
EXTENSION_OID
The OID for the EndTransaction extended operation request.- See Also:
-
-
Method Details
-
getCommit
boolean getCommit()Tells if the operation should be committed- Returns:
trueif the operation should be committed,falseotherwise
-
setCommit
void setCommit(boolean commit) Set the Commit flag for this transaction.- Parameters:
commit-trueif the transaction should be committed,falseif it should be rollbacked.
-
getTransactionId
byte[] getTransactionId()Get the transaction ID- Returns:
- The transaction ID
-
setTransactionId
void setTransactionId(byte[] transactionId) Set the transaction ID to commit or rollback- Parameters:
transactionId- The transaction ID we got from the startTransaction response
-