xdoclet.modules.ejb.session

Class SessionTagsHandler

public class SessionTagsHandler extends EjbTagsHandler

Version: $Revision: 1.13 $

Author: Ara Abrahamian (ara_e@email.com)

UNKNOWN: Oct 16, 2001 namespace = "EjbSession"

Method Summary
voidforAllSessionBeans(String template)
Evaluates the body block for each EJBean derived from SessionBean.
voidforAllStatefulSessionBeans(String template)
Evaluates the body block for each EJBean derived from SessionBean which is stateful.
voidforAllStatelessSessionBeans(String template)
Evaluates the body block for each EJBean derived from SessionBean which is stateless.
static StringgetSessionClassFor(XClass clazz)
Gets the SessionClassFor attribute of the SessionTagsHandler class
protected static StringgetSessionClassPattern()
Gets the SessionClassPattern attribute of the SessionTagsHandler class
voidifNotStatefulSession(String template)
Evaluate the body block if current class is not of a stateful session bean type.
voidifNotStatelessSession(String template)
Evaluate the body block if current class is not of an stateless session bean type.
voidifStatefulSession(String template)
Evaluate the body block if current class is of an stateful session bean type.
voidifStatelessSession(String template)
Evaluate the body block if current class is of an stateless session bean type.
static booleanisSession(XClass clazz)
Returns true if clazz is a session bean, false otherwise.
booleanisStatefulSession(XClass clazz)
Returns true if clazz is a stateful session bean, false otherwise.
booleanisStatelessSession(XClass clazz)
Returns true if clazz is a stateless session bean, false otherwise.
StringsessionClass()
Returns the name of generated session class.

Method Detail

forAllSessionBeans

public void forAllSessionBeans(String template)
Evaluates the body block for each EJBean derived from SessionBean.

Parameters: template The body of the block tag

Throws: XDocletException

See Also: SessionTagsHandler

UNKNOWN: type = "block"

forAllStatefulSessionBeans

public void forAllStatefulSessionBeans(String template)
Evaluates the body block for each EJBean derived from SessionBean which is stateful.

Parameters: template The body of the block tag

Throws: XDocletException

See Also: SessionTagsHandler

UNKNOWN: type = "block"

forAllStatelessSessionBeans

public void forAllStatelessSessionBeans(String template)
Evaluates the body block for each EJBean derived from SessionBean which is stateless.

Parameters: template The body of the block tag

Throws: XDocletException

See Also: SessionTagsHandler

UNKNOWN: type = "block"

getSessionClassFor

public static String getSessionClassFor(XClass clazz)
Gets the SessionClassFor attribute of the SessionTagsHandler class

Parameters: clazz Describe what the parameter does

Returns: The SessionClassFor value

getSessionClassPattern

protected static String getSessionClassPattern()
Gets the SessionClassPattern attribute of the SessionTagsHandler class

Returns: The SessionClassPattern value

ifNotStatefulSession

public void ifNotStatefulSession(String template)
Evaluate the body block if current class is not of a stateful session bean type.

Parameters: template The body of the block tag

Throws: XDocletException

See Also: SessionTagsHandler

UNKNOWN: type = "block"

ifNotStatelessSession

public void ifNotStatelessSession(String template)
Evaluate the body block if current class is not of an stateless session bean type.

Parameters: template The body of the block tag

Throws: XDocletException

See Also: SessionTagsHandler

UNKNOWN: type = "block"

ifStatefulSession

public void ifStatefulSession(String template)
Evaluate the body block if current class is of an stateful session bean type.

Parameters: template The body of the block tag

Throws: XDocletException

See Also: SessionTagsHandler

UNKNOWN: type = "block"

ifStatelessSession

public void ifStatelessSession(String template)
Evaluate the body block if current class is of an stateless session bean type.

Parameters: template The body of the block tag

Throws: XDocletException

See Also: SessionTagsHandler

UNKNOWN: type = "block"

isSession

public static boolean isSession(XClass clazz)
Returns true if clazz is a session bean, false otherwise.

Parameters: clazz Description of Parameter

Returns: The Session value

isStatefulSession

public boolean isStatefulSession(XClass clazz)
Returns true if clazz is a stateful session bean, false otherwise. Entity type is determined by looking at the ejb:bean's type parameter.

Parameters: clazz Description of Parameter

Returns: The StatefulSession value

Throws: XDocletException

isStatelessSession

public boolean isStatelessSession(XClass clazz)
Returns true if clazz is a stateless session bean, false otherwise. Entity type is determined by looking at the ejb:bean's type parameter.

Parameters: clazz Description of Parameter

Returns: The StatelessSession value

Throws: XDocletException

sessionClass

public String sessionClass()
Returns the name of generated session class.

Returns: The name of generated session class.

Throws: XDocletException

UNKNOWN: type = "content"