|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.persist.impl.ReadOnlyCatalog
class ReadOnlyCatalog
Read-only catalog operations used when initializing new formats. This catalog is used temprarily when the main catalog has not been updated yet, but the new formats need to do catalog lookups.
PersistCatalog.addNewFormat(java.lang.Class)
Field Summary |
---|
Fields inherited from interface com.sleepycat.persist.impl.Catalog |
---|
BETA_VERSION, CURRENT_VERSION |
Constructor Summary | |
---|---|
ReadOnlyCatalog(java.util.List<Format> formatList,
java.util.Map<java.lang.String,Format> formatMap)
|
Method Summary | |
---|---|
java.lang.Object |
convertRawObject(RawObject o,
java.util.IdentityHashMap converted)
|
Format |
createFormat(java.lang.Class type,
java.util.Map<java.lang.String,Format> newFormats)
|
Format |
createFormat(java.lang.String clsName,
java.util.Map<java.lang.String,Format> newFormats)
|
Format |
getFormat(java.lang.Class cls)
Returns a format for a given class, or throws an exception. |
Format |
getFormat(int formatId)
Returns a format for a given ID, or throws an exception. |
Format |
getFormat(java.lang.String className)
Returns a format by class name. |
int |
getInitVersion(Format format,
boolean forReader)
See above. |
boolean |
isRawAccess()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
ReadOnlyCatalog(java.util.List<Format> formatList, java.util.Map<java.lang.String,Format> formatMap)
Method Detail |
---|
public int getInitVersion(Format format, boolean forReader)
Catalog
getInitVersion
in interface Catalog
public Format getFormat(int formatId)
Catalog
getFormat
in interface Catalog
public Format getFormat(java.lang.Class cls)
Catalog
getFormat
in interface Catalog
public Format getFormat(java.lang.String className)
Catalog
Catalog.getFormat(Class)
, the
format will not be created if it is not already known.
getFormat
in interface Catalog
public Format createFormat(java.lang.String clsName, java.util.Map<java.lang.String,Format> newFormats)
createFormat
in interface Catalog
PersistCatalog.createFormat(java.lang.String, java.util.Map)
public Format createFormat(java.lang.Class type, java.util.Map<java.lang.String,Format> newFormats)
createFormat
in interface Catalog
PersistCatalog.createFormat(java.lang.String, java.util.Map)
public boolean isRawAccess()
isRawAccess
in interface Catalog
PersistCatalog.isRawAccess()
public java.lang.Object convertRawObject(RawObject o, java.util.IdentityHashMap converted)
convertRawObject
in interface Catalog
PersistCatalog.convertRawObject(com.sleepycat.persist.raw.RawObject, java.util.IdentityHashMap)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |