KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > util > OIDObjectInput


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.util;
13
14 import com.versant.core.common.OID;
15 import com.versant.core.metadata.ClassMetaData;
16 import com.versant.core.metadata.ModelMetaData;
17
18 import java.io.ObjectInput JavaDoc;
19 import java.io.IOException JavaDoc;
20
21 /**
22  * ObjectInput with special support for reading in OIDs. This ensures that
23  * there is only one instance for each NewObjectOID read for a flattened
24  * graph.
25  */

26 public interface OIDObjectInput extends ObjectInput JavaDoc {
27
28     /**
29      * Read an OID.
30      */

31     public OID readOID() throws IOException JavaDoc, ClassNotFoundException JavaDoc;
32
33     /**
34      * Read the OID for cmd. If it is a NewObjectOID that has been previously
35      * read then return the previously read instance.
36      */

37     public OID readOID(ClassMetaData cmd) throws IOException JavaDoc,
38             ClassNotFoundException JavaDoc;
39
40     /**
41      * Get the meta data associated with this read operation.
42      */

43     public ModelMetaData getModelMetaData();
44 }
45
46
Popular Tags