|
Berkeley DB version 4.2.52 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.sleepycat.bdb.StoredClassCatalog
Java serialization catalog used for compact storage of database objects.
| Constructor Summary | |
StoredClassCatalog(DbEnv env,
String file,
String database,
int openFlags)
Open a catalog 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. |
ObjectStreamClass |
getClassFormat(String className)
Return the ObjectStreamClass for the given class name. |
byte[] |
getClassID(String className)
Return the class ID for the current version of the given class name. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StoredClassCatalog(DbEnv env,
String file,
String database,
int openFlags)
throws FileNotFoundException,
DbException
env - is the environment in which to open the catalog.file - is the name of the catalog file.database - the database name to be used within the specified
store. If null then the filename is the database name.openFlags - Flags for calling Db.open such as Db.DB_CREATE and
Db.DB_AUTO_COMMIT.| Method Detail |
public void close()
throws IOException
ClassCatalog
close in interface ClassCatalogIOException
public byte[] getClassID(String className)
throws IOException,
ClassNotFoundException
ClassCatalogClassCatalog.getClassFormat(byte[]).
This function causes a new class ID to be assigned if the class
description has changed.
getClassID in interface ClassCatalogclassName - The fully qualified class name for which to return the
class ID.
IOException
ClassNotFoundException
public ObjectStreamClass getClassFormat(String className)
throws IOException,
ClassNotFoundException
ClassCatalog
getClassFormat in interface ClassCatalogclassName - The fully qualified class name for which to return the
class format.
IOException
ClassNotFoundException
public ObjectStreamClass getClassFormat(byte[] classID)
throws IOException,
ClassNotFoundException
ClassCatalog
getClassFormat in interface ClassCatalogclassID - The class ID for which to return the class format.
IOException
ClassNotFoundException
|
Berkeley DB version 4.2.52 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||