|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object xdoclet.template.TemplateTagHandler xdoclet.XDocletTagSupport xdoclet.modules.ejb.EjbTagsHandler xdoclet.modules.ejb.entity.EntityTagsHandler xdoclet.modules.ejb.entity.CmpTagsHandler
Field Summary |
Fields inherited from class xdoclet.modules.ejb.EjbTagsHandler |
ALL, LOCAL_SUFFIX, SERVICE_ENDPOINT, SERVICE_ENDPOINT_SUFFIX |
Fields inherited from class xdoclet.XDocletTagSupport |
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER |
Constructor Summary | |
CmpTagsHandler()
|
Method Summary | |
String |
dbmsColumn()
Returns the dbms column. |
String |
dbmsTable()
Returns the table name for the current class. |
String |
entityCmpClass()
Returns the name of generated CMP class. |
String |
fieldName()
Returns the cmp-version 2.x compatible cmp / cmr field name for the current method. |
void |
forAllCmpEntityBeans(String template)
Evaluates the body block for each EJBean derived from EntityBean which is CMP. |
void |
forAllCmpFields(String template)
Evaluates the body block for each persistent field of current class (if entity CMP). |
static String |
getEntityCmpClassFor(xjavadoc.XClass clazz)
Gets the EntityCmpClassFor attribute of the CmpTagsHandler class |
protected static String |
getEntityCmpClassPattern()
Gets the EntityCmpClassPattern attribute of the CmpTagsHandler class |
static String |
getFieldNameFor(xjavadoc.XMethod method)
Returns the cmp-version 2.x compatible cmp / cmr field name for the passed method. |
void |
ifEntityIsCmp(String template)
Evaluates the body block if current class is an CMP entity bean. |
void |
ifIsPersistent(String template)
|
void |
ifNotUsingCmp2(String template)
Evaluate the body block if not using EJB 2.0 or using EJB 2.0 but CMP version 1.x. |
void |
ifUsingCmp2(String template)
Evaluate the body block if using EJB 2.0 and CMP version 2.x. |
static boolean |
isEntityCmp(xjavadoc.XClass clazz)
Returns true if clazz is an CMP entity bean, false otherwise. |
static boolean |
isUsingCmp2Impl(xjavadoc.XClass clazz)
Returns true if ejbspec config parameter is "2.0" and ejb:bean's cmp-version either not defined or is "2.x", false otherwise. |
Methods inherited from class xdoclet.modules.ejb.entity.EntityTagsHandler |
forAllEjbSelectMethods, forAllEntityBeans, ifEntity, isEjbSelectMethod, isEntity, persistenceType, reentrant |
Methods inherited from class xdoclet.template.TemplateTagHandler |
getXJavaDoc, setXJavaDoc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CmpTagsHandler()
Method Detail |
public static String getEntityCmpClassFor(xjavadoc.XClass clazz)
clazz
- Describe what the parameter does
public static boolean isEntityCmp(xjavadoc.XClass clazz) throws XDocletException
clazz
- Description of Parameter
XDocletException
public static boolean isUsingCmp2Impl(xjavadoc.XClass clazz) throws XDocletException
clazz
-
XDocletException
public static String getFieldNameFor(xjavadoc.XMethod method) throws XDocletException
method
- the method
XDocletException
protected static String getEntityCmpClassPattern()
public String entityCmpClass() throws XDocletException
XDocletException
public void ifUsingCmp2(String template) throws XDocletException
template
- The body of the block tag
XDocletException
isUsingCmp2Impl(xjavadoc.XClass)
,
ifNotUsingCmp2(java.lang.String)
public void ifNotUsingCmp2(String template) throws XDocletException
template
- The body of the block tag
XDocletException
isUsingCmp2Impl(xjavadoc.XClass)
,
ifUsingCmp2(java.lang.String)
public void ifEntityIsCmp(String template) throws XDocletException
template
- The body of the block tag
XDocletException
public void forAllCmpEntityBeans(String template) throws XDocletException
template
- The body of the block tag
XDocletException
isEntityCmp(xjavadoc.XClass)
public void forAllCmpFields(String template) throws XDocletException
template
- The body of the block tag
XDocletException
isEntityCmp(xjavadoc.XClass)
,
PersistentTagsHandler.isPersistentField(xjavadoc.XMethod)
,
MethodTagsHandler.isGetter(java.lang.String)
public String dbmsColumn() throws XDocletException
XDocletException
public String dbmsTable() throws XDocletException
XDocletException
public void ifIsPersistent(String template) throws XDocletException
XDocletException
public String fieldName() throws XDocletException
XDocletException
|
http://xdoclet.sourceforge.net/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |