|
|||||||||
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.
Method Summary | |
---|---|
static Class |
classForName(String className)
|
(package private) static List<Format> |
copyFormatList()
|
Format |
createFormat(Class type,
Map<String,Format> newFormats)
|
Format |
getFormat(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(String className)
Returns a format by class name. |
(package private) static SimpleCatalog |
getInstance()
|
(package private) static SimpleFormat |
getSimpleFormat(Class type)
|
(package private) static boolean |
isSimpleType(Class type)
|
static Class |
keyClassForName(String className)
|
static String |
keyClassName(String className)
|
(package private) static Class |
primitiveToWrapper(Class type)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
static SimpleCatalog getInstance()
static boolean isSimpleType(Class type)
static Class primitiveToWrapper(Class type)
public static Class keyClassForName(String className)
public static String keyClassName(String className)
public static Class classForName(String className) throws ClassNotFoundException
ClassNotFoundException
static SimpleFormat getSimpleFormat(Class type)
static List<Format> copyFormatList()
public Format getFormat(int formatId)
Catalog
getFormat
in interface Catalog
public Format getFormat(Class cls)
Catalog
getFormat
in interface Catalog
public Format getFormat(String className)
Catalog
Catalog.getFormat(int)
, the
format will not be created if it is not already known.
getFormat
in interface Catalog
public Format createFormat(Class type, Map<String,Format> newFormats)
createFormat
in interface Catalog
PersistCatalog.createFormat(java.lang.Class, java.util.Map)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |