KickJava   Java API By Example, From Geeks To Geeks.

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


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.jdo.VersantStateManager;
17 import com.versant.core.common.VersantFieldMetaData;
18
19 import javax.jdo.spi.PersistenceCapable;
20 import java.util.Map JavaDoc;
21
22 /**
23  * This Factory class is used to create SCOs for the various map types.
24  */

25 public interface VersantSCOMapFactory {
26
27     /**
28      * Create a new Map class that implements the VersantSCOCollection
29      * interface and fill it with the data in mapData.
30      */

31     public VersantSimpleSCO createSCOHashMap(PersistenceCapable owner,
32                                               VersantPersistenceManager pm, VersantStateManager stateManager,
33                                               VersantFieldMetaData fmd, MapData mapData);
34
35     /**
36      * Create a new Map class that implements the VersantSCOCollection
37      * interface and fill it with the data in map.
38      */

39     public VersantSimpleSCO createSCOHashMap(PersistenceCapable owner,
40                                               VersantPersistenceManager pm, VersantStateManager stateManager,
41                                               VersantFieldMetaData fmd, Map JavaDoc map);
42                                               
43
44                                               
45 }
46
Popular Tags