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

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

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

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

Public Member Functions

void close () throws DatabaseException
synchronized byte[] getClassID (ObjectStreamClass desc) throws DatabaseException
synchronized ObjectStreamClass getClassFormat (byte[] id) throws DatabaseException

Detailed Description

Author:
Mark Hayes

Definition at line 21 of file TestClassCatalog.java.


Member Function Documentation

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

Close a catalog database and release any cached resources.

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

Definition at line 30 of file TestClassCatalog.java.

synchronized ObjectStreamClass com::sleepycat::bind::serial::test::TestClassCatalog::getClassFormat byte[]  id  )  throws DatabaseException [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 50 of file TestClassCatalog.java.

synchronized byte [] com::sleepycat::bind::serial::test::TestClassCatalog::getClassID ObjectStreamClass  desc  )  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 34 of file TestClassCatalog.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