db4o 8.0

com.db4o.ext
Interface ObjectInfo


public interface ObjectInfo

interface to the internal reference that an ObjectContainer holds for a stored object.


Method Summary
 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()
          Deprecated. As of version 8.0 please use getCommitTimestamp() 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: com.db4o.config.Configuration#generateUUIDs(int)

Returns:
the UUID of the referenced object.

getVersion

@Deprecated
long getVersion()
Deprecated. As of version 8.0 please use getCommitTimestamp() 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: com.db4o.config.Configuration#generateVersionNumbers(int)
This feature was replaced by 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.

Returns:
the version number.

getCommitTimestamp

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.

Returns:
the serial timestamp that was given to the object upon commit.
Since:
8.0
See Also:
FileConfiguration.generateCommitTimestamps(boolean)

db4o 8.0

Copyright 2009 Versant Corporation. All rights reserved.