01: /**
02: * Objective Database Abstraction Layer (ODAL)
03: * Copyright (c) 2004, The ODAL Development Group
04: * All rights reserved.
05: * For definition of the ODAL Development Group please refer to LICENCE.txt file
06: *
07: * Distributable under LGPL license.
08: * See terms of license at gnu.org.
09: */package com.completex.objective.components.persistency.key;
10:
11: import com.completex.objective.components.persistency.OdalPersistencyException;
12: import com.completex.objective.components.persistency.Persistency;
13: import com.completex.objective.components.persistency.transact.Transaction;
14:
15: /**
16: * Stand-alone key generator
17: *
18: * @author Gennady Krizhevsky
19: */
20: public interface SimpleKeyGenerator extends KeyGenerator {
21:
22: /**
23: * Generate next key
24: *
25: * @param transaction transaction
26: * @param persistency persistency
27: * @return next key
28: * @throws OdalPersistencyException
29: */
30: Object getNextKey(Transaction transaction, Persistency persistency)
31: throws OdalPersistencyException;
32:
33: }
|