|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--xdoclet.template.TemplateTagHandler
|
+--xdoclet.XDocletTagSupport
|
+--xdoclet.ejb.tags.EjbTagsHandler
|
+--xdoclet.ejb.tags.EntityTagsHandler
|
+--xdoclet.ejb.tags.CmpTagsHandler
|
+--xdoclet.ejb.tags.PersistentTagsHandler
| Fields inherited from class xdoclet.ejb.tags.EjbTagsHandler |
LOCAL_SUFFIX |
| Fields inherited from class xdoclet.XDocletTagSupport |
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER |
| Constructor Summary | |
PersistentTagsHandler()
|
|
| Method Summary | |
static java.lang.String |
fieldList(com.sun.javadoc.ClassDoc clazz,
java.lang.String inclTag,
java.lang.String exclTag,
int type,
java.lang.String valueObject)
Returns comma-separated list of fields, excluding fields that have tags of exclTag list, including fields that have tags of inclTag list. |
void |
forAllPersistentFields(java.lang.String template,
java.util.Properties attributes)
Evaluates the body for each persistent field. |
protected void |
forAllPersistentMatchedFields(java.lang.String template,
java.lang.String include_tags,
java.lang.String exclude_tags,
boolean superclasses,
java.lang.String valueObject)
Generate only for all Persisted Fields matching a specific Tag or Persisted fields that do not match a specific Tag |
protected java.lang.String[] |
getPkFieldsInHeader()
Returns an array containing ejb:pk-field tags defined in class level. |
void |
ifHasAtLeastOnePersistentField(java.lang.String template)
Evaluates the body if the class has at least one persistent field. |
void |
ifHasAtLeastOnePkField(java.lang.String template)
Evaluates the body if the class has at least one primary key field. |
static boolean |
isPersistentField(com.sun.javadoc.MethodDoc method)
Returns true if method is a persistent field, false otherwise. |
static boolean |
isPersistentFieldMethod()
|
static boolean |
isPkField(com.sun.javadoc.MethodDoc method)
Returns true if method is a primary key field, false otherwise. |
static boolean |
isPkFieldInHeader(com.sun.javadoc.ClassDoc clazz)
Returns true if clazz has ejb:pk-field defined. |
static boolean |
isValueObjectField(com.sun.javadoc.ClassDoc clazz,
com.sun.javadoc.MethodDoc method,
java.lang.String valueObject)
|
java.lang.String |
persistentfieldList()
Returns a string containing comma-separated list of persistent fields with their types. |
java.lang.String |
persistentfieldList(java.util.Properties attributes)
Returns a string containing comma-separated list of persistent fields with their types. |
java.lang.String |
persistentfieldNameValueList()
Returns a string containing comma-separated list of persistent fields without their types in fieldname="value" format. |
java.lang.String |
persistentfieldNameValueList(java.util.Properties attributes)
Returns a string containing comma-separated list of persistent fields without their types in fieldname="value" format. |
| Methods inherited from class xdoclet.ejb.tags.CmpTagsHandler |
entityCmpClass, forAllCmpEntityBeans, forAllCmpFields, getEntityCmpClassFor, getEntityCmpClassPattern, ifEntityIsCmp, ifNotUsingCmp2, ifUsingCmp2, isEntityCmp, isUsingCmp2Impl |
| Methods inherited from class xdoclet.ejb.tags.EntityTagsHandler |
forAllEntityBeans, ifEntity, isEntity, persistenceType, reentrant |
| Methods inherited from class xdoclet.template.TemplateTagHandler |
generate, getContext, getEngine, getParser, setContext, setEngine, setParser |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PersistentTagsHandler()
| Method Detail |
public static boolean isPersistentField(com.sun.javadoc.MethodDoc method)
throws XDocletException
method - Description of ParameterXDocletException - Description of Exception
public static boolean isValueObjectField(com.sun.javadoc.ClassDoc clazz,
com.sun.javadoc.MethodDoc method,
java.lang.String valueObject)
throws XDocletException
public static boolean isPkField(com.sun.javadoc.MethodDoc method)
throws XDocletException
method - Description of ParameterXDocletException - Description of Exception
public static boolean isPkFieldInHeader(com.sun.javadoc.ClassDoc clazz)
throws XDocletException
clazz - Description of ParameterXDocletException - Description of Exceptionpublic static boolean isPersistentFieldMethod()
public static java.lang.String fieldList(com.sun.javadoc.ClassDoc clazz,
java.lang.String inclTag,
java.lang.String exclTag,
int type,
java.lang.String valueObject)
throws XDocletException
inclTag - Fields that have at least of the tags of this
comma-separated list are used.exclTag - Fields that don't have all of the tags of this
comma-separated list are used.type - Type of return (0: comma separated list - 1:
field=value comma separated list - 2: getter comma sperated list)clazz - Description of ParametervalueObject - XDocletException - Description of Exception
public void ifHasAtLeastOnePkField(java.lang.String template)
throws XDocletException
template - The body of the block tagXDocletException - Description of Exception
public void ifHasAtLeastOnePersistentField(java.lang.String template)
throws XDocletException
template - The body of the block tagXDocletException - Description of Exception
public void forAllPersistentFields(java.lang.String template,
java.util.Properties attributes)
throws XDocletException
template - The body of the block tagattributes - Description of ParameterXDocletException - Description of ExceptionforAllPersistentMatchedFields(java.lang.String,java.lang.String,java.lang.String,boolean,java.lang.String)
public java.lang.String persistentfieldList(java.util.Properties attributes)
throws XDocletException
attributes - XDocletException - Description of ExceptionfieldList(com.sun.javadoc.ClassDoc,java.lang.String,java.lang.String,int,java.lang.String)
public java.lang.String persistentfieldNameValueList(java.util.Properties attributes)
throws XDocletException
attributes - XDocletException - Description of ExceptionfieldList(com.sun.javadoc.ClassDoc,java.lang.String,java.lang.String,int,java.lang.String)
public java.lang.String persistentfieldList()
throws XDocletException
XDocletException - Description of ExceptionfieldList(com.sun.javadoc.ClassDoc,java.lang.String,java.lang.String,int,java.lang.String)
public java.lang.String persistentfieldNameValueList()
throws XDocletException
XDocletException - Description of ExceptionfieldList(com.sun.javadoc.ClassDoc,java.lang.String,java.lang.String,int,java.lang.String)
protected java.lang.String[] getPkFieldsInHeader()
throws XDocletException
XDocletException - Description of Exception
protected void forAllPersistentMatchedFields(java.lang.String template,
java.lang.String include_tags,
java.lang.String exclude_tags,
boolean superclasses,
java.lang.String valueObject)
throws XDocletException
template - The body of the block taginclude_tags - only fields having these tagsexclude_tags - only fields not having these tagssuperclasses - traverse superclasses toovalueObject - XDocletException - Description of ExceptionforAllPersistentFields(java.lang.String,java.util.Properties)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||