org.jpox.enhancer
Interface ClassEnhancer

All Known Implementing Classes:
AbstractClassEnhancer, BCELClassEnhancer

public interface ClassEnhancer

Interface representation of an enhancer of a class.

Version:
$Revision: 1.5.2.1 $

Field Summary
static java.lang.String CN_BitSet
          Class name of java.util.BitSet
static java.lang.String CN_ByteIdentity
           
static java.lang.String CN_CharIdentity
           
static java.lang.String CN_Class
          Class name of java.lang.Class
static java.lang.String CN_ClassCastException
          Class name of java.lang.ClassCastException
static java.lang.String CN_Detachable
          Class name of java.jdo.spi.Detachable
static java.lang.String CN_Flag
          Class name of jdoFlags field
static java.lang.String CN_IllegalArgumentException
          Class name of java.lang.IllegalArgumentException
static java.lang.String CN_IllegalStateException
          Class name of java.lang.IllegalStateException
static java.lang.String CN_IntIdentity
           
static java.lang.String CN_JDODetachedFieldAccessException
          Class name of javax.jdo.JDODetachedFieldAccessException
static java.lang.String CN_JDOFatalInternalException
          Class name of javax.jdo.JDOFatalInternalException
static java.lang.String CN_JDOHelper
          Class name of javax.jdo.JDOHelper
static java.lang.String CN_JDOImplHelper
          Class name of javax.jdo.spi.JDOImplHelper
static java.lang.String CN_LongIdentity
           
static java.lang.String CN_ObjectIdentity
           
static java.lang.String CN_ObjectIdFieldConsumer
          Class name of javax.jdo.spi.PersistenceCapable.ObjectIdFieldConsumer
static java.lang.String CN_ObjectIdFieldSupplier
          Class name of javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier
static java.lang.String CN_PersistenceCapable
          Class name of java.jdo.spi.PersistenceCapable
static java.lang.String CN_PersistenceManager
          Class name of javax.jdo.PersistenceManager
static java.lang.String CN_ShortIdentity
           
static java.lang.String CN_StateManager
          Class name of javax.jdo.spi.StateManager
static java.lang.String CN_StringIdentity
          Class name of SingleFieldIdentity classes
static java.lang.String FN_FieldFlags
          Field name of jdoFieldFlags
static java.lang.String FN_FieldNames
          Field name of jdoFieldNames
static java.lang.String FN_FieldTypes
          Field name of jdoFieldTypes
static java.lang.String FN_Flag
          Field name of jdoFlags
static java.lang.String FN_JdoDetachedState
          Field name of jdoDetachedState
static java.lang.String FN_JdoLoadedFields
          Field name of jdoLoadedFields
static java.lang.String FN_JdoModifiedFields
          Field name of jdoModifiedFields
static java.lang.String FN_JdoObjectId
          Field name of jdoObjectId
static java.lang.String FN_JdoParentFieldCount
          Field name of jdoFieldCount
static java.lang.String FN_JdoVersion
          Field name of jdoVersion
static java.lang.String FN_PersistenceCapableSuperclass
          Field name of jdoPersistenceCapableSuperclass
static java.lang.String FN_serialVersionUID
          Field name of serialVersionUID
static java.lang.String FN_StateManager
          Field name of jdoStateManager
static java.lang.String MN_FieldFlagsInitMethod
          Initializer of jdoFieldFlags
static java.lang.String MN_FieldNamesInitMethod
          Initializer name of jdoFieldName
static java.lang.String MN_FieldTypesInitMethod
          Initializer name of jdoFieldType
static java.lang.String MN_JdoGetPersistenceManager
          Method name of jdoGetPersistenceManager
static java.lang.String MN_JdoIsDetached
          Method name of jdoIsDetached
static java.lang.String MN_JdoIsDetachedInternal
          Method name of jdoIsDetachedInternal
static java.lang.String MN_jdoLoadClass
          Method name of jdoLoadClass
static java.lang.String MN_JdoManagingFieldCountMethod
          Method jdoGetManagedFieldCount
static java.lang.String MN_JdoParentManagingFieldCountMethod
          Method __jdoGetInheritedFieldCount
