Package com.db4o.internal
Class LazyObjectReference
- java.lang.Object
- 
- com.db4o.internal.LazyObjectReference
 
- 
- All Implemented Interfaces:
- ObjectInfo
 
 public class LazyObjectReference extends java.lang.Object implements ObjectInfo 
- 
- 
Constructor SummaryConstructors Constructor Description LazyObjectReference(Transaction transaction, int id)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCommitTimestamp()The serial timestamp the object is assigned to when it is committed.
 
 You need to enable this feature before using it inFileConfiguration.generateCommitTimestamps(boolean).
 
 All the objects commited within the same transaction will receive the same commitTimestamp.
 
 db4o replication system (dRS) relies on this feature.longgetInternalID()returns the internal db4o ID.java.lang.ObjectgetObject()returns the object that is referenced.Db4oUUIDgetUUID()returns a UUID representation of the referenced object.longgetVersion()returns the transaction serial number ("version") the referenced object was stored with last.ObjectReferencereference()
 
- 
- 
- 
Constructor Detail- 
LazyObjectReferencepublic LazyObjectReference(Transaction transaction, int id) 
 
- 
 - 
Method Detail- 
getInternalIDpublic long getInternalID() Description copied from interface:ObjectInforeturns the internal db4o ID.- Specified by:
- getInternalIDin interface- ObjectInfo
 
 - 
getObjectpublic java.lang.Object getObject() Description copied from interface:ObjectInforeturns the object that is referenced.
 This method may return null, if the object has been garbage collected.- Specified by:
- getObjectin interface- ObjectInfo
- Returns:
- the referenced object or null, if the object has been garbage collected.
 
 - 
getUUIDpublic Db4oUUID getUUID() Description copied from interface:ObjectInforeturns a UUID representation of the referenced object. UUID generation has to be turned on, in order to be able to use this feature:FileConfiguration.generateUUIDs(com.db4o.config.ConfigScope)- Specified by:
- getUUIDin interface- ObjectInfo
- Returns:
- the UUID of the referenced object.
 
 - 
getVersionpublic long getVersion() Description copied from interface:ObjectInforeturns the transaction serial number ("version") the referenced object was stored with last. Version number generation has to be turned on, in order to be able to use this feature:FileConfiguration.generateVersionNumbers(com.db4o.config.ConfigScope)
 This feature was replaced byObjectInfo.getCommitTimestamp(). The main difference is that the old version mechanism used to assign a serial timestamp to the object upon storing time, and the new commitTimestamp approach, assigns it upon commit time.- Specified by:
- getVersionin interface- ObjectInfo
- Returns:
- the version number.
 
 - 
getCommitTimestamppublic long getCommitTimestamp() Description copied from interface:ObjectInfoThe serial timestamp the object is assigned to when it is committed.
 
 You need to enable this feature before using it inFileConfiguration.generateCommitTimestamps(boolean).
 
 All the objects commited within the same transaction will receive the same commitTimestamp.
 
 db4o replication system (dRS) relies on this feature.- Specified by:
- getCommitTimestampin interface- ObjectInfo
- Returns:
- the serial timestamp that was given to the object upon commit.
- See Also:
- FileConfiguration.generateCommitTimestamps(boolean)
 
 - 
referencepublic ObjectReference reference() 
 
- 
 
-