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.server.StateContainer;
14: import com.versant.core.metadata.FetchGroup;
15: import com.versant.core.common.OID;
16: import com.versant.core.common.State;
17:
18: /**
19: * Dummy implementation of StateContainer that does not contain anything
20: * and discards anything added to it.
21: */
22: public class DummyStateContainer implements StateContainer {
23:
24: public static final DummyStateContainer INSTANCE = new DummyStateContainer();
25:
26: public void visited(OID oid) {
27: }
28:
29: public boolean isStateRequired(OID oid, FetchGroup fetchGroup) {
30: return false;
31: }
32:
33: public void addState(OID oid, State state) {
34: throw BindingSupportImpl.getInstance().notImplemented("");
35: }
36:
37: public boolean containsKey(Object key) {
38: return false;
39: }
40:
41: public State add(OID key, State value) {
42: return null;
43: }
44:
45: public State get(Object key) {
46: return null;
47: }
48: }
|