interface Catalog
PersistCatalog
,
SimpleCatalog
,
ReadOnlyCatalog
Modifier and Type | Field and Description |
---|---|
static int |
BETA_VERSION |
static int |
CURRENT_VERSION |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convertRawObject(RawObject o,
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,
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(java.lang.String className)
Returns a format by class name.
|
int |
getInitVersion(Format format,
boolean forReader)
See above.
|
boolean |
isRawAccess() |
java.lang.Class |
resolveClass(java.lang.String clsName) |
java.lang.Class |
resolveKeyClass(java.lang.String clsName) |
static final int BETA_VERSION
static final int CURRENT_VERSION
int getInitVersion(Format format, boolean forReader)
Format getFormat(int formatId, boolean expectStored) throws RefreshException
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.java.lang.IllegalStateException
- if the formatId does not correspond to a
persistent class. This is an internal consistency error.RefreshException
Format getFormat(java.lang.Class cls, boolean checkEntitySubclassIndexes) throws RefreshException
checkEntitySubclassIndexes
- is true if we're expecting this format
to be an entity subclass and therefore subclass secondary indexes should
be opened.java.lang.IllegalArgumentException
- if the class is not persistent. This
is a user error.RefreshException
Format getFormat(java.lang.String className)
#getFormat(Class)
, the
format will not be created if it is not already known.Format createFormat(java.lang.String clsName, java.util.Map<java.lang.String,Format> newFormats)
Format createFormat(java.lang.Class type, java.util.Map<java.lang.String,Format> newFormats)
boolean isRawAccess()
PersistCatalog.isRawAccess()
java.lang.Object convertRawObject(RawObject o, IdentityHashMap converted) throws RefreshException
java.lang.Class resolveClass(java.lang.String clsName) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
PersistCatalog.resolveClass(java.lang.String)
java.lang.Class resolveKeyClass(java.lang.String clsName)
Copyright (c) 2004-2012 Oracle. All rights reserved.