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: * Sequence generator interface
17: *
18: * @see ComplexKeyGenerator
19: *
20: * @author Gennady Krizhevsky
21: */
22: public interface ComplexSequenceKeyGenerator extends
23: ComplexKeyGenerator {
24:
25: /**
26: *
27: * @param seqName sequence name
28: */
29: void setSeqName(String seqName);
30:
31: /**
32: *
33: * @return sequence name
34: */
35: String getSeqName();
36:
37: /**
38: * Generate next key
39: *
40: * @param transaction
41: * @param persistency
42: * @param objectName
43: * @return next key
44: * @throws OdalPersistencyException
45: */
46: Object getNextKeyPlain(Transaction transaction,
47: Persistency persistency, String objectName)
48: throws OdalPersistencyException;
49: }
|