org.datanucleus.enhancer.asm
Class ASMClassEnhancer

java.lang.Object
  extended by org.datanucleus.enhancer.AbstractClassEnhancer
      extended by org.datanucleus.enhancer.asm.ASMClassEnhancer
All Implemented Interfaces:
ClassEnhancer

public class ASMClassEnhancer
extends AbstractClassEnhancer

Class enhancer using ASM (http://asm.objectweb.org). Assumes that the version of ASM is 3.0 or above. ASM operates using a SAXParser-like "visitor-pattern". We utilise this as follows :-


Nested Class Summary
static class ASMClassEnhancer.MyClassVisitor
          Convenience class to look up the class name for a file.
 
Field Summary
static String ACN_Detachable
           
static String ACN_DetachedFieldAccessException
           
static String ACN_FatalInternalException
           
static String ACN_Helper
           
static String ACN_ImplHelper
           
static String ACN_ObjectIdFieldConsumer
           
static String ACN_ObjectIdFieldSupplier
           
static String ACN_Persistable
           
static String ACN_PersistenceManager
           
static String ACN_StateManager
           
static int ASM_API_VERSION
          Version of the ASM API to use (introduced in ASM v4 to aid backward compatibility).
protected  String asmClassName
          ASM Class name for this class (replace .
static String CD_ByteIdentity
           
static String CD_CharIdentity
           
static String CD_Detachable
           
static String CD_IntIdentity
           
static String CD_LongIdentity
           
static String CD_Object
           
static String CD_ObjectIdentity
           
static String CD_ObjectIdFieldConsumer
           
static String CD_ObjectIdFieldSupplier
           
static String CD_PersistenceCapable
           
static String CD_PersistenceManager
           
static String CD_ShortIdentity
           
static String CD_StateManager
           
static String CD_String
           
static String CD_StringIdentity
           
static Class CL_Detachable
           
static Class CL_ObjectIdFieldConsumer
           
static Class CL_ObjectIdFieldSupplier
           
static Class CL_Persistable
           
static Class CL_PersistenceManager
           
static Class CL_StateManager
           
protected  byte[] classBytes
          Bytes of the class (after enhancing).
protected  String classDescriptor
          Class descriptor for this class.
protected  Class cls
          Class that is being enhanced.
static String CN_DetachedFieldAccessException
           
static String CN_JDOFatalInternalException
           
static String CN_JDOHelper
           
static String CN_JDOImplHelper
           
static String FN_DetachedState
           
static String FN_FieldFlags
           
static String FN_FieldNames
           
static String FN_FieldTypes
           
static String FN_Flag
           
static String FN_InheritedFieldCount
           
static String FN_PersistableSuperclass
           
static String FN_SerialVersionUID
           
static String FN_StateManager
           
protected  byte[] inputBytes
          Bytes of the input class (only when enhancing generated classes with no class file).
protected  String inputResourceName
          Resource name of the input class (only when the class exists in a class file).
protected static org.datanucleus.util.Localiser LOCALISER_CORE
           
static String MN_CopyField
           
static String MN_CopyFields
           
static String MN_CopyKeyFieldsFromObjectId
           
static String MN_CopyKeyFieldsToObjectId
           
static String MN_FieldFlagsInitMethod
           
static String MN_FieldNamesInitMethod
           
static String MN_FieldTypesInitMethod
           
static String MN_GetInheritedFieldCount
           
static String MN_GetManagedFieldCount
           
static String MN_GetObjectId
           
static String MN_GetPersistenceManager
           
static String MN_GetterPrefix
           
static String MN_GetTransactionalObjectId
           
static String MN_GetVersion
           
static String MN_IsDeleted
           
static String MN_IsDetached
           
static String MN_IsDetachedInternal
           
static String MN_IsDirty
           
static String MN_IsNew
           
static String MN_IsPersistent
           
static String MN_IsTransactional
           
static String MN_LoadClass
           
static String MN_MakeDirty
           
static String MN_MakeDirtyDetached
           
static String MN_NewInstance
           
static String MN_NewObjectIdInstance
           
static String MN_PersistableSuperclassInit
           
static String MN_PreSerialize
           
static String MN_ProvideField
           
static String MN_ProvideFields
           
static String MN_ReplaceDetachedState
           
static String MN_ReplaceField
           
static String MN_ReplaceFields
           
static String MN_ReplaceFlags
           
static String MN_ReplaceStateManager
           
static String MN_SetterPrefix
           
static String MN_SuperClone
           
protected  byte[] pkClassBytes
          Bytes for any auto-generated PK class (if generated during enhancement).
 
Fields inherited from class org.datanucleus.enhancer.AbstractClassEnhancer
className, clr, cmd, fieldsToAdd, initialised, LOCALISER, metaDataMgr, methodsToAdd, options, update
 
Fields inherited from interface org.datanucleus.enhancer.ClassEnhancer
OPTION_GENERATE_DEFAULT_CONSTRUCTOR, OPTION_GENERATE_DETACH_LISTENER, OPTION_GENERATE_PK
 
Constructor Summary
ASMClassEnhancer(org.datanucleus.metadata.ClassMetaData cmd, org.datanucleus.ClassLoaderResolver clr, org.datanucleus.metadata.MetaDataManager mmgr)
          Constructor for an enhancer for the class.
ASMClassEnhancer(org.datanucleus.metadata.ClassMetaData cmd, org.datanucleus.ClassLoaderResolver clr, org.datanucleus.metadata.MetaDataManager mmgr, byte[] classBytes)
          Constructor for an enhancer to enhance a class defined by the provided bytes.
 
Method Summary
protected  boolean checkClassIsEnhanced(boolean logErrors)
          Convenience method to return if a class is enhanced.
 boolean enhance()
          Method to enhance a classes definition.
 String getASMClassName()
          Accessor for the ASM class name
 String getByteIdentityDescriptor()
          Descriptor for ByteIdentity.
 String getCharIdentityDescriptor()
          Descriptor for CharIdentity.
 byte[] getClassBytes()
          Accessor for the class bytes.
 String getClassDescriptor()
          Accessor for the class descriptor for the class being enhanced
 Class getClassEnhanced()
          Accessor for the class being enhanced.
static String getClassNameForFileName(String filename)
          Convenience accessor for the class name that is stored in a particular class.
 String getCopyFieldMethodName()
          Method name of CopyField
 String getCopyFieldsMethodName()
          Method name of CopyFields
 String getCopyKeyFieldsFromObjectIdMethodName()
          Method name of CopyFieldsFromObjectId
 String getCopyKeyFieldsToObjectIdMethodName()
          Method name of CopyFieldsToObjectId
 String getDetachableAsmClassName()
          ASM class name for Detachable.
 Class getDetachableClass()
          Class for the Detachable interface.
 String getDetachableDescriptor()
          Descriptor for javax.jdo.spi.Detachable.
 String getDetachedFieldAccessExceptionAsmClassName()
          ASM class name for DetachedFieldAccessException.
 String getDetachedFieldAccessExceptionClassName()
          Class name of DetachedFieldAccessException
 String getDetachedStateFieldName()
          Field name of DetachedState
 String getFatalInternalExceptionAsmClassName()
          ASM class name for FatalInternalException.
 String getFatalInternalExceptionClassName()
          Class name of FatalInternalException
 String getFieldFlagsFieldName()
          Field name of FieldFlags
 String getFieldFlagsInitMethodName()
          Method name for initialising FieldFlags
 String getFieldNamesFieldName()
          Field name of FieldNames
 String getFieldNamesInitMethodName()
          Method name for initialising FieldNames
 String getFieldTypesFieldName()
          Field name of FieldTypes
 String getFieldTypesInitMethodName()
          Method name for initialising FieldTypes
 String getFlagsFieldName()
          Field name of Flags
 String getGetInheritedFieldCountMethodName()
          Method name for GetInheritedFieldCount
 String getGetManagedFieldCountMethodName()
          Method name for GetManagedFieldCount
 String getGetMethodPrefixMethodName()
          Prefix for method names for getXXX.
 String getGetObjectIdMethodName()
          Method name for object id accessor
 String getGetPersistenceManagerMethodName()
          Method name of GetPersistenceManager
 String getGetTransactionalObjectIdMethodName()
          Method name for transactional object id accessor
 String getGetVersionMethodName()
          Method name for version accessor
 String getHelperAsmClassName()
          ASM class name for Helper.
 String getHelperClassName()
          Class name of Helper
 String getImplHelperAsmClassName()
          ASM class name for ImplHelper.
 String getImplHelperClassName()
          Class name of ImplHelper
 String getInheritedFieldCountFieldName()
          Field name of FieldCount
 String getIntIdentityDescriptor()
          Descriptor for IntIdentity.
 String getIsDeletedMethodName()
          Method name of IsDeleted
 String getIsDetachedInternalMethodName()
          Method name of IsDetachedInternal
 String getIsDetachedMethodName()
          Method name of IsDetached
 String getIsDirtyMethodName()
          Method name of IsDirty
 String getIsNewMethodName()
          Method name of IsNew
 String getIsPersistentMethodName()
          Method name of IsPersistent
 String getIsTransactionalMethodName()
          Method name of IsTransactional
 String getLoadClassMethodName()
          Method name of LoadClass
 String getLongIdentityDescriptor()
          Descriptor for LongIdentity.
 String getMakeDirtyDetachedMethodName()
          Method name of MakeDirtyDetached.
 String getMakeDirtyMethodName()
          Method name of MakeDirty.
 String getNewInstanceMethodName()
          Method name of NewInstance.
 String getNewObjectIdInstanceMethodName()
          Method name of NewObjectIdInstance.
 Class getObjectIdentityClass()
          Class for ObjectIdentity.
 String getObjectIdentityDescriptor()
          Descriptor for ObjectIdentity.
 String getObjectIdFieldConsumerAsmClassName()
          ASM class name for ObjectIdFieldConsumer.
 Class getObjectIdFieldConsumerClass()
          Class for ObjectIdFieldConsumer.
 String getObjectIdFieldConsumerDescriptor()
          Descriptor for ObjectIdFieldConsumer.
 String getObjectIdFieldSupplierAsmClassName()
          ASM class name for ObjectIdFieldSupplier.
 Class getObjectIdFieldSupplierClass()
          Class for ObjectIdFieldSupplier.
 String getObjectIdFieldSupplierDescriptor()
          Descriptor for ObjectIdFieldSupplier.
 String getPersistableAsmClassName()
          ASM class name for Persistable.
 Class getPersistableClass()
          Class for the Persistable interface.
 String getPersistableDescriptor()
          Descriptor for javax.jdo.spi.PersistenceCapable.
 String getPersistableSuperclassFieldName()
          Field name of PersistenceCapableSuperclass
 String getPersistableSuperclassInitMethodName()
          Method name for PersistableSuperclassInit
 String getPersistenceManagerAsmClassName()
          ASM class name for PersistenceManager.
 Class getPersistenceManagerClass()
          Class for the PersistenceManager interface.
 String getPersistenceManagerDescriptor()
          Descriptor for javax.jdo.PersistenceManager.
 String getPreSerializeMethodName()
          Method name of PreSerialize
 byte[] getPrimaryKeyClassBytes()
          Accessor for the primary-key class bytes (if generating a PK).
 String getProvideFieldMethodName()
          Method name of ProvideField
 String getProvideFieldsMethodName()
          Method name of ProvideFields
 String getReplaceDetachedStateMethodName()
          Method name of ReplaceDetachedState.
 String getReplaceFieldMethodName()
          Method name of ReplaceField
 String getReplaceFieldsMethodName()
          Method name of ReplaceFields.
 String getReplaceFlagsMethodName()
          Method name of ReplaceFlags.
 String getReplaceStateManagerMethodName()
          Method name of ReplaceStateManager.
 String getSerialVersionUidFieldName()
          Field name of serialVersionUID
 String getSetMethodPrefixMethodName()
          Prefix for method names for setXXX.
 String getShortIdentityDescriptor()
          Descriptor for ShortIdentity.
 String getSingleFieldIdentityDescriptor(String oidClassName)
          Accessor for the descriptor for a SingleFieldIdentity type.
 String getStateManagerAsmClassName()
          ASM class name for StateManager.
 Class getStateManagerClass()
          Class for the StateManager interface.
 String getStateManagerDescriptor()
          Descriptor for javax.jdo.spi.StateManager.
 String getStateManagerFieldName()
          Field name of StateManager
 String getStringIdentityDescriptor()
          Descriptor for StringIdentity.
 String getSuperCloneMethodName()
          Method name for SuperClone
 String getTypeDescriptorForSingleFieldIdentityGetKey(String oidClassName)
          Method to return the type descriptor for the key of the provided single-field identity class name.
 String getTypeNameForUseWithSingleFieldIdentity(String oidClassName)
          Convenience method to give the method type name for a singleFieldIdentity class name.
protected  void initialiseFieldsList()
          Method to initialise the list of fields to add.
protected  void initialiseMethodsList()
          Method to initialise the list of methods to add.
static boolean useFrames()
           
 boolean validate()
          Validate whether the class is enhanced.
 
Methods inherited from class org.datanucleus.enhancer.AbstractClassEnhancer
getClassLoaderResolver, getClassMetaData, getFieldsList, getMetaDataManager, getMethodsList, hasOption, initialise, isPersistenceCapable, requiresDetachable, save, setOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCALISER_CORE

protected static final org.datanucleus.util.Localiser LOCALISER_CORE

ASM_API_VERSION

public static final int ASM_API_VERSION
Version of the ASM API to use (introduced in ASM v4 to aid backward compatibility).

See Also:
Constant Field Values

FN_StateManager

public static final String FN_StateManager
See Also:
Constant Field Values

FN_Flag

public static final String FN_Flag
See Also:
Constant Field Values

FN_FieldNames

public static final String FN_FieldNames
See Also:
Constant Field Values

FN_FieldTypes

public static final String FN_FieldTypes
See Also:
Constant Field Values

FN_FieldFlags

public static final String FN_FieldFlags
See Also:
Constant Field Values

FN_PersistableSuperclass

public static final String FN_PersistableSuperclass
See Also:
Constant Field Values

FN_InheritedFieldCount

public static final String FN_InheritedFieldCount
See Also:
Constant Field Values

FN_DetachedState

public static final String FN_DetachedState
See Also:
Constant Field Values

FN_SerialVersionUID

public static final String FN_SerialVersionUID
See Also:
Constant Field Values

MN_GetterPrefix

public static final String MN_GetterPrefix
See Also:
Constant Field Values

MN_SetterPrefix

public static final String MN_SetterPrefix
See Also:
Constant Field Values

MN_FieldNamesInitMethod

public static final String MN_FieldNamesInitMethod
See Also:
Constant Field Values

MN_FieldTypesInitMethod

public static final String MN_FieldTypesInitMethod
See Also:
Constant Field Values

MN_FieldFlagsInitMethod

public static final String MN_FieldFlagsInitMethod
See Also:
Constant Field Values

MN_GetObjectId

public static final String MN_GetObjectId
See Also:
Constant Field Values

MN_GetTransactionalObjectId

public static final String MN_GetTransactionalObjectId
See Also:
Constant Field Values

MN_GetVersion

public static final String MN_GetVersion
See Also:
Constant Field Values

MN_IsDetached

public static final String MN_IsDetached
See Also:
Constant Field Values

MN_IsDetachedInternal

public static final String MN_IsDetachedInternal
See Also:
Constant Field Values

MN_IsDeleted

public static final String MN_IsDeleted
See Also:
Constant Field Values

MN_IsDirty

public static final String MN_IsDirty
See Also:
Constant Field Values

MN_IsNew

public static final String MN_IsNew
See Also:
Constant Field Values

MN_IsPersistent

public static final String MN_IsPersistent
See Also:
Constant Field Values

MN_IsTransactional

public static final String MN_IsTransactional
See Also:
Constant Field Values

MN_GetPersistenceManager

public static final String MN_GetPersistenceManager
See Also:
Constant Field Values

MN_PreSerialize

public static final String MN_PreSerialize
See Also:
Constant Field Values

MN_GetInheritedFieldCount

public static final String MN_GetInheritedFieldCount
See Also:
Constant Field Values

MN_SuperClone

public static final String MN_SuperClone
See Also:
Constant Field Values

MN_GetManagedFieldCount

public static final String MN_GetManagedFieldCount
See Also:
Constant Field Values

MN_PersistableSuperclassInit

public static final String MN_PersistableSuperclassInit
See Also:
Constant Field Values

MN_LoadClass

public static final String MN_LoadClass
See Also:
Constant Field Values

MN_CopyField

public static final String MN_CopyField
See Also:
Constant Field Values

MN_CopyFields

public static final String MN_CopyFields
See Also:
Constant Field Values

MN_CopyKeyFieldsFromObjectId

public static final String MN_CopyKeyFieldsFromObjectId
See Also:
Constant Field Values

MN_CopyKeyFieldsToObjectId

public static final String MN_CopyKeyFieldsToObjectId
See Also:
Constant Field Values

MN_ProvideField

public static final String MN_ProvideField
See Also:
Constant Field Values

MN_ProvideFields

public static final String MN_ProvideFields
See Also:
Constant Field Values

MN_ReplaceField

public static final String MN_ReplaceField
See Also:
Constant Field Values

MN_ReplaceFields

public static final String MN_ReplaceFields
See Also:
Constant Field Values

MN_ReplaceFlags

public static final String MN_ReplaceFlags
See Also:
Constant Field Values

MN_ReplaceStateManager

public static final String MN_ReplaceStateManager
See Also:
Constant Field Values

MN_ReplaceDetachedState

public static final String MN_ReplaceDetachedState
See Also:
Constant Field Values

MN_MakeDirty

public static final String MN_MakeDirty
See Also:
Constant Field Values

MN_MakeDirtyDetached

public static final String MN_MakeDirtyDetached
See Also:
Constant Field Values

MN_NewInstance

public static final String MN_NewInstance
See Also:
Constant Field Values

MN_NewObjectIdInstance

public static final String MN_NewObjectIdInstance
See Also:
Constant Field Values

CL_Detachable

public static final Class CL_Detachable

CL_Persistable

public static final Class CL_Persistable

CL_ObjectIdFieldConsumer

public static final Class CL_ObjectIdFieldConsumer

CL_ObjectIdFieldSupplier

public static final Class CL_ObjectIdFieldSupplier

CL_PersistenceManager

public static final Class CL_PersistenceManager

CL_StateManager

public static final Class CL_StateManager

CN_JDOHelper

public static final String CN_JDOHelper

CN_JDOImplHelper

public static final String CN_JDOImplHelper

CN_JDOFatalInternalException

public static final String CN_JDOFatalInternalException

CN_DetachedFieldAccessException

public static final String CN_DetachedFieldAccessException

ACN_StateManager

public static final String ACN_StateManager

ACN_PersistenceManager

public static final String ACN_PersistenceManager

ACN_Persistable

public static final String ACN_Persistable

ACN_Detachable

public static final String ACN_Detachable

ACN_ObjectIdFieldConsumer

public static final String ACN_ObjectIdFieldConsumer

ACN_ObjectIdFieldSupplier

public static final String ACN_ObjectIdFieldSupplier

ACN_DetachedFieldAccessException

public static final String ACN_DetachedFieldAccessException

ACN_FatalInternalException

public static final String ACN_FatalInternalException

ACN_Helper

public static final String ACN_Helper

ACN_ImplHelper

public static final String ACN_ImplHelper

CD_ByteIdentity

public static final String CD_ByteIdentity

CD_CharIdentity

public static final String CD_CharIdentity

CD_IntIdentity

public static final String CD_IntIdentity

CD_LongIdentity

public static final String CD_LongIdentity

CD_ShortIdentity

public static final String CD_ShortIdentity

CD_StringIdentity

public static final String CD_StringIdentity

CD_ObjectIdentity

public static final String CD_ObjectIdentity

CD_StateManager

public static final String CD_StateManager

CD_PersistenceManager

public static final String CD_PersistenceManager

CD_PersistenceCapable

public static final String CD_PersistenceCapable

CD_Detachable

public static final String CD_Detachable

CD_ObjectIdFieldConsumer

public static final String CD_ObjectIdFieldConsumer

CD_ObjectIdFieldSupplier

public static final String CD_ObjectIdFieldSupplier

CD_String

public static final String CD_String

CD_Object

public static final String CD_Object

inputResourceName

protected String inputResourceName
Resource name of the input class (only when the class exists in a class file).


inputBytes

protected byte[] inputBytes
Bytes of the input class (only when enhancing generated classes with no class file).


cls

protected final Class cls
Class that is being enhanced.


classBytes

protected byte[] classBytes
Bytes of the class (after enhancing).


pkClassBytes

protected byte[] pkClassBytes
Bytes for any auto-generated PK class (if generated during enhancement).


asmClassName

protected String asmClassName
ASM Class name for this class (replace . with /).


classDescriptor

protected String classDescriptor
Class descriptor for this class.

Constructor Detail

ASMClassEnhancer

public ASMClassEnhancer(org.datanucleus.metadata.ClassMetaData cmd,
                        org.datanucleus.ClassLoaderResolver clr,
                        org.datanucleus.metadata.MetaDataManager mmgr)
Constructor for an enhancer for the class. The class is assumed to be in the CLASSPATH.

Parameters:
cmd - MetaData for the class to be enhanced
clr - ClassLoader resolver
mmgr - MetaData manager

ASMClassEnhancer

public ASMClassEnhancer(org.datanucleus.metadata.ClassMetaData cmd,
                        org.datanucleus.ClassLoaderResolver clr,
                        org.datanucleus.metadata.MetaDataManager mmgr,
                        byte[] classBytes)
Constructor for an enhancer to enhance a class defined by the provided bytes.

Parameters:
cmd - MetaData for the class to be enhanced
clr - ClassLoader resolver
mmgr - MetaData manager
classBytes - Bytes of the class to enhance
Method Detail

getClassNameForFileName

public static String getClassNameForFileName(String filename)
Convenience accessor for the class name that is stored in a particular class.

Parameters:
filename - Name of the file
Returns:
The class name

useFrames

public static boolean useFrames()

getClassEnhanced

public Class getClassEnhanced()
Accessor for the class being enhanced.

Returns:
Class being enhanced

getASMClassName

public String getASMClassName()
Accessor for the ASM class name

Returns:
ASM class name

getClassDescriptor

public String getClassDescriptor()
Accessor for the class descriptor for the class being enhanced

Returns:
class descriptor

initialiseMethodsList

protected void initialiseMethodsList()
Method to initialise the list of methods to add.

Specified by:
initialiseMethodsList in class AbstractClassEnhancer

initialiseFieldsList

protected void initialiseFieldsList()
Method to initialise the list of fields to add.

Specified by:
initialiseFieldsList in class AbstractClassEnhancer

enhance

public boolean enhance()
Method to enhance a classes definition.

Returns:
Whether it was enhanced with no errors

getClassBytes

public byte[] getClassBytes()
Accessor for the class bytes. Only has relevance to be called after enhance().

Returns:
The class bytes

getPrimaryKeyClassBytes

public byte[] getPrimaryKeyClassBytes()
Accessor for the primary-key class bytes (if generating a PK). Only has relevance to be called after enhance().

Returns:
The primary-key class bytes

validate

public boolean validate()
Description copied from interface: ClassEnhancer
Validate whether the class is enhanced.

Returns:
Return true if already enhanced class.

checkClassIsEnhanced

protected boolean checkClassIsEnhanced(boolean logErrors)
Convenience method to return if a class is enhanced.

Parameters:
logErrors - Whether to log any errors (missing methods etc) as errors (otherwise info/debug)
Returns:
Whether the class is enhanced

getStateManagerFieldName

public String getStateManagerFieldName()
Description copied from interface: ClassEnhancer
Field name of StateManager


getFlagsFieldName

public String getFlagsFieldName()
Description copied from interface: ClassEnhancer
Field name of Flags


getFieldNamesFieldName

public String getFieldNamesFieldName()
Description copied from interface: ClassEnhancer
Field name of FieldNames


getFieldTypesFieldName

public String getFieldTypesFieldName()
Description copied from interface: ClassEnhancer
Field name of FieldTypes


getFieldFlagsFieldName

public String getFieldFlagsFieldName()
Description copied from interface: ClassEnhancer
Field name of FieldFlags


getPersistableSuperclassFieldName

public String getPersistableSuperclassFieldName()
Description copied from interface: ClassEnhancer
Field name of PersistenceCapableSuperclass


getInheritedFieldCountFieldName

public String getInheritedFieldCountFieldName()
Description copied from interface: ClassEnhancer
Field name of FieldCount


getDetachedStateFieldName

public String getDetachedStateFieldName()
Description copied from interface: ClassEnhancer
Field name of DetachedState


getSerialVersionUidFieldName

public String getSerialVersionUidFieldName()
Description copied from interface: ClassEnhancer
Field name of serialVersionUID


getFieldNamesInitMethodName

public String getFieldNamesInitMethodName()
Description copied from interface: ClassEnhancer
Method name for initialising FieldNames


getFieldTypesInitMethodName

public String getFieldTypesInitMethodName()
Description copied from interface: ClassEnhancer
Method name for initialising FieldTypes


getFieldFlagsInitMethodName

public String getFieldFlagsInitMethodName()
Description copied from interface: ClassEnhancer
Method name for initialising FieldFlags


getGetObjectIdMethodName

public String getGetObjectIdMethodName()
Description copied from interface: ClassEnhancer
Method name for object id accessor


getGetTransactionalObjectIdMethodName

public String getGetTransactionalObjectIdMethodName()
Description copied from interface: ClassEnhancer
Method name for transactional object id accessor


getGetVersionMethodName

public String getGetVersionMethodName()
Description copied from interface: ClassEnhancer
Method name for version accessor


getIsDetachedMethodName

public String getIsDetachedMethodName()
Description copied from interface: ClassEnhancer
Method name of IsDetached


getIsDetachedInternalMethodName

public String getIsDetachedInternalMethodName()
Description copied from interface: ClassEnhancer
Method name of IsDetachedInternal


getIsDeletedMethodName

public String getIsDeletedMethodName()
Description copied from interface: ClassEnhancer
Method name of IsDeleted


getIsDirtyMethodName

public String getIsDirtyMethodName()
Description copied from interface: ClassEnhancer
Method name of IsDirty


getIsNewMethodName

public String getIsNewMethodName()
Description copied from interface: ClassEnhancer
Method name of IsNew


getIsPersistentMethodName

public String getIsPersistentMethodName()
Description copied from interface: ClassEnhancer
Method name of IsPersistent


getIsTransactionalMethodName

public String getIsTransactionalMethodName()
Description copied from interface: ClassEnhancer
Method name of IsTransactional


getGetPersistenceManagerMethodName

public String getGetPersistenceManagerMethodName()
Description copied from interface: ClassEnhancer
Method name of GetPersistenceManager


getPreSerializeMethodName

public String getPreSerializeMethodName()
Description copied from interface: ClassEnhancer
Method name of PreSerialize


getGetInheritedFieldCountMethodName

public String getGetInheritedFieldCountMethodName()
Description copied from interface: ClassEnhancer
Method name for GetInheritedFieldCount


getSuperCloneMethodName

public String getSuperCloneMethodName()
Description copied from interface: ClassEnhancer
Method name for SuperClone


getGetManagedFieldCountMethodName

public String getGetManagedFieldCountMethodName()
Description copied from interface: ClassEnhancer
Method name for GetManagedFieldCount


getPersistableSuperclassInitMethodName

public String getPersistableSuperclassInitMethodName()
Description copied from interface: ClassEnhancer
Method name for PersistableSuperclassInit


getLoadClassMethodName

public String getLoadClassMethodName()
Description copied from interface: ClassEnhancer
Method name of LoadClass


getCopyFieldMethodName

public String getCopyFieldMethodName()
Description copied from interface: ClassEnhancer
Method name of CopyField


getCopyFieldsMethodName

public String getCopyFieldsMethodName()
Description copied from interface: ClassEnhancer
Method name of CopyFields


getCopyKeyFieldsFromObjectIdMethodName

public String getCopyKeyFieldsFromObjectIdMethodName()
Description copied from interface: ClassEnhancer
Method name of CopyFieldsFromObjectId


getCopyKeyFieldsToObjectIdMethodName

public String getCopyKeyFieldsToObjectIdMethodName()
Description copied from interface: ClassEnhancer
Method name of CopyFieldsToObjectId


getProvideFieldMethodName

public String getProvideFieldMethodName()
Description copied from interface: ClassEnhancer
Method name of ProvideField


getProvideFieldsMethodName

public String getProvideFieldsMethodName()
Description copied from interface: ClassEnhancer
Method name of ProvideFields


getReplaceFieldMethodName

public String getReplaceFieldMethodName()
Description copied from interface: ClassEnhancer
Method name of ReplaceField


getReplaceFieldsMethodName

public String getReplaceFieldsMethodName()
Description copied from interface: ClassEnhancer
Method name of ReplaceFields.


getReplaceFlagsMethodName

public String getReplaceFlagsMethodName()
Description copied from interface: ClassEnhancer
Method name of ReplaceFlags.


getReplaceStateManagerMethodName

public String getReplaceStateManagerMethodName()
Description copied from interface: ClassEnhancer
Method name of ReplaceStateManager.


getReplaceDetachedStateMethodName

public String getReplaceDetachedStateMethodName()
Description copied from interface: ClassEnhancer
Method name of ReplaceDetachedState.


getMakeDirtyMethodName

public String getMakeDirtyMethodName()
Description copied from interface: ClassEnhancer
Method name of MakeDirty.


getMakeDirtyDetachedMethodName

public String getMakeDirtyDetachedMethodName()
Description copied from interface: ClassEnhancer
Method name of MakeDirtyDetached.


getNewInstanceMethodName

public String getNewInstanceMethodName()
Description copied from interface: ClassEnhancer
Method name of NewInstance.


getNewObjectIdInstanceMethodName

public String getNewObjectIdInstanceMethodName()
Description copied from interface: ClassEnhancer
Method name of NewObjectIdInstance.


getGetMethodPrefixMethodName

public String getGetMethodPrefixMethodName()
Description copied from interface: ClassEnhancer
Prefix for method names for getXXX.


getSetMethodPrefixMethodName

public String getSetMethodPrefixMethodName()
Description copied from interface: ClassEnhancer
Prefix for method names for setXXX.


getHelperClassName

public String getHelperClassName()
Description copied from interface: ClassEnhancer
Class name of Helper


getImplHelperClassName

public String getImplHelperClassName()
Description copied from interface: ClassEnhancer
Class name of ImplHelper


getFatalInternalExceptionClassName

public String getFatalInternalExceptionClassName()
Description copied from interface: ClassEnhancer
Class name of FatalInternalException


getDetachedFieldAccessExceptionClassName

public String getDetachedFieldAccessExceptionClassName()
Description copied from interface: ClassEnhancer
Class name of DetachedFieldAccessException


getStateManagerAsmClassName

public String getStateManagerAsmClassName()
Description copied from interface: ClassEnhancer
ASM class name for StateManager.


getPersistenceManagerAsmClassName

public String getPersistenceManagerAsmClassName()
Description copied from interface: ClassEnhancer
ASM class name for PersistenceManager.


getPersistableAsmClassName

public String getPersistableAsmClassName()
Description copied from interface: ClassEnhancer
ASM class name for Persistable.


getDetachableAsmClassName

public String getDetachableAsmClassName()
Description copied from interface: ClassEnhancer
ASM class name for Detachable.


getObjectIdFieldConsumerAsmClassName

public String getObjectIdFieldConsumerAsmClassName()
Description copied from interface: ClassEnhancer
ASM class name for ObjectIdFieldConsumer.


getObjectIdFieldSupplierAsmClassName

public String getObjectIdFieldSupplierAsmClassName()
Description copied from interface: ClassEnhancer
ASM class name for ObjectIdFieldSupplier.


getDetachedFieldAccessExceptionAsmClassName

public String getDetachedFieldAccessExceptionAsmClassName()
Description copied from interface: ClassEnhancer
ASM class name for DetachedFieldAccessException.


getFatalInternalExceptionAsmClassName

public String getFatalInternalExceptionAsmClassName()
Description copied from interface: ClassEnhancer
ASM class name for FatalInternalException.


getHelperAsmClassName

public String getHelperAsmClassName()
Description copied from interface: ClassEnhancer
ASM class name for Helper.


getImplHelperAsmClassName

public String getImplHelperAsmClassName()
Description copied from interface: ClassEnhancer
ASM class name for ImplHelper.


getByteIdentityDescriptor

public String getByteIdentityDescriptor()
Description copied from interface: ClassEnhancer
Descriptor for ByteIdentity.


getCharIdentityDescriptor

public String getCharIdentityDescriptor()
Description copied from interface: ClassEnhancer
Descriptor for CharIdentity.


getIntIdentityDescriptor

public String getIntIdentityDescriptor()
Description copied from interface: ClassEnhancer
Descriptor for IntIdentity.


getLongIdentityDescriptor

public String getLongIdentityDescriptor()
Description copied from interface: ClassEnhancer
Descriptor for LongIdentity.


getShortIdentityDescriptor

public String getShortIdentityDescriptor()
Description copied from interface: ClassEnhancer
Descriptor for ShortIdentity.


getStringIdentityDescriptor

public String getStringIdentityDescriptor()
Description copied from interface: ClassEnhancer
Descriptor for StringIdentity.


getObjectIdentityDescriptor

public String getObjectIdentityDescriptor()
Description copied from interface: ClassEnhancer
Descriptor for ObjectIdentity.


getStateManagerDescriptor

public String getStateManagerDescriptor()
Description copied from interface: ClassEnhancer
Descriptor for javax.jdo.spi.StateManager.


getPersistenceManagerDescriptor

public String getPersistenceManagerDescriptor()
Description copied from interface: ClassEnhancer
Descriptor for javax.jdo.PersistenceManager.


getPersistableDescriptor

public String getPersistableDescriptor()
Description copied from interface: ClassEnhancer
Descriptor for javax.jdo.spi.PersistenceCapable.


getDetachableDescriptor

public String getDetachableDescriptor()
Description copied from interface: ClassEnhancer
Descriptor for javax.jdo.spi.Detachable.


getSingleFieldIdentityDescriptor

public String getSingleFieldIdentityDescriptor(String oidClassName)
Accessor for the descriptor for a SingleFieldIdentity type.

Parameters:
oidClassName - Name of the SingleFieldIdentity class
Returns:
The descriptor of the SingleFieldIdentity type

getTypeDescriptorForSingleFieldIdentityGetKey

public String getTypeDescriptorForSingleFieldIdentityGetKey(String oidClassName)
Description copied from interface: ClassEnhancer
Method to return the type descriptor for the key of the provided single-field identity class name.

Parameters:
oidClassName - Single-field identity class name
Returns:
The type descriptor for the key

getTypeNameForUseWithSingleFieldIdentity

public String getTypeNameForUseWithSingleFieldIdentity(String oidClassName)
Description copied from interface: ClassEnhancer
Convenience method to give the method type name for a singleFieldIdentity class name. Used for aaaCopyKeyFields[To/From]ObjectId and defines the "type name" used for things like storeXXXField.

Parameters:
oidClassName - Name of the single field identity class
Returns:
Name for the method

getObjectIdFieldConsumerDescriptor

public String getObjectIdFieldConsumerDescriptor()
Description copied from interface: ClassEnhancer
Descriptor for ObjectIdFieldConsumer.


getObjectIdFieldSupplierDescriptor

public String getObjectIdFieldSupplierDescriptor()
Description copied from interface: ClassEnhancer
Descriptor for ObjectIdFieldSupplier.


getPersistenceManagerClass

public Class getPersistenceManagerClass()
Description copied from interface: ClassEnhancer
Class for the PersistenceManager interface.


getStateManagerClass

public Class getStateManagerClass()
Description copied from interface: ClassEnhancer
Class for the StateManager interface.


getPersistableClass

public Class getPersistableClass()
Description copied from interface: ClassEnhancer
Class for the Persistable interface.


getDetachableClass

public Class getDetachableClass()
Description copied from interface: ClassEnhancer
Class for the Detachable interface.


getObjectIdFieldSupplierClass

public Class getObjectIdFieldSupplierClass()
Description copied from interface: ClassEnhancer
Class for ObjectIdFieldSupplier.


getObjectIdFieldConsumerClass

public Class getObjectIdFieldConsumerClass()
Description copied from interface: ClassEnhancer
Class for ObjectIdFieldConsumer.


getObjectIdentityClass

public Class getObjectIdentityClass()
Description copied from interface: ClassEnhancer
Class for ObjectIdentity.



Copyright © 2012. All Rights Reserved.