static java.lang.String MN_JdoPreSerialize
          Method name of jdoPreSerialize
static java.lang.String MN_JdoSuperClone
          Method jdoSuperClone
static java.lang.String MN_PersistenceCapableSuperclassInitMethod
          Method __jdoPersistenceCapableSuperclassInit
 
Method Summary
 boolean checkEnhanced()
          Check whether the class is enhanced.
 void enhance()
          Method to enhance the class definition internally (but not write it).
 byte[] getBytes()
          Access the class in byte array format
 org.jpox.ClassLoaderResolver getClassLoaderResolver()
          Accessor for the ClassLoaderResolver in use.
 void store(java.lang.String dir)
          Enhance the class writing to the specified location.
 void update()
          Enhance the class, overwriting the existing class location.
 void verify()
          Method to verify the enhancement state.
 

Field Detail

FN_FieldNames

static final java.lang.String FN_FieldNames
Field name of jdoFieldNames

See Also:
Constant Field Values

MN_FieldNamesInitMethod

static final java.lang.String MN_FieldNamesInitMethod
Initializer name of jdoFieldName

See Also:
Constant Field Values

FN_FieldTypes

static final java.lang.String FN_FieldTypes
Field name of jdoFieldTypes

See Also:
Constant Field Values

MN_FieldTypesInitMethod

static final java.lang.String MN_FieldTypesInitMethod
Initializer name of jdoFieldType

See Also:
Constant Field Values

FN_Flag

static final java.lang.String FN_Flag
Field name of jdoFlags

See Also:
Constant Field Values

CN_Flag

static final java.lang.String CN_Flag
Class name of jdoFlags field


FN_FieldFlags

static final java.lang.String FN_FieldFlags
Field name of jdoFieldFlags

See Also:
Constant Field Values

MN_FieldFlagsInitMethod

static final java.lang.String MN_FieldFlagsInitMethod
Initializer of jdoFieldFlags

See Also:
Constant Field Values

FN_PersistenceCapableSuperclass

static final java.lang.String FN_PersistenceCapableSuperclass
Field name of jdoPersistenceCapableSuperclass

See Also:
Constant Field Values

FN_JdoParentFieldCount

static final java.lang.String FN_JdoParentFieldCount
Field name of jdoFieldCount

See Also:
Constant Field Values

FN_JdoDetachedState

static final java.lang.String FN_JdoDetachedState
Field name of jdoDetachedState

See Also:
Constant Field Values

FN_JdoObjectId

static final java.lang.String FN_JdoObjectId
Field name of jdoObjectId

See Also:
Constant Field Values

FN_JdoVersion

static final java.lang.String FN_JdoVersion
Field name of jdoVersion

See Also:
Constant Field Values

FN_JdoLoadedFields

static final java.lang.String FN_JdoLoadedFields
Field name of jdoLoadedFields

See Also:
Constant Field Values

FN_JdoModifiedFields

static final java.lang.String FN_JdoModifiedFields
Field name of jdoModifiedFields

See Also:
Constant Field Values

MN_JdoIsDetached

static final java.lang.String MN_JdoIsDetached
Method name of jdoIsDetached

See Also:
Constant Field Values

MN_JdoIsDetachedInternal

static final java.lang.String MN_JdoIsDetachedInternal
Method name of jdoIsDetachedInternal

See Also:
Constant Field Values

MN_JdoGetPersistenceManager

static final java.lang.String MN_JdoGetPersistenceManager
Method name of jdoGetPersistenceManager

See Also:
Constant Field Values

MN_JdoPreSerialize

static final java.lang.String MN_JdoPreSerialize
Method name of jdoPreSerialize

See Also:
Constant Field Values

MN_JdoParentManagingFieldCountMethod

static final java.lang.String MN_JdoParentManagingFieldCountMethod
Method __jdoGetInheritedFieldCount

See Also:
Constant Field Values

MN_JdoSuperClone

static final java.lang.String MN_JdoSuperClone
Method jdoSuperClone

See Also:
Constant Field Values

MN_JdoManagingFieldCountMethod

static final java.lang.String MN_JdoManagingFieldCountMethod
Method jdoGetManagedFieldCount

See Also:
Constant Field Values

