public class FrozenObjectInfo extends java.lang.Object implements ObjectInfo
| Constructor and Description |
|---|
FrozenObjectInfo(java.lang.Object object,
long id,
Db4oDatabase sourceDatabase,
long uuidLongPart,
long commitTimestamp) |
FrozenObjectInfo(Transaction trans,
ObjectReference ref,
boolean committed) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCommitTimestamp()
The serial timestamp the object is assigned to when it is commited.
You need to enable this feature before using it in FileConfiguration.generateCommitTimestamps(boolean).All the objects commited within the same transaction will receive the same commitTimestamp. db4o replication system (dRS) relies on this feature. |
long |
getInternalID()
returns the internal db4o ID.
|
java.lang.Object |
getObject()
returns the object that is referenced.
|
Db4oUUID |
getUUID()
returns a UUID representation of the referenced object.
|
long |
getVersion()
returns the transaction serial number ("version") the referenced object
was stored with last.
|
long |
sourceDatabaseId(Transaction trans) |
long |
uuidLongPart() |
public FrozenObjectInfo(java.lang.Object object,
long id,
Db4oDatabase sourceDatabase,
long uuidLongPart,
long commitTimestamp)
public FrozenObjectInfo(Transaction trans, ObjectReference ref, boolean committed)
public long getInternalID()
ObjectInfogetInternalID in interface ObjectInfopublic java.lang.Object getObject()
ObjectInfogetObject in interface ObjectInfopublic Db4oUUID getUUID()
ObjectInfocom.db4o.config.Configuration#generateUUIDs(int)getUUID in interface ObjectInfopublic long getVersion()
ObjectInfocom.db4o.config.Configuration#generateVersionNumbers(int) ObjectInfo.getCommitTimestamp(). The main
difference is that the old version mechamism used to assign a serial
timestamp to the object upon storing time, and the new commiTimestamp
approach, assigns it upon commit time.getVersion in interface ObjectInfopublic long getCommitTimestamp()
ObjectInfoFileConfiguration.generateCommitTimestamps(boolean).getCommitTimestamp in interface ObjectInfoFileConfiguration.generateCommitTimestamps(boolean)public long sourceDatabaseId(Transaction trans)
public long uuidLongPart()