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.impl;
10:
11: import com.completex.objective.components.log.Log;
12: import com.completex.objective.components.persistency.ColumnType;
13: import com.completex.objective.components.persistency.OdalPersistencyException;
14: import com.completex.objective.components.persistency.Persistency;
15: import com.completex.objective.components.persistency.PersistentEntry;
16: import com.completex.objective.components.persistency.core.DatabasePolicy;
17: import com.completex.objective.components.persistency.transact.Transaction;
18:
19: /**
20: * Version Sequence Key Generator using SimpleSequenceKeyGeneratorImpl as a delegate
21: *
22: * @author Gennady Krizhevsky
23: */
24: public class SimpleVersionSequenceKeyGeneratorImpl extends
25: VersionSequenceKeyGeneratorImpl {
26:
27: public SimpleVersionSequenceKeyGeneratorImpl(
28: DatabasePolicy databasePolicy, String seqName, Log logger) {
29: super (new SimpleSequenceKeyGeneratorImpl(), databasePolicy,
30: seqName, logger);
31: }
32:
33: public SimpleVersionSequenceKeyGeneratorImpl() {
34: delegateKeyGenerator = new SimpleSequenceKeyGeneratorImpl();
35: }
36:
37: }
|