KickJava   Java API By Example, From Geeks To Geeks.

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


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.VersantPersistenceManagerImp;
15 import com.versant.core.common.CollectionDiff;
16 import com.versant.core.common.PersistenceContext;
17
18 import java.util.Map JavaDoc;
19
20 /**
21  * SCO's that are maps must implement this to have efficient database access.
22  * <p/>
23  * SCO maps that do not implement this will be treated like replaced maps on
24  * commit or flush. All the old values will be deleted and all the current
25  * values insert.
26  */

27 public interface VersantSCOMap extends VersantSimpleSCO, Map JavaDoc {
28
29     /**
30      * Put references to all the keys and values into mapData. If the keys
31      * and/or values are PC instances then the instances themselves or their
32      * OIDs may be stored in mapData.
33      */

34     public MapData fillMapData(MapData mapData);
35
36     /**
37      * Called on commit or flush to get changes to this map.
38      */

39     public CollectionDiff getMapDiff(PersistenceContext pm);
40
41
42 }
43
Popular Tags