public interface WriteableTransaction extends ReadableTransaction
Modifier and Type | Method and Description |
---|---|
boolean |
delete(TreeName treeName,
org.forgerock.opendj.ldap.ByteSequence key)
Deletes the record with the provided key, in the tree whose name is provided.
|
void |
deleteTree(TreeName name)
Deletes the tree identified by the provided name.
|
void |
openTree(TreeName name,
boolean createOnDemand)
Opens the tree identified by the provided name.
|
void |
put(TreeName treeName,
org.forgerock.opendj.ldap.ByteSequence key,
org.forgerock.opendj.ldap.ByteSequence value)
Adds a record with the provided key and value, replacing any existing record having the same
key.
|
boolean |
update(TreeName treeName,
org.forgerock.opendj.ldap.ByteSequence key,
UpdateFunction f)
Atomically adds, deletes, or replaces a record with the provided key according to the new value
computed by the update function.
|
getRecordCount, openCursor, read
void openTree(TreeName name, boolean createOnDemand)
name
- the tree namecreateOnDemand
- true if the tree should be created if it does not existvoid deleteTree(TreeName name)
name
- the tree namevoid put(TreeName treeName, org.forgerock.opendj.ldap.ByteSequence key, org.forgerock.opendj.ldap.ByteSequence value)
treeName
- the tree namekey
- the key of the new recordvalue
- the value of the new recordboolean update(TreeName treeName, org.forgerock.opendj.ldap.ByteSequence key, UpdateFunction f)
treeName
- the tree namekey
- the key of the new recordf
- the update functiontrue
if an update was performed, false
otherwiseUpdateFunction.computeNewValue(ByteSequence)
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.