|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.persist.impl.SimpleCatalog
public class SimpleCatalog
A static catalog containing simple types only. Once created, this catalog is immutable. For bindings accessed by a PersistComparator during recovery, the SimpleCatalog provides formats for all simple types. To reduce redundant format objects, the SimpleCatalog's formats are copied when creating a regular PersistCatalog. This class also contains utility methods for dealing with primitives.
Field Summary | |
---|---|
static int |
BETA_VERSION
|
static int |
CURRENT_VERSION
|
Method Summary | |
---|---|
static java.lang.Class |
classForName(java.lang.String className)
|
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()
|
static java.lang.Class |
keyClassForName(java.lang.String className)
|
static java.lang.String |
keyClassName(java.lang.String className)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BETA_VERSION
public static final int CURRENT_VERSION
Method Detail |
---|
public static java.lang.Class keyClassForName(java.lang.String className)
public static java.lang.String keyClassName(java.lang.String className)
public static java.lang.Class classForName(java.lang.String className) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public int getInitVersion(Format format, boolean forReader)
public Format getFormat(int formatId)
public Format getFormat(java.lang.Class cls)
public Format getFormat(java.lang.String className)
getFormat(Class)
, the
format will not be created if it is not already known.
public Format createFormat(java.lang.String clsName, java.util.Map<java.lang.String,Format> newFormats)
PersistCatalog.createFormat(java.lang.String, java.util.Map)
public Format createFormat(java.lang.Class type, java.util.Map<java.lang.String,Format> newFormats)
PersistCatalog.createFormat(java.lang.String, java.util.Map)
public boolean isRawAccess()
PersistCatalog.isRawAccess()
public java.lang.Object convertRawObject(RawObject o, java.util.IdentityHashMap converted)
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 |