KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > versant > core > common > StateAndOIDFactory


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.common;
13
14 import com.versant.core.metadata.ClassMetaData;
15
16 import java.io.Serializable JavaDoc;
17
18 /**
19  * Factory for OID and State instances. These must be Serializable so they
20  * can be sent with the meta data to remote clients.
21  */

22 public interface StateAndOIDFactory extends Serializable JavaDoc {
23
24     /**
25      * Create a new empty OID for cmd.
26      *
27      * @param resolved Is this a resolved OID?
28      * @see OID#isResolved
29      * @see OID#resolve
30      */

31     public OID createOID(ClassMetaData cmd, boolean resolved);
32
33     /**
34      * Create a new empty State for cmd.
35      */

36     public State createState(ClassMetaData cmd);
37
38     /**
39      * Create a new NewObjectOID.
40      */

41     public NewObjectOID createNewObjectOID(ClassMetaData cmd);
42
43     /**
44      * Create a new untyped OID if the store supports these or throw an
45      * unsupported option exception if not.
46      */

47     public OID createUntypedOID();
48
49 }
50
Popular Tags