From a85be673b47f4dd6c1f9f7e5ec400ba7b89775b9 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Mon, 23 Mar 2015 23:13:56 +0000
Subject: [PATCH] Rename WriteableStorage.create() to put() as agreed during the review of CR-6383.
---
opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/WriteableStorage.java | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/WriteableStorage.java b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/WriteableStorage.java
index 8da03c9..7f9098d 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/WriteableStorage.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/backends/pluggable/spi/WriteableStorage.java
@@ -59,8 +59,8 @@
void deleteTree(TreeName name);
/**
- * Creates a new record with the provided key and value, in the tree whose name is provided.
- * If a previous record is associated to the provided key, then it will be replaced by the new record.
+ * Adds a record with the provided key and value, replacing any existing record having the same
+ * key.
*
* @param treeName
* the tree name
@@ -69,10 +69,11 @@
* @param value
* the value of the new record
*/
- void create(TreeName treeName, ByteSequence key, ByteSequence value);
+ void put(TreeName treeName, ByteSequence key, ByteSequence value);
/**
- * Updates a record with the provided key according to the new value computed by the update function.
+ * Atomically adds, deletes, or replaces a record with the provided key according to the new value
+ * computed by the update function.
*
* @param treeName
* the tree name
--
Gitblit v1.10.0