|
|||||||||
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.PkTagsHandler
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 | |
PkTagsHandler()
|
Method Summary | |
static boolean |
classHasPrimkeyField(com.sun.javadoc.ClassDoc clazz)
Returns true if the clazz has a primkey-field defined on the ejb:bean tag (opposed to having a separate PK class) |
java.lang.String |
extendsFrom()
Returns the name of the class pk class extends. |
protected java.lang.String |
getDependentClassFor(com.sun.javadoc.ClassDoc clazz,
java.lang.String type)
sub-classes which deal with patternized class names return a reasonable value |
protected static java.lang.String |
getEntityPkClassPattern()
|
static java.lang.String |
getPkClassFor(com.sun.javadoc.ClassDoc clazz)
|
static java.lang.String |
getPkClassForEjbJarXmlFor(com.sun.javadoc.ClassDoc clazz)
|
static java.lang.String |
getPrimkeyFieldFor(com.sun.javadoc.ClassDoc clazz)
|
static java.lang.String |
getPrimkeyGetterFor(com.sun.javadoc.ClassDoc clazz)
|
static java.lang.String |
getPrimkeySetterFor(com.sun.javadoc.ClassDoc clazz)
|
void |
ifDoesntHavePrimkeyField(java.lang.String template,
java.util.Properties attributes)
Process the tag body if the current class doesn't have a defined primkey-field |
void |
ifHasPrimkeyField(java.lang.String template,
java.util.Properties attributes)
Process the tag body if the current class has a defined primkey-field |
void |
ifHasPrimkeySetter(java.lang.String template,
java.util.Properties attributes)
Process the tag body if the current class has defined a setter for the primkey-field. |
void |
ifIsNotPrimkeyField(java.lang.String template,
java.util.Properties attributes)
Process the tag body if the current method is not a getter or setter for the primkey-field |
void |
ifIsPkField(java.lang.String template)
Evaluates the body if the current method is a primary key field. |
void |
ifIsPrimkeyField(java.lang.String template,
java.util.Properties attributes)
Process the tag body if the current method is a getter or setter for the primkey-field |
static boolean |
isMethodPrimkeyField(com.sun.javadoc.ClassDoc clazz,
com.sun.javadoc.MethodDoc method)
|
java.lang.String |
pkClass()
Returns the name of generated PK class for the current class. |
java.lang.String |
pkClassForEjbJarXml()
Returns the name of PK class for the current class. |
java.lang.String |
pkfieldList()
Returns a string containing comma-separated list of primary key fields with their types. |
java.lang.String |
pkfieldListFrom(java.util.Properties attributes)
Returns a string containing comma-separated list of primary key fields getting from an object specified as parameter. |
java.lang.String |
primkeyField(java.util.Properties attributes)
Returns the primkey-field defined for the current class |
java.lang.String |
primkeyGetter(java.util.Properties attributes)
Returns the getter name for the primkey-field |
java.lang.String |
primkeySetter(java.util.Properties attributes)
Returns the setter name for the primkey-field |
java.lang.String |
serialVersionUID()
|
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 PkTagsHandler()
Method Detail |
public static java.lang.String getPrimkeyFieldFor(com.sun.javadoc.ClassDoc clazz) throws XDocletException
clazz
- The class to look intoXDocletException
- if the class doesn't have a primkey-fieldpublic static boolean isMethodPrimkeyField(com.sun.javadoc.ClassDoc clazz, com.sun.javadoc.MethodDoc method) throws XDocletException
clazz
- The class to look intomethod
- The method to check for primkey-fieldXDocletException
- public static java.lang.String getPrimkeyGetterFor(com.sun.javadoc.ClassDoc clazz) throws XDocletException
public static java.lang.String getPrimkeySetterFor(com.sun.javadoc.ClassDoc clazz) throws XDocletException
public static java.lang.String getPkClassFor(com.sun.javadoc.ClassDoc clazz) throws XDocletException
public static java.lang.String getPkClassForEjbJarXmlFor(com.sun.javadoc.ClassDoc clazz) throws XDocletException
public static boolean classHasPrimkeyField(com.sun.javadoc.ClassDoc clazz) throws XDocletException
clazz
- The class to look into.XDocletException
- protected static java.lang.String getEntityPkClassPattern()
public void ifHasPrimkeyField(java.lang.String template, java.util.Properties attributes) throws XDocletException
template
- attributes
- XDocletException
- public void ifIsPrimkeyField(java.lang.String template, java.util.Properties attributes) throws XDocletException
template
- attributes
- XDocletException
- public void ifIsNotPrimkeyField(java.lang.String template, java.util.Properties attributes) throws XDocletException
template
- attributes
- XDocletException
- public void ifDoesntHavePrimkeyField(java.lang.String template, java.util.Properties attributes) throws XDocletException
template
- attributes
- XDocletException
- public java.lang.String primkeyField(java.util.Properties attributes) throws XDocletException
attributes
- XDocletException
- public java.lang.String primkeyGetter(java.util.Properties attributes) throws XDocletException
attributes
- XDocletException
- public java.lang.String primkeySetter(java.util.Properties attributes) throws XDocletException
attributes
- XDocletException
- public void ifHasPrimkeySetter(java.lang.String template, java.util.Properties attributes) throws XDocletException
template
- attributes
- XDocletException
- public java.lang.String pkClass() throws XDocletException
XDocletException
- Description of Exceptionpublic java.lang.String pkClassForEjbJarXml() throws XDocletException
XDocletException
- Description of Exceptionpublic java.lang.String serialVersionUID() throws XDocletException
XDocletException
- Description of Exceptionpublic java.lang.String pkfieldList() throws XDocletException
XDocletException
- Description of ExceptionPersistentTagsHandler.fieldList(com.sun.javadoc.ClassDoc,java.lang.String,java.lang.String,int,java.lang.String)
public java.lang.String pkfieldListFrom(java.util.Properties attributes) throws XDocletException
attributes
- XDocletException
- Description of ExceptionPersistentTagsHandler.fieldList(com.sun.javadoc.ClassDoc,java.lang.String,java.lang.String,int,java.lang.String)
public java.lang.String extendsFrom() throws XDocletException
XDocletException
- Description of Exceptionpublic void ifIsPkField(java.lang.String template) throws XDocletException
template
- The body of the block tagXDocletException
- Description of Exceptionprotected java.lang.String getDependentClassFor(com.sun.javadoc.ClassDoc clazz, java.lang.String type) throws XDocletException
EjbTagsHandler
getDependentClassFor
in class EjbTagsHandler
xdoclet.ejb.tags.EjbTagsHandler
clazz
- the classtype
- type value used for view-type of remote/localXDocletException
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |