Inheritance diagram for com::sleepycat::bind::serial::StoredClassCatalog:
Public Member Functions | |
StoredClassCatalog (Database database) throws DatabaseException, IllegalArgumentException | |
synchronized void | close () throws DatabaseException |
synchronized byte[] | getClassID (ObjectStreamClass classFormat) throws DatabaseException, ClassNotFoundException |
synchronized ObjectStreamClass | getClassFormat (byte[] classID) throws DatabaseException, ClassNotFoundException |
ClassCatalog
that is stored in a Database
.
A single StoredClassCatalog
object is normally used along with a set of databases that stored serialized objects.
Definition at line 44 of file StoredClassCatalog.java.
|
Creates a catalog based on a given database. To save resources, only a single catalog object should be used for each unique catalog database.
Definition at line 78 of file StoredClassCatalog.java. |
|
Close a catalog database and release any cached resources. Implements com::sleepycat::bind::serial::ClassCatalog. Definition at line 127 of file StoredClassCatalog.java. Referenced by collections::ship::tuple::SampleDatabase::close(), collections::ship::sentity::SampleDatabase::close(), collections::ship::marshal::SampleDatabase::close(), collections::ship::index::SampleDatabase::close(), collections::ship::factory::SampleDatabase::close(), collections::ship::entity::SampleDatabase::close(), and collections::ship::basic::SampleDatabase::close(). |
|
Return the ObjectStreamClass for the given class ID. This may or may not be the current class format, depending on whether the class has changed since the class ID was generated.
Implements com::sleepycat::bind::serial::ClassCatalog. Definition at line 147 of file StoredClassCatalog.java. |
|
Return the class ID for the current version of the given class description. This is used for storing in serialization streams in place of a full class descriptor, since it is much more compact. To get back the ObjectStreamClass for a class ID, call getClassFormat(byte[]). This function causes a new class ID to be assigned if the class description has changed.
Implements com::sleepycat::bind::serial::ClassCatalog. Definition at line 139 of file StoredClassCatalog.java. Referenced by com::sleepycat::collections::test::serial::StoredClassCatalogTest::doWork(). |