|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxdoclet.template.TemplateTagHandler
xdoclet.XDocletTagSupport
xdoclet.modules.ejb.EjbTagsHandler
xdoclet.modules.ejb.entity.EntityTagsHandler
xdoclet.modules.ejb.entity.CmpTagsHandler
public class 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 | |
|---|---|
java.lang.String |
dbmsColumn()
Returns the dbms column. |
java.lang.String |
dbmsTable()
Returns the table name for the current class. |
java.lang.String |
entityCmpClass()
Returns the name of generated CMP class. |
java.lang.String |
fieldName()
Returns the cmp-version 2.x compatible cmp / cmr field name for the current method. |
void |
forAllCmpEntityBeans(java.lang.String template)
Evaluates the body block for each EJBean derived from EntityBean which is CMP. |
void |
forAllCmpFields(java.lang.String template)
Evaluates the body block for each persistent field of current class (if entity CMP). |
static java.lang.String |
getEntityCmpClassFor(xjavadoc.XClass clazz)
Gets the EntityCmpClassFor attribute of the CmpTagsHandler class |
protected static java.lang.String |
getEntityCmpClassPattern()
Gets the EntityCmpClassPattern attribute of the CmpTagsHandler class |
static java.lang.String |
getFieldNameFor(xjavadoc.XMethod method)
Returns the cmp-version 2.x compatible cmp / cmr field name for the passed method. |
void |
ifEntityIsCmp(java.lang.String template)
Evaluates the body block if current class is an CMP entity bean. |
void |
ifIsPersistent(java.lang.String template)
|
void |
ifNotUsingCmp2(java.lang.String template)
Evaluate the body block if not using EJB 2.0 or using EJB 2.0 but CMP version 1.x. |
void |
ifUsingCmp2(java.lang.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 java.lang.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 java.lang.String getFieldNameFor(xjavadoc.XMethod method)
throws XDocletException
method - the method
XDocletExceptionprotected static java.lang.String getEntityCmpClassPattern()
public java.lang.String entityCmpClass()
throws XDocletException
XDocletException
public void ifUsingCmp2(java.lang.String template)
throws XDocletException
template - The body of the block tag
XDocletExceptionisUsingCmp2Impl(xjavadoc.XClass),
ifNotUsingCmp2(java.lang.String)
public void ifNotUsingCmp2(java.lang.String template)
throws XDocletException
template - The body of the block tag
XDocletExceptionisUsingCmp2Impl(xjavadoc.XClass),
ifUsingCmp2(java.lang.String)
public void ifEntityIsCmp(java.lang.String template)
throws XDocletException
template - The body of the block tag
XDocletException
public void forAllCmpEntityBeans(java.lang.String template)
throws XDocletException
template - The body of the block tag
XDocletExceptionisEntityCmp(xjavadoc.XClass)
public void forAllCmpFields(java.lang.String template)
throws XDocletException
template - The body of the block tag
XDocletExceptionisEntityCmp(xjavadoc.XClass),
PersistentTagsHandler.isPersistentField(xjavadoc.XMethod),
MethodTagsHandler.isGetter(java.lang.String)
public java.lang.String dbmsColumn()
throws XDocletException
XDocletException
public java.lang.String dbmsTable()
throws XDocletException
XDocletException
public void ifIsPersistent(java.lang.String template)
throws XDocletException
XDocletException
public java.lang.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 | |||||||||