KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > storagemanager > ApplicationContext


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.storagemanager;
13
14 import com.versant.core.common.OID;
15 import com.versant.core.metadata.FetchGroup;
16
17 /**
18  * This is used by StorageManager methods that need to call back to the
19  * application layer as part of their execution.
20  */

21 public interface ApplicationContext {
22
23     /**
24      * Is the State for the given OID required or not? This is used by
25      * StorageManager's when they prefetch data. The application level can check
26      * caches (e.g. the local PM cache for JDO) and so on and decide if it
27      * wants the data or not.
28      */

29     public boolean isStateRequired(OID oid, FetchGroup fetchGroup);
30
31 }
32
33
Popular Tags