xdoclet.modules.ejb.entity
Class EntityFacadeSubTask
AbstractEjbCodeGeneratorSubTask
xdoclet.modules.ejb.entity.EntityFacadeSubTask
public class EntityFacadeSubTask
extends AbstractEjbCodeGeneratorSubTask
- Konstantin Pribluda (kpriblouda@yahoo.com)
- display-name = "Facade"
name = "entityfacade"
parent = "xdoclet.modules.ejb.EjbDocletTask"
DEFAULT_ENTITY_FACADE_CLASS_PATTERN
public static final String DEFAULT_ENTITY_FACADE_CLASS_PATTERN
DEFAULT_FACADE_EJB_NAME_PATTERN
public static final String DEFAULT_FACADE_EJB_NAME_PATTERN
DEFAULT_TEMPLATE_FILE
protected static final String DEFAULT_TEMPLATE_FILE
entityFacadeClassPattern
protected String entityFacadeClassPattern
A configuration parameter for specifying the entity bean facade EJB class name pattern. By default the value is
used for deciding the entity bean facade class name. {0} in the value mean current class's symbolic name which
for an EJBean is the EJB name.
entityFacadeEjbNamePattern
protected String entityFacadeEjbNamePattern
a configuration parameter for specifying facade ejb names pattern {0} means ejb name
EntityFacadeSubTask
public EntityFacadeSubTask()
engineStarted
protected void engineStarted()
throws xdoclet.XDocletException
Describe what the method does
xdoclet.XDocletException
-
getEntityFacadeClassPattern
public String getEntityFacadeClassPattern()
Returns the configuration parameter for specifying the entity bean facade class name pattern. By default the
value is used for deciding the concrete CMP entity bean class name. {0} in the value mean current class's
symbolic name which for an EJBean is the EJB name. If nothing explicitly specified by user then "{0}FacadeEJB" is
used by default.
- The EntityCmpClassPattern value
getEntityFacadeEjbNamePattern
public String getEntityFacadeEjbNamePattern()
getGeneratedFileName
protected String getGeneratedFileName(XClass clazz)
throws xdoclet.XDocletException
Gets the GeneratedFileName attribute of the EntityCmpSubTask object
clazz
- Describe what the parameter does
- The GeneratedFileName value
xdoclet.XDocletException
-
matchesGenerationRules
protected boolean matchesGenerationRules(XClass clazz)
throws xdoclet.XDocletException
clazz
- Describe what the parameter does
- Describe the return value
xdoclet.XDocletException
-
- refactor/merge this method with matchesGenerationRules from EntityBmpSubTask
setEjbNamePattern
public void setEjbNamePattern(String new_pattern)
setPattern
public void setPattern(String new_pattern)
Sets the Pattern attribute of the EntityFacadeSubTask object
new_pattern
- The new Pattern value
validateOptions
public void validateOptions()
throws xdoclet.XDocletException
Called to validate configuration parameters.
xdoclet.XDocletException
-