|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.model.java.runtime.RegisterClassListener
The Model listener gets notified whenever a persistence-capable class gets registered with the JDOImplHelper at runtime.
Field Summary | |
(package private) javax.jdo.spi.JDOImplHelper |
helper
The corresponding JDOImplHelper instance. |
(package private) RuntimeJavaModelFactory |
javaModelFactory
The JavaModel factory. |
private static org.apache.commons.logging.Log |
logger
Logger. |
Constructor Summary | |
RegisterClassListener(javax.jdo.spi.JDOImplHelper helper,
RuntimeJavaModelFactory javaModelFactory)
Constructor. |
Method Summary | |
private JDOClass |
createJDOClass(java.lang.Class pcClass)
Internal method to update the corresponding JDOClass instance with the runtime meta data. |
void |
registerClass(javax.jdo.spi.RegisterClassEvent event)
This method gets called when a persistence-capable class is registered. |
private void |
updateJDOClass(JDOClass jdoClass,
java.lang.String[] fieldNames,
java.lang.Class[] fieldTypes,
byte[] fieldFlags,
java.lang.Class pcSuperclass)
Internal method to update the specified JDOClass instance with the runtime meta data. |
private void |
updateJDOField(JDOField jdoField,
java.lang.Class fieldType,
byte fieldFlags,
RuntimeJavaType declaringClass)
Internal method to update the specified JDOField instance with the runtime meta data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
javax.jdo.spi.JDOImplHelper helper
RuntimeJavaModelFactory javaModelFactory
private static org.apache.commons.logging.Log logger
Constructor Detail |
public RegisterClassListener(javax.jdo.spi.JDOImplHelper helper, RuntimeJavaModelFactory javaModelFactory)
helper
- the JDOImplHelper instance.javaModelFactory
- the JavaModel factory.Method Detail |
public void registerClass(javax.jdo.spi.RegisterClassEvent event)
registerClass
in interface javax.jdo.spi.RegisterClassListener
event
- a RegisterClassEvent instance describing the registered
class plus metatdata.private JDOClass createJDOClass(java.lang.Class pcClass) throws ModelException
pcClass
- the class object of the persistence-capable class
ModelException
private void updateJDOClass(JDOClass jdoClass, java.lang.String[] fieldNames, java.lang.Class[] fieldTypes, byte[] fieldFlags, java.lang.Class pcSuperclass) throws ModelException
jdoClass
- the jdoClass instance to be updatedfieldNames
- the names of the managed fieldsfieldTypes
- the types of the managed fieldsfieldFlags
- the jdo field flags of the managed fieldspcSuperclass
- the class object of the persistence-capable
superclass
ModelException
private void updateJDOField(JDOField jdoField, java.lang.Class fieldType, byte fieldFlags, RuntimeJavaType declaringClass) throws ModelException
jdoField
- the jdoField instance to be updatedfieldType
- the type of the fieldfieldFlags
- the jdo field flags
ModelException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |