EjbPk

Implemented in class xdoclet.modules.ejb.entity.PkTagsHandler.

Block Tags:

ifHasPrimkeyField (block template)

Process the tag body if the current class has a defined primkey-field.

ifIsPrimkeyField (block template)

Process the tag body if the current method is a getter or setter for the primkey-field.

ifIsNotPrimkeyField (block template)

Process the tag body if the current method is not a getter or setter for the primkey-field.

ifDoesntHavePrimkeyField (block template)

Process the tag body if the current class doesn't have a defined primkey-field.

ifHasPrimkeySetter (block template)

Process the tag body if the current class has defined a setter for the primkey-field.

ifIsPkField (block template)

Evaluates the body if the current method is a primary key field.

forAllBeans (block template)

Evaluates the body block for each EJBean derived from one of the three EJB types: EntityBean, SessionBean or MessageDrivenBean.

ifIsAConcreteEJBean (block template)

Evaluates the body block if current bean is a concrete bean meaning the generate parameter of ejb:bean is either not specified or equals to "true", otherwise the bean is just an abstract base class bean not meant to be used as a EJBean but serve as the base for other EJBeans.

ifLocalEjb (block template)

ifRemoteEjb (block template)

ifServiceEndpointEjb (block template)

ifNotLocalEjb (block template)

ifNotRemoteEjb (block template)

ifNotServiceEndpointEjb (block template)

Content templates:

primkeyField (content template)

Returns the primkey-field defined for the current class.

primkeyGetter (content template)

Returns the getter name for the primkey-field.

primkeySetter (content template)

Returns the setter name for the primkey-field.

pkClass (content template)

Returns the name of generated PK class for the current class.

pkClassForEjbJarXml (content template)

Returns the name of PK class for the current class.

pkfieldList (content template)

Returns a string containing comma-separated list of primary key fields with their types.

pkfieldListFrom (content template)

Returns a string containing comma-separated list of primary key fields getting from an object specified as parameter.

name The name of the variable to get the fields from.

extendsFrom (content template)

Returns the name of the class pk class extends.

ejbRefName (content template)

Returns the name of EJB ref.

ejbRefName (content template)

Returns the name of EJB ref.

ejbName (content template)

Returns the name of current EJB bean.

[prefixWithEjbSlash] Specifies whether to prefix it with ejb/ or not. False by default.

Valid Values = {true,false}

ejbExternalRefName (content template)

Returns the name of EJB ref.

symbolicClassName (content template)

Returns the symbolic name of the current class. For an EJBean it's the value of ejb:bean's name parameter.

shortEjbName (content template)

Returns short version of ejbName(). Example: "foo.bar.MyBean" ->"MyBean", "foo/bar/MyBean" ->"MyBean"

beanType (content template)

Returns Bean type : "Entity", "Session" or "Message Driven".

concreteFullClassName (content template)

Returns the full-qualified name of the current class's concrete class. This is the class that is generated and is derived from current class.

id (content template)

Returns unique id for current ejb.