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.persistency.key.SimpleNaturalKeyFactory;
12: import com.completex.objective.components.persistency.key.SimpleNaturalKey;
13: import com.completex.objective.components.persistency.PersistentObject;
14:
15: /**
16: * Natural Key Factory Implementation
17: * @see SimpleNaturalKeyFactory
18: *
19: * @author Gennady Krizhevsky
20: */
21: public class SimpleNaturalKeyFactoryImpl implements
22: SimpleNaturalKeyFactory {
23:
24: public SimpleNaturalKey newSimpleNaturalKey(String className,
25: Object[] values) {
26: return new SimpleNaturalKeyImpl(className, values);
27: }
28:
29: public SimpleNaturalKey newSimpleNaturalKey(
30: PersistentObject persistent, int[] keyIndeces) {
31: return new SimpleNaturalKeyImpl(persistent, keyIndeces);
32: }
33: }
|