public final class ClassControl extends Support
| Modifier and Type | Field and Description |
|---|---|
static int |
PersistAware |
static int |
PersistCapable |
static int |
PersistUnknown |
static int |
TransientOnly |
static int |
UpdateNew |
static int |
UpdateNewer |
static int |
UpdateNotNeeded |
static int |
UpdateUnknown |
| Constructor and Description |
|---|
ClassControl(ClassFileSource theSource,
ClassFile theFile,
Environment env)
Constructor
|
ClassControl(ClassFileSource theSource,
Environment env)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getI18N, getI18N, getI18N, getI18N, getI18N, getI18Npublic 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
public ClassControl(ClassFileSource theSource, Environment env)
public ClassControl(ClassFileSource theSource, ClassFile theFile, Environment env)
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
IOExceptionFileNotFoundExceptionCopyright © 2013. All Rights Reserved.