public class SimpleCatalog extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BETA_VERSION |
static int |
CURRENT_VERSION |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
allowRegisterProxy(Class type) |
Object |
convertRawObject(RawObject o,
IdentityHashMap converted) |
Format |
createFormat(Class type,
Map<String,Format> newFormats) |
Format |
createFormat(String clsName,
Map<String,Format> newFormats) |
Format |
getFormat(Class cls,
boolean checkEntitySubclassIndexes)
Returns a format for a given class, or throws an exception.
|
Format |
getFormat(int formatId,
boolean expectStored)
Returns a format for a given ID, or throws an exception.
|
Format |
getFormat(String className)
Returns a format by class name.
|
int |
getInitVersion(Format format,
boolean forReader)
See above.
|
boolean |
isRawAccess() |
static String |
keyClassName(String className) |
Class |
resolveClass(String clsName) |
static Class |
resolveClass(String className,
ClassLoader loader) |
Class |
resolveKeyClass(String clsName) |
static Class |
resolveKeyClass(String className,
ClassLoader loader) |
public static final int BETA_VERSION
public static final int CURRENT_VERSION
public static Class resolveClass(String className, ClassLoader loader) throws ClassNotFoundException
ClassNotFoundExceptionpublic static Class resolveKeyClass(String className, ClassLoader loader)
public int getInitVersion(Format format, boolean forReader)
public Format getFormat(int formatId, boolean expectStored)
expectStored - is true if reading a record from a database, and
therefore the format ID is expected to be stored also. If the format ID
is not stored, a RefreshException is thrown.public Format getFormat(Class cls, boolean checkEntitySubclassIndexes)
checkEntitySubclassIndexes - is true if we're expecting this format
to be an entity subclass and therefore subclass secondary indexes should
be opened.public Format getFormat(String className)
getFormat(Class,boolean), the format will not be created if it is not
already known.public boolean isRawAccess()
PersistCatalog.isRawAccess()public Object convertRawObject(RawObject o, IdentityHashMap converted)
public Class resolveClass(String clsName) throws ClassNotFoundException
ClassNotFoundExceptionPersistCatalog.resolveClass(java.lang.String)public static boolean allowRegisterProxy(Class type)
Copyright © 2024. All rights reserved.