summaryrefslogtreecommitdiff
path: root/src/main/java/com/c2kernel/persistency/NextKeyManager.java
diff options
context:
space:
mode:
authorAndrew Branson <andrew.branson@cern.ch>2014-06-06 17:14:26 +0200
committerAndrew Branson <andrew.branson@cern.ch>2014-06-06 17:14:26 +0200
commit2353f4fc4252f7067478d6a9d8993daeb5d66e6a (patch)
treeff91be0ec9cb0bee78c7852c3de9729e287a6e6c /src/main/java/com/c2kernel/persistency/NextKeyManager.java
parentc24371653c0a1608893faf29f25069947a9f1e96 (diff)
Partial javadoc and scope tightening of the new interfaces.
Diffstat (limited to 'src/main/java/com/c2kernel/persistency/NextKeyManager.java')
-rw-r--r--src/main/java/com/c2kernel/persistency/NextKeyManager.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/java/com/c2kernel/persistency/NextKeyManager.java b/src/main/java/com/c2kernel/persistency/NextKeyManager.java
index e0d0013..5afc872 100644
--- a/src/main/java/com/c2kernel/persistency/NextKeyManager.java
+++ b/src/main/java/com/c2kernel/persistency/NextKeyManager.java
@@ -5,15 +5,39 @@ import com.c2kernel.common.ObjectNotFoundException;
import com.c2kernel.lookup.AgentPath;
import com.c2kernel.lookup.ItemPath;
+/**
+ * @author abranson
+ *
+ */
public interface NextKeyManager {
+ /**
+ *
+ * @return
+ * @throws ObjectCannotBeUpdated
+ * @throws ObjectNotFoundException
+ */
public ItemPath generateNextEntityKey()
throws ObjectCannotBeUpdated, ObjectNotFoundException;
+ /**
+ * @return
+ * @throws ObjectCannotBeUpdated
+ * @throws ObjectNotFoundException
+ */
public AgentPath generateNextAgentKey()
throws ObjectCannotBeUpdated, ObjectNotFoundException;
+ /**
+ * @param sysKey
+ * @throws ObjectCannotBeUpdated
+ * @throws ObjectNotFoundException
+ */
public void writeLastEntityKey(int sysKey) throws ObjectCannotBeUpdated, ObjectNotFoundException;
+ /**
+ * @return
+ * @throws ObjectNotFoundException
+ */
public ItemPath getLastEntityPath() throws ObjectNotFoundException;
}