public class LazyObjectReference extends java.lang.Object implements ObjectInfo
| Constructor and Description |
|---|
LazyObjectReference(Transaction transaction,
int id) |
| 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.
|
ObjectReference |
reference() |
public LazyObjectReference(Transaction transaction, int id)
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 ObjectReference reference()