| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.enhance.ManagedClassSubclasser
public class ManagedClassSubclasser
Redefines the method bodies of existing unenhanced classes to make them notify state managers of mutations.
| Constructor Summary | |
|---|---|
| ManagedClassSubclasser() | |
| Method Summary | |
|---|---|
| static java.util.List<java.lang.Class> | prepareUnenhancedClasses(OpenJPAConfiguration conf,
                         java.util.Collection<? extends java.lang.Class> classes,
                         java.lang.ClassLoader envLoader)For each element in classes, creates and registers a
 new subclass that implementsPersistenceCapable, and prepares
 OpenJPA to handle new instances of the unenhanced type. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ManagedClassSubclasser()
| Method Detail | 
|---|
public static java.util.List<java.lang.Class> prepareUnenhancedClasses(OpenJPAConfiguration conf,
                                                                       java.util.Collection<? extends java.lang.Class> classes,
                                                                       java.lang.ClassLoader envLoader)
classes, creates and registers a
 new subclass that implements PersistenceCapable, and prepares
 OpenJPA to handle new instances of the unenhanced type. If this is
 invoked in a Java 6 environment, this method will redefine the methods
 for each class in the argument list such that field accesses are
 intercepted in-line. If invoked in a Java 5 environment, this
 redefinition is not possible; in these contexts, when using field
 access, OpenJPA will need to do state comparisons to detect any change
 to any instance at any time, and when using property access, OpenJPA
 will need to do state comparisons to detect changes to newly inserted
 instances after a flush has been called.
null if classes
 is null.
UserException - if conf requires build-time
 enhancement and classes includes unenhanced types.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||