From 664be7d7d84b5c78001d984bd4ab51caa5273b80 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 26 Mar 2015 13:25:27 +0000
Subject: [PATCH] Renamed ReadableStorage and WriteableStorage to ReadableTransaction and WriteableTransaction. Code review: Matthew Swift
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2ID.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2ID.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2ID.java
index e59cdd4..036620a 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2ID.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/DN2ID.java
@@ -29,10 +29,10 @@
import static org.opends.server.backends.pluggable.JebFormat.*;
import org.forgerock.opendj.ldap.ByteString;
-import org.opends.server.backends.pluggable.spi.ReadableStorage;
+import org.opends.server.backends.pluggable.spi.ReadableTransaction;
import org.opends.server.backends.pluggable.spi.StorageRuntimeException;
import org.opends.server.backends.pluggable.spi.TreeName;
-import org.opends.server.backends.pluggable.spi.WriteableStorage;
+import org.opends.server.backends.pluggable.spi.WriteableTransaction;
import org.opends.server.types.DN;
/**
@@ -66,7 +66,7 @@
* @throws StorageRuntimeException If an error occurred while attempting to insert
* the new record.
*/
- void put(WriteableStorage txn, DN dn, EntryID id) throws StorageRuntimeException
+ void put(WriteableTransaction txn, DN dn, EntryID id) throws StorageRuntimeException
{
ByteString key = dnToDNKey(dn, prefixRDNComponents);
ByteString value = id.toByteString();
@@ -82,7 +82,7 @@
* @throws StorageRuntimeException If an error occurred while attempting to remove
* the record.
*/
- boolean remove(WriteableStorage txn, DN dn) throws StorageRuntimeException
+ boolean remove(WriteableTransaction txn, DN dn) throws StorageRuntimeException
{
ByteString key = dnToDNKey(dn, prefixRDNComponents);
@@ -97,7 +97,7 @@
* @return The entry ID, or null if the given DN is not in the DN database.
* @throws StorageRuntimeException If an error occurs in the JE database.
*/
- EntryID get(ReadableStorage txn, DN dn) throws StorageRuntimeException
+ EntryID get(ReadableTransaction txn, DN dn) throws StorageRuntimeException
{
ByteString key = dnToDNKey(dn, prefixRDNComponents);
ByteString value = txn.read(getName(), key);
--
Gitblit v1.10.0