|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.jdo.api.persistence.enhancer.util.Assertion
com.sun.jdo.api.persistence.enhancer.util.Support
com.sun.jdo.api.persistence.enhancer.impl.ClassControl
public final class ClassControl
ClassControl acts as the primary handle for a class within the filter tool. ClassControl instances are typically accessed through various methods on Environment.
| Field Summary | |
|---|---|
static int |
PersistAware
|
static int |
PersistCapable
|
static int |
PersistUnknown
|
static int |
TransientOnly
|
static int |
UpdateNew
|
static int |
UpdateNewer
|
static int |
UpdateNotNeeded
|
static int |
UpdateUnknown
|
| Fields inherited from class com.sun.jdo.api.persistence.enhancer.util.Support |
|---|
timer |
| Constructor Summary | |
|---|---|
ClassControl(ClassFileSource theSource,
ClassFile theFile,
Environment env)
Constructor |
|
ClassControl(ClassFileSource theSource,
Environment env)
Constructor |
|
| Method Summary | |
|---|---|
com.sun.jdo.api.persistence.enhancer.impl.ClassAction |
action()
Get the ClassAction for this class |
void |
annotate()
perform necessary annotation actions on the class |
boolean |
annotateable()
Return true if the class is one which should be a candidate for annotation. |
void |
augment()
Reparent class if needed |
ClassFile |
classFile()
Get the ClassFile data structure for the class |
String |
className()
Return the class name in VM form |
boolean |
filterRequired()
Return true if filtering of the class is required. |
void |
noteUpdate()
Record a modification of the class |
static String |
packageOf(String vmName)
Return the vm package name for the vm class name |
int |
persistType()
Return the persistence type for this class |
String |
pkg()
Return the vm package name for this class |
void |
requireUpdate()
Mark the class as requiring update. |
void |
scan1()
Note the class characteristics |
ClassFileSource |
source()
Return the source of the class |
String |
sourceName()
Return the name of the class source |
boolean |
updated()
Return true if the classfile has been updated |
static String |
userClassFromVMClass(String vmName)
Return the class name in user ('.' delimited) form |
String |
userClassName()
Return the class name in user ('.' delimited) form |
static String |
vmClassFromUserClass(String userName)
Return the class name in VM ('/' delimited) form |
void |
write(File destFile)
Write the file. |
| Methods inherited from class com.sun.jdo.api.persistence.enhancer.util.Support |
|---|
getI18N, getI18N, getI18N, getI18N, getI18N, getI18N |
| Methods inherited from class com.sun.jdo.api.persistence.enhancer.util.Assertion |
|---|
affirm, affirm, affirm, affirm |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TransientOnly
public static final int PersistUnknown
public static final int PersistAware
public static final int PersistCapable
public static final int UpdateNotNeeded
public static final int UpdateUnknown
public static final int UpdateNew
public static final int UpdateNewer
| Constructor Detail |
|---|
public ClassControl(ClassFileSource theSource,
Environment env)
public ClassControl(ClassFileSource theSource,
ClassFile theFile,
Environment env)
| Method Detail |
|---|
public boolean updated()
public void noteUpdate()
public ClassFile classFile()
public int persistType()
public boolean filterRequired()
public void requireUpdate()
public boolean annotateable()
public com.sun.jdo.api.persistence.enhancer.impl.ClassAction action()
public void scan1()
public void augment()
public void annotate()
public String className()
public String userClassName()
public static String userClassFromVMClass(String vmName)
public static String vmClassFromUserClass(String userName)
public String pkg()
public static String packageOf(String vmName)
public String sourceName()
public ClassFileSource source()
public void write(File destFile)
throws IOException,
FileNotFoundException
IOException
FileNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||