| Modifier and Type | Field and Description |
|---|---|
byte[] |
i_signature
Field is public for implementation reasons, DO NOT TOUCH!
|
long |
i_uuid
Field is public for implementation reasons, DO NOT TOUCH!
This field is badly named, it really is the creation time.
|
static int |
STATIC_ID |
static Db4oDatabase |
STATIC_IDENTITY |
| Constructor and Description |
|---|
Db4oDatabase()
constructor for persistence
|
Db4oDatabase(byte[] signature,
long creationTime)
constructor for comparison and to store new ones
|
| Modifier and Type | Method and Description |
|---|---|
int |
bind(Transaction trans)
make sure this Db4oDatabase is stored.
|
boolean |
equals(java.lang.Object obj)
comparison by signature.
|
static Db4oDatabase |
generate()
generates a new Db4oDatabase object with a unique signature.
|
long |
getCreationTime() |
int |
getID(Transaction trans)
gets the db4o ID, and may cache it for performance reasons.
|
byte[] |
getSignature()
returns the unique signature
|
int |
hashCode() |
boolean |
isOlderThan(Db4oDatabase peer) |
Db4oDatabase |
query(Transaction trans)
find a Db4oDatabase with the same signature as this one
|
java.lang.String |
toString() |
public static final Db4oDatabase STATIC_IDENTITY
public static final int STATIC_ID
public byte[] i_signature
public long i_uuid
public Db4oDatabase()
public Db4oDatabase(byte[] signature,
long creationTime)
public static Db4oDatabase generate()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int getID(Transaction trans)
public long getCreationTime()
public byte[] getSignature()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isOlderThan(Db4oDatabase peer)
public int bind(Transaction trans)
public Db4oDatabase query(Transaction trans)