db4o 4.0

com.db4o.ext
Class Db4oDatabase

java.lang.Object
  extended bycom.db4o.ext.Db4oDatabase
All Implemented Interfaces:
Db4oType

public class Db4oDatabase
extends java.lang.Object
implements Db4oType

Class to identify a database by it's signature.

db4o UUID handling uses a reference to the Db4oDatabase object, that represents the database an object was created on.


Field Summary
 byte[] i_signature
          Field is public for implementation reasons, DO NOT TOUCH!
 long i_uuid
          Field is public for implementation reasons, DO NOT TOUCH!
 
Constructor Summary
Db4oDatabase()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          comparison by signature.
static Db4oDatabase generate()
          generates a new Db4oDatabase object with a unique signature.
 int getID(ExtObjectContainer a_oc)
          gets the db4o ID, and may cache it for performance reasons.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

i_signature

public byte[] i_signature
Field is public for implementation reasons, DO NOT TOUCH!


i_uuid

public long i_uuid
Field is public for implementation reasons, DO NOT TOUCH!

Constructor Detail

Db4oDatabase

public Db4oDatabase()
Method Detail

generate

public static Db4oDatabase generate()
generates a new Db4oDatabase object with a unique signature.


equals

public boolean equals(java.lang.Object obj)
comparison by signature.


getID

public int getID(ExtObjectContainer a_oc)
gets the db4o ID, and may cache it for performance reasons.

Parameters:
a_oc - the ObjectContainer
Returns:
the db4o ID for the ObjectContainer

toString

public java.lang.String toString()

db4o 4.0