|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object xdoclet.DocletSupport xdoclet.SubTask xdoclet.TemplateSubTask xdoclet.modules.ejb.AbstractEjbCodeGeneratorSubTask xdoclet.modules.ejb.entity.EntityBmpSubTask
Creates "entity bean classes" for BMP entity EJBs. The classes are derived from the abstract entity bean class.
Attention: To give the developer more control over when the EJB becomes dirty (data changed) there is now a
method called "makeDirty()" in the generated wrapper class. To use this please add to your EJB an abstract method
called "makeDirty" and call it when you change data w/o using the setter methods. As example you could store the Data
Object instead of storing all the attributes one by one (be aware that you have to clone the data object before
storing to avoid side effects).
Nested Class Summary |
Nested classes inherited from class xdoclet.TemplateSubTask |
TemplateSubTask.ExtentTypes, TemplateSubTask.OfType |
Field Summary | |
static String |
DEFAULT_ENTITYBMP_CLASS_PATTERN
|
protected static String |
DEFAULT_TEMPLATE_FILE
|
protected String |
entityBmpClassPattern
A configuration parameter for specifying the concrete BMP entity bean class name pattern. |
Fields inherited from class xdoclet.DocletSupport |
currentClassTag, currentFieldTag, currentMethodTag |
Constructor Summary | |
EntityBmpSubTask()
Describe what the EntityBmpSubTask constructor does |
Method Summary | |
protected void |
engineStarted()
Describe what the method does |
String |
getEntityBmpClassPattern()
Returns the configuration parameter for specifying the concrete BMP entity bean class name pattern. |
protected String |
getGeneratedFileName(xjavadoc.XClass clazz)
Gets the GeneratedFileName attribute of the EntityBmpSubTask object |
protected boolean |
matchesGenerationRules(xjavadoc.XClass clazz)
Describe what the method does |
void |
setPattern(String new_pattern)
The pattern by which the BMP implementation classes are named. |
void |
validateOptions()
Called to validate configuration parameters. |
Methods inherited from class xdoclet.SubTask |
addConfigParam, getConfigParams, getConfigParamsAsMap, getContext, getDestDir, getMergeDir, getSubTaskName, getXJavaDoc, setDestDir, setMergeDir, setSubTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String DEFAULT_ENTITYBMP_CLASS_PATTERN
protected static final String DEFAULT_TEMPLATE_FILE
protected String entityBmpClassPattern
getEntityBmpClassPattern()
Constructor Detail |
public EntityBmpSubTask()
Method Detail |
public String getEntityBmpClassPattern()
entityBmpClassPattern
public void setPattern(String new_pattern)
new_pattern
- The new Pattern valuepublic void validateOptions() throws XDocletException
validateOptions
in class TemplateSubTask
XDocletException
protected String getGeneratedFileName(xjavadoc.XClass clazz) throws XDocletException
getGeneratedFileName
in class TemplateSubTask
clazz
- Describe what the parameter does
XDocletException
protected boolean matchesGenerationRules(xjavadoc.XClass clazz) throws XDocletException
matchesGenerationRules
in class TemplateSubTask
clazz
- Describe what the parameter does
XDocletException
protected void engineStarted() throws XDocletException
engineStarted
in class TemplateSubTask
XDocletException
|
http://xdoclet.sourceforge.net/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |