KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > jdo > sco > VersantSCOCollectionFactory


1
2 /*
3  * Copyright (c) 1998 - 2005 Versant Corporation
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Versant Corporation - initial API and implementation
11  */

12 package com.versant.core.jdo.sco;
13
14 import com.versant.core.jdo.VersantPersistenceManager;
15 import com.versant.core.jdo.VersantStateManager;
16 import com.versant.core.common.VersantFieldMetaData;
17
18 import javax.jdo.spi.PersistenceCapable;
19 import java.util.Collection JavaDoc;
20
21 import com.versant.core.jdo.VersantPersistenceManager;
22 import com.versant.core.jdo.VersantStateManager;
23
24 /**
25  * This Factory class is used to create SCOs for the various collection types.
26  */

27 public interface VersantSCOCollectionFactory {
28
29     /**
30      * Create a new Collection class that implements the VersantSCOCollection
31      * interface and fill it with the data in collectionData.
32      */

33     VersantSimpleSCO createSCOCollection(PersistenceCapable owner,
34                                           VersantPersistenceManager pm, VersantStateManager stateManager,
35                                           VersantFieldMetaData fmd, 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, VersantStateManager stateManager,
43                                           VersantFieldMetaData fmd, Collection JavaDoc collection);
44                                           
45
46                                                
47 }
48
Popular Tags