|
|
|
Berkeley DB version 4.4.20 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sleepycat.bind.serial.StoredClassCatalog
A ClassCatalog
that is stored in a Database
.
A single StoredClassCatalog
object is normally used along
with a set of databases that stored serialized objects.
Constructor Summary | |
StoredClassCatalog(Database database)
Creates a catalog based on a given database. |
Method Summary | |
void |
close()
Close a catalog database and release any cached resources. |
ObjectStreamClass |
getClassFormat(byte[] classID)
Return the ObjectStreamClass for the given class ID. |
byte[] |
getClassID(ObjectStreamClass classFormat)
Return the class ID for the current version of the given class description. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StoredClassCatalog(Database database) throws DatabaseException, IllegalArgumentException
database
- an open database to use as the class catalog. It must
be a BTREE database and must not allow duplicates.
DatabaseException
- if an error occurs accessing the database.
IllegalArgumentException
- if the database is not a BTREE database
or if it configured to allow duplicates.Method Detail |
public void close() throws DatabaseException
ClassCatalog
close
in interface ClassCatalog
DatabaseException
public byte[] getClassID(ObjectStreamClass classFormat) throws DatabaseException, ClassNotFoundException
ClassCatalog
ClassCatalog.getClassFormat(byte[])
.
This function causes a new class ID to be assigned if the class
description has changed.
getClassID
in interface ClassCatalog
classFormat
- The class description for which to return the
class ID.
DatabaseException
ClassNotFoundException
public ObjectStreamClass getClassFormat(byte[] classID) throws DatabaseException, ClassNotFoundException
ClassCatalog
getClassFormat
in interface ClassCatalog
classID
- The class ID for which to return the class format.
DatabaseException
ClassNotFoundException
|
Berkeley DB version 4.4.20 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |