Db4oDatabase Class

Summary

Class to identify a database by it's signature.
Assembly
Db4objects.Db4o-2010.dll
Namespace
Db4objects.Db4o.Ext
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IDb4oType"] click Interface0 "/db4o-gpl-doc/output/api/Db4objects.Db4o.Types/IDb4oType" Type-.->Interface1["IInternal4"] click Interface1 "/db4o-gpl-doc/output/api/Db4objects.Db4o/IInternal4" Type["Db4oDatabase"] class Type type-node

Syntax

public class Db4oDatabase : IDb4oType, IInternal4

Remarks

Class to identify a database by it's signature.

db4o UUID handling uses a reference to the Db4oDatabase object, that represents the database an object was created on.

Constructors

Name Summary
Db4oDatabase() constructor for persistence
Db4oDatabase(byte[], long) constructor for comparison and to store new ones

Fields

Name Constant Value Summary
i_signature
Field is public for implementation reasons, DO NOT TOUCH!
i_uuid
Field is public for implementation reasons, DO NOT TOUCH! This field is badly named, it really is the creation time.
StaticId -1
static
StaticIdentity
static

Methods

Name Value Summary
Bind(Transaction) int
make sure this Db4oDatabase is stored.
Equals(Object) bool
comparison by signature.
Generate() Db4oDatabase
generates a new Db4oDatabase object with a unique signature.
static
GetCreationTime() long
GetHashCode() int
GetID(Transaction) int
gets the db4o ID, and may cache it for performance reasons.
GetSignature() byte[]
returns the unique signature
IsOlderThan(Db4oDatabase) bool
Query(Transaction) Db4oDatabase
find a Db4oDatabase with the same signature as this one
ToString() string