blob: 1352405d91d70148275dfc3f03d7f9437cf0a333 (
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
44
45
46
47
48
49
50
51
|
package com.c2kernel.persistency;
import com.c2kernel.common.ObjectCannotBeUpdated;
import com.c2kernel.common.ObjectNotFoundException;
import com.c2kernel.lookup.AgentPath;
import com.c2kernel.lookup.ItemPath;
import com.c2kernel.process.auth.Authenticator;
/**
* @author abranson
*
*/
public interface NextKeyManager {
public void open(Authenticator auth);
/**
*
* @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;
/**
* Shuts down the next key manager
*/
public void close();
}
|