xdoclet.modules.ejb.entity

Class EntityTagsHandler


public class EntityTagsHandler
extends EjbTagsHandler

Version:
$Revision: 1.12 $
Author:
Ara Abrahamian (ara_e@email.com)
xdoclet.taghandler
namespace = "EjbEntity"
created
Oct 16, 2001

Method Summary

void
forAllEjbSelectMethods(String template)
Evaluates the body block for each ejbSelect method.
void
forAllEntityBeans(String template)
Evaluates the body block for each EJBean derived from EntityBean.
void
ifEntity(String template)
Evaluate the body block if current class is of an entity type.
static boolean
isEjbSelectMethod(XMethod method)
static boolean
isEntity(XClass clazz)
Returns true if clazz is an entity bean, false otherwise.
String
persistenceType()
Returns the persistent type of current bean.
String
reentrant()
Returns True if ejb:bean reentrant is true, False otherwise.

Method Details

forAllEjbSelectMethods

public void forAllEjbSelectMethods(String template)
            throws xdoclet.XDocletException
Evaluates the body block for each ejbSelect method.
Parameters:
template - The body of the block tag
Throws:
xdoclet.XDocletException -
See Also:
isEntity(xjavadoc.XClass)
doc.tag
type = "block"

forAllEntityBeans

public void forAllEntityBeans(String template)
            throws xdoclet.XDocletException
Evaluates the body block for each EJBean derived from EntityBean.
Parameters:
template - The body of the block tag
Throws:
xdoclet.XDocletException -
See Also:
isEntity(xjavadoc.XClass)
doc.tag
type = "block"

ifEntity

public void ifEntity(String template)
            throws xdoclet.XDocletException
Evaluate the body block if current class is of an entity type.
Parameters:
template - The body of the block tag
Throws:
xdoclet.XDocletException -
See Also:
isEntity(xjavadoc.XClass)
doc.tag
type = "block"

isEjbSelectMethod

public static boolean isEjbSelectMethod(XMethod method)

isEntity

public static boolean isEntity(XClass clazz)
Returns true if clazz is an entity bean, false otherwise.
Parameters:
clazz - Description of Parameter
Returns:
The Entity value

persistenceType

public String persistenceType()
            throws xdoclet.XDocletException
Returns the persistent type of current bean.
Returns:
"Container" or "Bean".
Throws:
xdoclet.XDocletException -
See Also:
xdoclet.modules.ejb.entity.CmpTagsHandler.isEntityCmp(xjavadoc.XClass), xdoclet.modules.ejb.entity.BmpTagsHandler.isEntityBmp(xjavadoc.XClass)
doc.tag
type = "content"

reentrant

public String reentrant()
            throws xdoclet.XDocletException
Returns True if ejb:bean reentrant is true, False otherwise. It does the case conversion trick from true to True and false to False.
Returns:
Description of the Returned Value
Throws:
xdoclet.XDocletException -
See Also:
isEntity(xjavadoc.XClass)
doc.tag
type = "content"