Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

com::sleepycat::bind::serial::test::NullClassCatalog Class Reference

Inheritance diagram for com::sleepycat::bind::serial::test::NullClassCatalog:

com::sleepycat::bind::serial::ClassCatalog

Public Member Functions

void close () throws DatabaseException
byte[] getClassID (ObjectStreamClass classFormat) throws DatabaseException
ObjectStreamClass getClassFormat (byte[] classID) throws DatabaseException, ClassNotFoundException

Detailed Description

NullCatalog is a dummy Catalog implementation that simply returns large (8 byte) class IDs so that ObjectOutput can be simulated when computing a serialized size.

Author:
Mark Hayes

Definition at line 25 of file NullClassCatalog.java.


Member Function Documentation

void com::sleepycat::bind::serial::test::NullClassCatalog::close  )  throws DatabaseException [inline]
 

Close a catalog database and release any cached resources.

Implements com::sleepycat::bind::serial::ClassCatalog.

Definition at line 29 of file NullClassCatalog.java.

ObjectStreamClass com::sleepycat::bind::serial::test::NullClassCatalog::getClassFormat byte[]  classID  )  throws DatabaseException, ClassNotFoundException [inline]
 

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.

Parameters:
classID The class ID for which to return the class format.
Returns:
The class format for the given class ID, which may or may not represent the current version of the class.

Implements com::sleepycat::bind::serial::ClassCatalog.

Definition at line 39 of file NullClassCatalog.java.

byte [] com::sleepycat::bind::serial::test::NullClassCatalog::getClassID ObjectStreamClass  classFormat  )  throws DatabaseException [inline]
 

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.

Parameters:
classDesc The class description for which to return the class ID.
Returns:
The class ID for the current version of the class.

Implements com::sleepycat::bind::serial::ClassCatalog.

Definition at line 33 of file NullClassCatalog.java.


The documentation for this class was generated from the following file:
Generated on Sun Dec 25 12:14:59 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2