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.common;
12:
13: import com.versant.core.jdo.PCStateMan;
14: import com.versant.core.jdo.VersantPersistenceManager;
15:
16: import javax.jdo.spi.PersistenceCapable;
17: import javax.jdo.PersistenceManager;
18:
19: /**
20: * Internal interface that is used for common stuff between different implementations
21: * of pm.
22: */
23: public interface PersistenceContext extends VersantPersistenceManager {
24: public OID getInternalOID(final PersistenceCapable pc);
25:
26: Object getObjectById(Object oid, boolean b);
27:
28: PCStateMan getInternalSM(PersistenceCapable pc);
29:
30: PersistenceManager getPersistenceManager();
31:
32: Object getObjectByIdForState(OID oid, int stateFieldNo,
33: int navClassIndex, OID fromOID);
34: }
|