com.sleepycat.bind.serial
public class StoredClassCatalog extends Object implements ClassCatalog
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() |
ObjectStreamClass | getClassFormat(byte[] classID) |
byte[] | getClassID(ObjectStreamClass classFormat) |
Parameters: database an open database to use as the class catalog. It must be a BTREE database and must not allow duplicates.
Throws: DatabaseException if an error occurs accessing the database. IllegalArgumentException if the database is not a BTREE database or if it configured to allow duplicates.