Package com.db4o.ext
Interface ObjectInfo
-
- All Known Implementing Classes:
FrozenObjectInfo
,LazyObjectReference
,ObjectReference
public interface ObjectInfo
interface to the internal reference that an ObjectContainer holds for a stored object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description long
getCommitTimestamp()
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.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()
Deprecated.As of version 8.0 please usegetCommitTimestamp()
instead.
-
-
-
Method Detail
-
getInternalID
long getInternalID()
returns the internal db4o ID.
-
getObject
java.lang.Object getObject()
returns the object that is referenced.
This method may return null, if the object has been garbage collected.- Returns:
- the referenced object or null, if the object has been garbage collected.
-
getUUID
Db4oUUID getUUID()
returns 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)
- Returns:
- the UUID of the referenced object.
-
getVersion
@Deprecated long getVersion()
Deprecated.As of version 8.0 please usegetCommitTimestamp()
instead.returns 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 bygetCommitTimestamp()
. 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.- Returns:
- the version number.
-
getCommitTimestamp
long getCommitTimestamp()
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.- Returns:
- the serial timestamp that was given to the object upon commit.
- Since:
- 8.0
- See Also:
FileConfiguration.generateCommitTimestamps(boolean)
-
-