xdoclet.modules.ejb.dao
public class DaoTagsHandler extends EjbTagsHandler
ALL, LOCAL_SUFFIX, SERVICE_ENDPOINT, SERVICE_ENDPOINT_SUFFIX
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER
Constructor and Description |
---|
DaoTagsHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
daoClass(java.util.Properties attributes)
Returns the full qualified dao class name for the bean
|
static java.lang.String |
getDaoClassFor(xjavadoc.XClass clazz)
|
protected static java.lang.String |
getDaoClassPattern()
Gets the DaoClassPattern attribute of the DaoTagsHandler class
|
void |
ifDaoMethod(java.lang.String template)
Evaluates the body block if current method is a DAO method.
|
void |
ifUsingDao(java.lang.String template)
Evaluate the body block if ejb.dao tag present and DAO subtask being used.
|
static boolean |
isDaoMethod(xjavadoc.XMethod method)
Returns true if method should be added to the DAO, false otherwise.
|
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
getXJavaDoc, setXJavaDoc
public static java.lang.String getDaoClassFor(xjavadoc.XClass clazz)
InterfaceTagsHandler.getComponentInterface(java.lang.String, xjavadoc.XClass)
. Relies on the ejb.dao
tag, which has the following relevant properties:
clazz
- Description of Parameterpublic static boolean isDaoMethod(xjavadoc.XMethod method) throws XDocletException
method
- XMethod to be evaluatedXDocletException
protected static java.lang.String getDaoClassPattern()
public java.lang.String daoClass(java.util.Properties attributes) throws XDocletException
attributes
- The attributes of the template tagXDocletException
public void ifUsingDao(java.lang.String template) throws XDocletException
template
- XDocletException
public void ifDaoMethod(java.lang.String template) throws XDocletException
template
- The body of the block tagXDocletException
isDaoMethod(xjavadoc.XMethod)