01: /*
02: * Copyright (c) 1998 - 2005 Versant Corporation
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * Versant Corporation - initial API and implementation
10: */
11: package com.versant.core.jdo.sco;
12:
13: import com.versant.core.jdo.VersantPersistenceManager;
14: import com.versant.core.jdo.VersantStateManager;
15: import com.versant.core.common.VersantFieldMetaData;
16:
17: import javax.jdo.spi.PersistenceCapable;
18: import java.util.Collection;
19:
20: import com.versant.core.jdo.VersantPersistenceManager;
21: import com.versant.core.jdo.VersantStateManager;
22:
23: /**
24: * This Factory class is used to create SCOs for the various collection types.
25: */
26: public interface VersantSCOCollectionFactory {
27:
28: /**
29: * Create a new Collection class that implements the VersantSCOCollection
30: * interface and fill it with the data in collectionData.
31: */
32: VersantSimpleSCO createSCOCollection(PersistenceCapable owner,
33: VersantPersistenceManager pm,
34: VersantStateManager stateManager, VersantFieldMetaData fmd,
35: CollectionData collectionData);
36:
37: /**
38: * Create a new Collection class that implements the VersantSCOCollection
39: * interface and fill it with the data in collection.
40: */
41: VersantSimpleSCO createSCOCollection(PersistenceCapable owner,
42: VersantPersistenceManager pm,
43: VersantStateManager stateManager, VersantFieldMetaData fmd,
44: Collection collection);
45:
46: }
|