|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.bdb.StoredClassCatalog
public class StoredClassCatalog
Java serialization catalog used for compact storage of database objects.
Constructor Summary | |
---|---|
StoredClassCatalog(DbEnv env,
java.lang.String file,
java.lang.String database,
int openFlags)
Open a catalog database. |
Method Summary | |
---|---|
void |
close()
Close a catalog database and release any cached resources. |
java.io.ObjectStreamClass |
getClassFormat(byte[] classID)
Return the ObjectStreamClass for the given class ID. |
java.io.ObjectStreamClass |
getClassFormat(java.lang.String className)
Return the ObjectStreamClass for the given class name. |
byte[] |
getClassID(java.lang.String className)
Return the class ID for the current version of the given class name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoredClassCatalog(DbEnv env, java.lang.String file, java.lang.String database, int openFlags) throws java.io.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.
java.io.FileNotFoundException
DbException
Method Detail |
---|
public void close() throws java.io.IOException
ClassCatalog
close
in interface ClassCatalog
java.io.IOException
public byte[] getClassID(java.lang.String className) throws java.io.IOException, java.lang.ClassNotFoundException
ClassCatalog
ClassCatalog.getClassFormat(byte[])
.
This function causes a new class ID to be assigned if the class
description has changed.
getClassID
in interface ClassCatalog
className
- The fully qualified class name for which to return the
class ID.
java.io.IOException
java.lang.ClassNotFoundException
public java.io.ObjectStreamClass getClassFormat(java.lang.String className) throws java.io.IOException, java.lang.ClassNotFoundException
ClassCatalog
getClassFormat
in interface ClassCatalog
className
- The fully qualified class name for which to return the
class format.
java.io.IOException
java.lang.ClassNotFoundException
public java.io.ObjectStreamClass getClassFormat(byte[] classID) throws java.io.IOException, java.lang.ClassNotFoundException
ClassCatalog
getClassFormat
in interface ClassCatalog
classID
- The class ID for which to return the class format.
java.io.IOException
java.lang.ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |