xdoclet.modules.ejb.dao

Class DaoTagsHandler

public class DaoTagsHandler extends EjbTagsHandler

Version: $Revision: 1.5 $

Author: Andrew Stevens

UNKNOWN: February 8, 2002 namespace = "EjbDao"

Method Summary
StringdaoClass(Properties attributes)
Returns the full qualified dao class name for the bean
static StringgetDaoClassFor(XClass clazz)
Similar to InterfaceTagsHandler.
protected static StringgetDaoClassPattern()
Gets the DaoClassPattern attribute of the DaoTagsHandler class
voidifDaoMethod(String template)
Evaluates the body block if current method is a DAO method.
voidifUsingDao(String template)
Evaluate the body block if ejb.dao tag present and DAO subtask being used.
static booleanisDaoMethod(XMethod method)
Returns true if method should be added to the DAO, false otherwise.

Method Detail

daoClass

public String daoClass(Properties attributes)
Returns the full qualified dao class name for the bean

Parameters: attributes The attributes of the template tag

Returns: DAO class name

Throws: XDocletException

UNKNOWN: type = "content"

getDaoClassFor

public static String getDaoClassFor(XClass clazz)
Similar to InterfaceTagsHandler. Relies on the ejb.dao tag, which has the following relevant properties:

Parameters: clazz Description of Parameter

Returns: The DAO value

getDaoClassPattern

protected static String getDaoClassPattern()
Gets the DaoClassPattern attribute of the DaoTagsHandler class

Returns: The DaoClassPattern value

ifDaoMethod

public void ifDaoMethod(String template)
Evaluates the body block if current method is a DAO method.

Parameters: template The body of the block tag

Throws: XDocletException

See Also: isDaoMethod

UNKNOWN: type = "block"

ifUsingDao

public void ifUsingDao(String template)
Evaluate the body block if ejb.dao tag present and DAO subtask being used.

Parameters: template

Throws: XDocletException

UNKNOWN: type = "block"

isDaoMethod

public static boolean isDaoMethod(XMethod method)
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.

Parameters: method XMethod to be evaluated

Returns: Whether to include in the DAO

Throws: XDocletException