Package com.db4o.ext
Class Db4oDatabase
- java.lang.Object
- 
- com.db4o.ext.Db4oDatabase
 
- 
- 
Field SummaryFields Modifier and Type Field Description byte[]i_signatureField is public for implementation reasons, DO NOT TOUCH!longi_uuidField is public for implementation reasons, DO NOT TOUCH! This field is badly named, it really is the creation time.static intSTATIC_IDstatic Db4oDatabaseSTATIC_IDENTITY
 - 
Constructor SummaryConstructors Constructor Description Db4oDatabase()constructor for persistenceDb4oDatabase(byte[] signature, long creationTime)constructor for comparison and to store new ones
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intbind(Transaction trans)make sure this Db4oDatabase is stored.booleanequals(java.lang.Object obj)comparison by signature.static Db4oDatabasegenerate()generates a new Db4oDatabase object with a unique signature.longgetCreationTime()intgetID(Transaction trans)gets the db4o ID, and may cache it for performance reasons.byte[]getSignature()returns the unique signatureinthashCode()booleanisOlderThan(Db4oDatabase peer)Db4oDatabasequery(Transaction trans)find a Db4oDatabase with the same signature as this onejava.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
STATIC_IDENTITYpublic static final Db4oDatabase STATIC_IDENTITY 
 - 
STATIC_IDpublic static final int STATIC_ID - See Also:
- Constant Field Values
 
 - 
i_signaturepublic byte[] i_signature Field is public for implementation reasons, DO NOT TOUCH!
 - 
i_uuidpublic long i_uuid Field is public for implementation reasons, DO NOT TOUCH! This field is badly named, it really is the creation time.
 
- 
 - 
Method Detail- 
generatepublic static Db4oDatabase generate() generates a new Db4oDatabase object with a unique signature.
 - 
equalspublic boolean equals(java.lang.Object obj) comparison by signature.- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
getIDpublic int getID(Transaction trans) gets the db4o ID, and may cache it for performance reasons.- Returns:
- the db4o ID for the ObjectContainer
 
 - 
getCreationTimepublic long getCreationTime() 
 - 
getSignaturepublic byte[] getSignature() returns the unique signature
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
isOlderThanpublic boolean isOlderThan(Db4oDatabase peer) 
 - 
bindpublic int bind(Transaction trans) make sure this Db4oDatabase is stored. Return the ID.
 - 
querypublic Db4oDatabase query(Transaction trans) find a Db4oDatabase with the same signature as this one
 
- 
 
-