|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.hibernate.bytecode.enhance.plugins.MavenEnhancePlugin
@Mojo(name="enhance",
defaultPhase=COMPILE)
@Execute(goal="enhance",
phase=COMPILE)
public class MavenEnhancePluginThis plugin will enhance Entity objects.
| Field Summary |
|---|
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
MavenEnhancePlugin()
|
|
| Method Summary | |
|---|---|
boolean |
doDirtyCheckingInline(javassist.CtClass classDescriptor)
Should we in-line dirty checking for persistent attributes for this class? |
void |
execute()
|
ClassLoader |
getLoadingClassLoader()
Obtain access to the ClassLoader that can be used to load Class references. |
boolean |
hasLazyLoadableAttributes(javassist.CtClass classDescriptor)
|
boolean |
isCompositeClass(javassist.CtClass classDescriptor)
Does the given class name represent an embeddable/component class? |
boolean |
isEntityClass(javassist.CtClass classDescriptor)
Does the given class descriptor represent a entity class? |
boolean |
isLazyLoadable(javassist.CtField field)
|
boolean |
isMappedCollection(javassist.CtField field)
|
boolean |
isPersistentField(javassist.CtField ctField)
Does the field represent persistent state? Persistent fields will be "enhanced". |
javassist.CtField[] |
order(javassist.CtField[] persistentFields)
For fields which are persistent (according to EnhancementContext.isPersistentField(javassist.CtField)), determine the corresponding ordering
maintained within the Hibernate metamodel. |
| Methods inherited from class org.apache.maven.plugin.AbstractMojo |
|---|
getLog, getPluginContext, setLog, setPluginContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MavenEnhancePlugin()
| Method Detail |
|---|
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionpublic ClassLoader getLoadingClassLoader()
EnhancementContextPersistenceUnitInfo.getNewTempClassLoader()
getLoadingClassLoader in interface EnhancementContextpublic boolean isEntityClass(javassist.CtClass classDescriptor)
EnhancementContext
isEntityClass in interface EnhancementContextclassDescriptor - The descriptor of the class to check.
true if the class is an entity; false otherwise.public boolean isCompositeClass(javassist.CtClass classDescriptor)
EnhancementContext
isCompositeClass in interface EnhancementContextclassDescriptor - The descriptor of the class to check.
true if the class is an embeddable/component; false otherwise.public boolean doDirtyCheckingInline(javassist.CtClass classDescriptor)
EnhancementContext
doDirtyCheckingInline in interface EnhancementContextclassDescriptor - The descriptor of the class to check.
true indicates that dirty checking should be in-lined within the entity; false
indicates it should not. In-lined is more easily serializable and probably more performant.public boolean hasLazyLoadableAttributes(javassist.CtClass classDescriptor)
hasLazyLoadableAttributes in interface EnhancementContextpublic boolean isLazyLoadable(javassist.CtField field)
isLazyLoadable in interface EnhancementContextpublic boolean isPersistentField(javassist.CtField ctField)
EnhancementContext
isPersistentField in interface EnhancementContextctField - The field reference.
true if the field is ; false otherwise.public boolean isMappedCollection(javassist.CtField field)
isMappedCollection in interface EnhancementContextfield - the field to check
true if the field is mappedpublic javassist.CtField[] order(javassist.CtField[] persistentFields)
EnhancementContextEnhancementContext.isPersistentField(javassist.CtField)), determine the corresponding ordering
maintained within the Hibernate metamodel.
order in interface EnhancementContextpersistentFields - The persistent field references.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||