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.jdo.VersantStateManager;
16: import com.versant.core.common.VersantFieldMetaData;
17:
18: import javax.jdo.spi.PersistenceCapable;
19: import java.util.Map;
20:
21: /**
22: * This Factory class is used to create SCOs for the various map types.
23: */
24: public interface VersantSCOMapFactory {
25:
26: /**
27: * Create a new Map class that implements the VersantSCOCollection
28: * interface and fill it with the data in mapData.
29: */
30: public VersantSimpleSCO createSCOHashMap(PersistenceCapable owner,
31: VersantPersistenceManager pm,
32: VersantStateManager stateManager, VersantFieldMetaData fmd,
33: 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,
41: VersantStateManager stateManager, VersantFieldMetaData fmd,
42: Map map);
43:
44: }
|