xdoclet.modules.ejb.dao
Class DaoTagsHandler
java.lang.Objectxdoclet.template.TemplateTagHandlerxdoclet.XDocletTagSupport
public class DaoTagsHandler
beanType, choosePackage, concreteFullClassName, ejbExternalRefName, ejbName, ejbRefName, ejbRefName, extendsFromFor, forAllBeans, getDependentClassFor, getDependentClassTagName, getEjb, getEjbIdFor, getEjbNameFor, getEjbSpec, getShortEjbNameFor, hasTransaction, id, ifIsAConcreteEJBean, ifLocalEjb, ifNotLocalEjb, ifNotRemoteEjb, ifNotServiceEndpointEjb, ifRemoteEjb, ifServiceEndpointEjb, isAConcreteEJBean, isEjb, isLocalEjb, isOnlyLocalEjb, isOnlyRemoteEjb, isOnlyServiceEndpointEjb, isRemoteEjb, isServiceEndpointEjb, prefixWithEjbSlash, shortEjbName, shouldTraverseSuperclassForDependentClass, symbolicClassName |
delimit, expandClassName, generate, getCurrentClass, getCurrentClassTag, getCurrentConstructor, getCurrentField, getCurrentFieldTag, getCurrentMethod, getCurrentMethodTag, getCurrentPackage, getDocletContext, getEngine, getExpandedDelimitedTagValue, getTagValue, getTagValue, getTagValue, hasHavingClassTag, hasTag, isTagValueEqual, mandatoryParamNotFound, mandatoryTemplateTagParamNotFound, modifiers, popCurrentClass, pushCurrentClass, setCurrentClass, setCurrentClassTag, setCurrentConstructor, setCurrentField, setCurrentFieldTag, setCurrentMethod, setCurrentMethodTag, setCurrentPackage |
daoClass
public String daoClass(Properties attributes)
throws xdoclet.XDocletException Returns the full qualified dao class name for the bean
attributes - The attributes of the template tag
xdoclet.XDocletException -
getDaoClassFor
public static String getDaoClassFor(XClass clazz)
Similar to
InterfaceTagsHandler.getComponentInterface(String,XClass). Relies on the ejb.dao
tag, which has the following relevant properties:
- class: The fully qualified name of the DAO class - overrides all set patterns
- pattern: The pattern to be used to determine the unqualified name of the DAO class
- package: The package the DAO is to be placed in
clazz - Description of Parameter
getDaoClassPattern
protected static String getDaoClassPattern()
Gets the DaoClassPattern attribute of the DaoTagsHandler class
- The DaoClassPattern value
ifDaoMethod
public void ifDaoMethod(String template)
throws xdoclet.XDocletException Evaluates the body block if current method is a DAO method.
template - The body of the block tag
xdoclet.XDocletException -
isDaoMethod(xjavadoc.XMethod)
ifUsingDao
public void ifUsingDao(String template)
throws xdoclet.XDocletException Evaluate the body block if ejb.dao tag present and DAO subtask being used.
xdoclet.XDocletException -
isDaoMethod
public static boolean isDaoMethod(XMethod method)
throws xdoclet.XDocletException Returns true if method should be added to the DAO, false otherwise. The method should be included if it has a
dao.call tag, unless it's a finder or create method which has already been added automatically.
method - XMethod to be evaluated
- Whether to include in the DAO
xdoclet.XDocletException -