db4o 7.4

com.db4o.ext
Interface ObjectInfo


public interface ObjectInfo

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


Method Summary
 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.
 

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: Configuration.generateUUIDs(int)

Returns:
the UUID of the referenced object.

getVersion

long getVersion()
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: Configuration.generateVersionNumbers(int)

Returns:
the version number.

db4o 7.4

Copyright 2007 db4objects Inc. All rights reserved.