org.ozoneDB.core.classicStore
Class ObjectSpace
java.lang.Object
|
+--org.ozoneDB.core.classicStore.ObjectSpace
- public final class ObjectSpace
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ObjectSpace
public ObjectSpace(Env _env)
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
Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.