MN_PersistenceCapableSuperclassInitMethod

static final java.lang.String MN_PersistenceCapableSuperclassInitMethod
Method __jdoPersistenceCapableSuperclassInit

See Also:
Constant Field Values

FN_StateManager

static final java.lang.String FN_StateManager
Field name of jdoStateManager

See Also:
Constant Field Values

CN_StateManager

static final java.lang.String CN_StateManager
Class name of javax.jdo.spi.StateManager


CN_PersistenceCapable

static final java.lang.String CN_PersistenceCapable
Class name of java.jdo.spi.PersistenceCapable


CN_Detachable

static final java.lang.String CN_Detachable
Class name of java.jdo.spi.Detachable


CN_JDOHelper

static final java.lang.String CN_JDOHelper
Class name of javax.jdo.JDOHelper


CN_JDOImplHelper

static final java.lang.String CN_JDOImplHelper
Class name of javax.jdo.spi.JDOImplHelper


CN_JDOFatalInternalException

static final java.lang.String CN_JDOFatalInternalException
Class name of javax.jdo.JDOFatalInternalException


CN_BitSet

static final java.lang.String CN_BitSet
Class name of java.util.BitSet


CN_Class

static final java.lang.String CN_Class
Class name of java.lang.Class


CN_StringIdentity

static final java.lang.String CN_StringIdentity
Class name of SingleFieldIdentity classes


CN_LongIdentity

static final java.lang.String CN_LongIdentity

CN_IntIdentity

static final java.lang.String CN_IntIdentity

CN_ShortIdentity

static final java.lang.String CN_ShortIdentity

CN_ByteIdentity

static final java.lang.String CN_ByteIdentity

CN_CharIdentity

static final java.lang.String CN_CharIdentity

CN_ObjectIdentity

static final java.lang.String CN_ObjectIdentity

CN_PersistenceManager

static final java.lang.String CN_PersistenceManager
Class name of javax.jdo.PersistenceManager


CN_ObjectIdFieldConsumer

static final java.lang.String CN_ObjectIdFieldConsumer
Class name of javax.jdo.spi.PersistenceCapable.ObjectIdFieldConsumer


CN_ObjectIdFieldSupplier

static final java.lang.String CN_ObjectIdFieldSupplier
Class name of javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier


MN_jdoLoadClass

static final java.lang.String MN_jdoLoadClass
Method name of jdoLoadClass

See Also:
Constant Field Values

CN_IllegalArgumentException

static final java.lang.String CN_IllegalArgumentException
Class name of java.lang.IllegalArgumentException


CN_ClassCastException

static final java.lang.String CN_ClassCastException
Class name of java.lang.ClassCastException


CN_JDODetachedFieldAccessException

static final java.lang.String CN_JDODetachedFieldAccessException
Class name of javax.jdo.JDODetachedFieldAccessException


CN_IllegalStateException

static final java.lang.String CN_IllegalStateException
Class name of java.lang.IllegalStateException


FN_serialVersionUID

static final java.lang.String FN_serialVersionUID
Field name of serialVersionUID

See Also:
Constant Field Values
Method Detail

checkEnhanced

boolean checkEnhanced()
Check whether the class is enhanced.

Returns:
Return true if already enhanced class.

verify

void verify()
            throws java.lang.Exception
Method to verify the enhancement state.

Throws:
java.lang.Exception - Thrown if an error occurs while verifying

enhance

void enhance()
Method to enhance the class definition internally (but not write it).


update

void update()
            throws java.io.IOException
Enhance the class, overwriting the existing class location.

Throws:
java.io.IOException - If an I/O error occurs in the write.

store

void store(java.lang.String dir)
           throws java.io.IOException
Enhance the class writing to the specified location.

Parameters:
dir - Directory into which we write the new class definition
Throws:
java.io.IOException - If an I/O error occurs in the write

getBytes

byte[] getBytes()
Access the class in byte array format

Returns:
the class in byte array format

getClassLoaderResolver

org.jpox.ClassLoaderResolver getClassLoaderResolver()
Accessor for the ClassLoaderResolver in use.

Returns:
ClassLoader resolver


Copyright © -2008 . All Rights Reserved.