blob: 48fa5af813d3094ba843a8b4a3dbe3b7f8d876eb (
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
|
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;
}
|