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.storagemanager;
12:
13: import com.versant.core.common.OID;
14: import com.versant.core.metadata.FetchGroup;
15:
16: /**
17: * This is used by StorageManager methods that need to call back to the
18: * application layer as part of their execution.
19: */
20: public interface ApplicationContext {
21:
22: /**
23: * Is the State for the given OID required or not? This is used by
24: * StorageManager's when they prefetch data. The application level can check
25: * caches (e.g. the local PM cache for JDO) and so on and decide if it
26: * wants the data or not.
27: */
28: public boolean isStateRequired(OID oid, FetchGroup fetchGroup);
29:
30: }
|