KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > common > PersistenceContext


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.common;
13
14 import com.versant.core.jdo.PCStateMan;
15 import com.versant.core.jdo.VersantPersistenceManager;
16
17 import javax.jdo.spi.PersistenceCapable;
18 import javax.jdo.PersistenceManager;
19
20 /**
21  * Internal interface that is used for common stuff between different implementations
22  * of pm.
23  */

24 public interface PersistenceContext extends VersantPersistenceManager {
25     public OID getInternalOID(final PersistenceCapable pc);
26
27     Object JavaDoc getObjectById(Object JavaDoc oid, boolean b);
28
29     PCStateMan getInternalSM(PersistenceCapable pc);
30
31     PersistenceManager getPersistenceManager();
32
33     Object JavaDoc getObjectByIdForState(OID oid, int stateFieldNo,
34             int navClassIndex, OID fromOID);
35 }
36
Popular Tags