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.core.DatabasePolicy;
13:
14: /**
15: * BulkSequenceKeyGeneratorImpl with OdalSimpleSequenceKeyGenerator as a delegate one
16: * and bulkSize = 100.
17: * @see BulkSequenceKeyGeneratorImpl
18: * @see OdalSimpleSequenceKeyGenerator
19: *
20: * @author Gennady Krizhevsky
21: */
22: public class OdalBulkSequenceKeyGenerator100 extends
23: BulkSequenceKeyGeneratorImpl {
24:
25: private static final int BULK_SIZE = 100;
26:
27: public OdalBulkSequenceKeyGenerator100(String tableName,
28: boolean sameTransaction, DatabasePolicy databasePolicy,
29: String seqName, Log log) {
30: super (new OdalSimpleSequenceKeyGenerator(tableName,
31: sameTransaction, databasePolicy, seqName, log),
32: databasePolicy, BULK_SIZE, 0, log);
33: }
34:
35: public OdalBulkSequenceKeyGenerator100() {
36: delegateKeyGenerator = new OdalSimpleSequenceKeyGenerator();
37: setBulkSize(BULK_SIZE);
38: }
39:
40: }
|