KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ozoneDB > OzoneCompatibleOrProxy


1 // You can redistribute this software and/or modify it under the terms of
2
// the Ozone Library License version 1 published by ozone-db.org.
3
//
4
// The original code and portions created by SMB are
5
// Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
6
//
7
// $Id: OzoneCompatibleOrProxy.java,v 1.3 2002/09/18 06:54:13 per_nyfelt Exp $
8

9 package org.ozoneDB;
10
11 import org.ozoneDB.core.ObjectID;
12
13 /**
14     This interface marks classes which represent an {@link org.ozoneDB.OzoneObject}, either
15     locally or remote.
16     @author <A HREF="http://www.medium.net/">Medium.net</A>
17 */

18 public interface OzoneCompatibleOrProxy {
19
20     /**
21       Returns the ObjectID of the represented ozone object. ObjectIDs are equal for equal
22       ozone objects and different for different ozone objects. They are comparable, so that
23       ozone objects may use {@link org.ozoneDB.core.ObjectID#compareTo(Object)} in comparison functions.
24       <p>
25         Currently, ObjectID exposes other methods than {@link org.ozoneDB.core.ObjectID#equals(Object)} and
26         {@link org.ozoneDB.core.ObjectID#compareTo(Object)}. However, they should not be used, as ObjectIDs should
27         be, apart from this method, opaque.
28       </p>
29      @return the ObjectID of the represented ozone object
30     */

31     public ObjectID getObjectID();
32 }
Popular Tags