|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jdo.impl.fostore.FOStoreModel
Provides model information required by fostore: mapping between CLID's and the java.lang.Class's.
| Field Summary | |
private java.util.HashMap |
clids
|
private static RuntimeJavaModelFactory |
javaModelFactory
RuntimeJavaModelFactory. |
(package private) static org.apache.commons.logging.Log |
logger
Logger |
private static I18NHelper |
msg
I18N support. |
private java.util.HashMap |
provisionalCLIDs
Maps from provisional CLID's to java.lang.Class's. |
private FOStoreTranscriberFactory |
transcriberFactory
Convenience; so that we don't have to getInstance() all the time. |
private java.util.HashMap |
transcribers
Map from jdoClass to an array of FOStoreTranscribers. |
| Constructor Summary | |
(package private) |
FOStoreModel()
Constructor |
| Method Summary | |
(package private) OID |
bind(java.lang.Class cls,
int type,
javax.jdo.spi.PersistenceCapable pc,
java.lang.Object oid,
PersistenceManagerInternal pm,
FOStorePMF pmf)
Causes the given class mapped to an OID. |
(package private) java.lang.Class |
getClass(CLID clid)
Return the class corresponding to the given CLID. |
(package private) CLID |
getCLID(java.lang.Class cls)
Provides the class id for the given class. |
(package private) java.util.Map.Entry |
getEntry(CLID clid)
|
(package private) JDOClass |
getJDOClass(java.lang.Class c)
|
(package private) FOStoreTranscriber |
getTranscriber(java.lang.Class c,
int fieldNum)
Provides a transcriber for the field in the given JDOClass indicated by fieldNum. |
(package private) void |
print(java.lang.Class c)
|
(package private) void |
print(java.lang.Object o)
|
(package private) void |
put(java.lang.Class cls,
CLID clid)
Add a mapping from ClassMetaData to CLID. |
(package private) void |
updateCLID(CLID pCLID,
CLID rCLID)
Changes the class id by which this metadata is known. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.HashMap clids
private java.util.HashMap provisionalCLIDs
private final java.util.HashMap transcribers
private final FOStoreTranscriberFactory transcriberFactory
private static final RuntimeJavaModelFactory javaModelFactory
private static final I18NHelper msg
static final org.apache.commons.logging.Log logger
| Constructor Detail |
FOStoreModel()
| Method Detail |
CLID getCLID(java.lang.Class cls)
cls - The class for which the corresponding class id is needed.
void put(java.lang.Class cls,
CLID clid)
OID bind(java.lang.Class cls,
int type,
javax.jdo.spi.PersistenceCapable pc,
java.lang.Object oid,
PersistenceManagerInternal pm,
FOStorePMF pmf)
cls - Class to be mapped.type - JDOIdentityType as an int.pc - PersistenceCapable instance to copy fields from if available.oid - Object Id instance to copy fields from if available.pm - PersistenceManagerInternal that requested the operation.pmf - FOStorePMF that requested the operation.
void updateCLID(CLID pCLID,
CLID rCLID)
pCLID - The class id by which the class was previously known.rCLID - The class id by which the class should be known from now
on in this JVM.java.lang.Class getClass(CLID clid)
clid - The CLID for which a class is wanted.
java.util.Map.Entry getEntry(CLID clid)
JDOClass getJDOClass(java.lang.Class c)
c - Class whose corresponding JDOClass is needed.
FOStoreTranscriber getTranscriber(java.lang.Class c,
int fieldNum)
c - JDOClass for which a transcriber is needed.fieldNum - The absolute fieldNumber in the class modeled by
jdoClass that is to be transcribed.
void print(java.lang.Object o)
void print(java.lang.Class c)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||