xdoclet.modules.ejb.dao
Class DaoTagsHandler
EjbTagsHandlerxdoclet.modules.ejb.dao.DaoTagsHandler
public class DaoTagsHandler
extends EjbTagsHandler
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 -