ozone core API

org.ozoneDB.core.classicStore
Class ObjectSpace

java.lang.Object
  |
  +--org.ozoneDB.core.classicStore.ObjectSpace

public final class ObjectSpace
extends java.lang.Object


Field Summary
protected  ClusterSpace clusterSpace
           
protected  Env env
          The environment of this object.
protected  DxMap nameTable
           
protected  DxMap objectTable
           
(package private) static long serialVersionUID
           
(package private) static byte subSerialVersionUID
           
 
Constructor Summary
ObjectSpace(Env _env)
           
 
Method Summary
 void abortObjects(Transaction ta)
           
 void addObject(ObjectContainer container)
           
 void commitObjects(Transaction ta)
           
 void deleteObject(ObjectContainer toRemove)
          entfernt ObjectContainer fuer entsprechende ObjectID;
 void nameObject(ObjectContainer container, java.lang.String name)
          Applies a name to an object.
 ObjectContainer newContainer(Transaction ta, org.ozoneDB.OzoneCompatible target, ObjectID objID, Permissions permissions)
          Creates a new object container for the given target with the given oid and an optional name.
 ObjectContainer objectForID(ObjectID id)
           
 ObjectContainer objectForName(java.lang.String name)
           
 void prepareCommitObjects(Transaction ta)
           
 void shutdown()
           
 void startup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

subSerialVersionUID

static final byte subSerialVersionUID
See Also:
Constant Field Values

env

protected transient Env env
The environment of this object.


clusterSpace

protected transient ClusterSpace clusterSpace

objectTable

protected DxMap objectTable

nameTable

protected DxMap nameTable
Constructor Detail

ObjectSpace

public ObjectSpace(Env _env)
Method Detail

startup

public void startup()
             throws java.lang.Exception
java.lang.Exception

shutdown

public void shutdown()
              throws java.lang.Exception
java.lang.Exception

addObject

public void addObject(ObjectContainer container)
               throws java.lang.Exception
java.lang.Exception

newContainer

public ObjectContainer newContainer(Transaction ta,
                                    org.ozoneDB.OzoneCompatible target,
                                    ObjectID objID,
                                    Permissions permissions)
                             throws ClassicStoreExc
Creates a new object container for the given target with the given oid and an optional name.

ClassicStoreExc

objectForID

public ObjectContainer objectForID(ObjectID id)
Parameters:
id - The object id to search for.
Returns:
The object container with the given id or null.

nameObject

public void nameObject(ObjectContainer container,
                       java.lang.String name)
                throws ClassicStoreExc
Applies a name to an object.

Parameters:
container - The container to name.
name - The new name of the container.
ClassicStoreExc

objectForName

public ObjectContainer objectForName(java.lang.String name)
Parameters:
name -
Returns:
The object container with the given name.

deleteObject

public void deleteObject(ObjectContainer toRemove)
entfernt ObjectContainer fuer entsprechende ObjectID;


prepareCommitObjects

public void prepareCommitObjects(Transaction ta)
                          throws java.lang.Exception
java.lang.Exception

commitObjects

public void commitObjects(Transaction ta)

abortObjects

public void abortObjects(Transaction ta)
                  throws java.lang.Exception
java.lang.Exception

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.