KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > server > StateContainer


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.server;
13
14 import com.versant.core.common.OID;
15 import com.versant.core.common.State;
16
17 /**
18  * This is implemented by containers that holds oid-state pairs and is used for
19  * transport to client.
20  */

21 public interface StateContainer extends StateReceiver {
22     /**
23      * This is called to indicate that the state is in the process of
24      * being fetched.
25      */

26     public void visited(OID oid);
27     /**
28      * Check if OID is contained.
29      */

30     public boolean containsKey(Object JavaDoc key);
31     /**
32      * Add an oid state pair. This is called for a direct add.
33      */

34     public State add(OID key, State value);
35     /**
36      * Return the state for the oid if contains.
37      */

38     public State get(Object JavaDoc key);
39 }
40
Popular Tags