public class EnhancementTask extends org.apache.tools.ant.Task implements EnhancementContext
hbm.xml mappings as well as complete orm.xml mappings. This is
just a PoC though...Managed| Constructor and Description |
|---|
EnhancementTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFileset(org.apache.tools.ant.types.FileSet set) |
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)
Does the given class define any lazy loadable attributes?
|
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)
Determine if a field is lazy loadable.
|
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. |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void addFileset(org.apache.tools.ant.types.FileSet set)
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionpublic ClassLoader getLoadingClassLoader()
EnhancementContextPersistenceUnitInfo.getNewTempClassLoader()getLoadingClassLoader in interface EnhancementContextpublic boolean isEntityClass(javassist.CtClass classDescriptor)
EnhancementContextisEntityClass 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)
EnhancementContextisCompositeClass 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)
EnhancementContextdoDirtyCheckingInline 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)
EnhancementContexthasLazyLoadableAttributes in interface EnhancementContextclassDescriptor - The class to checkpublic boolean isLazyLoadable(javassist.CtField field)
EnhancementContextisLazyLoadable in interface EnhancementContextfield - The field to checktrue if the field is lazy loadable; false otherwise.public boolean isPersistentField(javassist.CtField ctField)
EnhancementContextisPersistentField 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 checktrue 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.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.