blob: 5afc87230767b157da72c7a456e045af0e2207f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
package com.c2kernel.persistency;
import com.c2kernel.common.ObjectCannotBeUpdated;
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;
}
|