dataMostSuperObjectClass
public String dataMostSuperObjectClass()
throws xdoclet.XDocletException
Returns the data-object class name highest in the hierarchy of derived beans. Because of possible inheritance
between entity bean, the type of the generated getData method must be the one of the most super class of the
current entity bean. The current Data class must extend the corresponding super Data class.
- The data-object class name highest in the hierarchy of derived beans.
xdoclet.XDocletException
-
dataObjectClass
public String dataObjectClass()
throws xdoclet.XDocletException
Returns data-object class name for the bean.
- The data-object class name for the bean.
xdoclet.XDocletException
-
dataObjectClassNameFromInterfaceName
public String dataObjectClassNameFromInterfaceName()
throws xdoclet.XDocletException
Return the dataobject class name from interface name.
- the data-object class name
xdoclet.XDocletException
-
extendsFrom
public String extendsFrom()
throws xdoclet.XDocletException
Returns the name of the class dataobject class extends.
- The name of generated PK class.
xdoclet.XDocletException
-
forAllSuper
protected void forAllSuper(String template,
String methodName)
throws xdoclet.XDocletException
Browse all super classes and search for a special method to generate it in the current CMP/BMP class.
template
- The body of the block tagmethodName
- Description of Parameter
xdoclet.XDocletException
-
forAllSuperSetData
public void forAllSuperSetData(String template)
throws xdoclet.XDocletException
Evaluates the body block for each setData method.
template
- The body of the block tag
xdoclet.XDocletException
-
forAllSuper(java.lang.String,java.lang.String)
generateDataObjectClass
public String generateDataObjectClass()
throws xdoclet.XDocletException
- Description of the Returned Value
xdoclet.XDocletException
-
generateDataObjectClass
public static String generateDataObjectClass(XClass clazz)
Used by dataMostSuperObjectClass() to get the data object's full qualified class name. If name and package
parameters of ejb:data-object defined, theire values are used, otherwise defaults are used.
clazz
- Description of Parameter
- Description of the Returned Value
getCurrentDataObjectClassname
public static String getCurrentDataObjectClassname()
- the current data-object class name
getDataMostSuperObjectClass
public static String getDataMostSuperObjectClass(XClass clazz)
throws xdoclet.XDocletException
clazz
- Description of Parameter
- the full qualified data-object class name
xdoclet.XDocletException
-
getDataObjectClassFor
public static String getDataObjectClassFor(XClass clazz)
clazz
- Description of Parameter
- the full qualified data-object class name
getDataObjectClassPattern
protected static String getDataObjectClassPattern()
- the data-object class pattern
getDependentClassFor
protected String getDependentClassFor(XClass clazz,
String type)
throws xdoclet.XDocletException
Gets the DependentClassFor attribute of the DataObjectTagsHandler object
- getDependentClassFor in interface EjbTagsHandler
clazz
- Describe what the parameter doestype
- Describe what the parameter does
- The DependentClassFor value
xdoclet.XDocletException
-
hasCustomBulkData
public static boolean hasCustomBulkData(XClass clazz)
clazz
- Description of Parameter
- Description of the Returned Value
hasDataEquals
protected static boolean hasDataEquals(XClass clazz)
throws xdoclet.XDocletException
- True if there is a Data Container equals() needed because user set tag "data-equals"
to true or ommitted it
xdoclet.XDocletException
-
ifIsAggregate
public void ifIsAggregate(String template)
throws xdoclet.XDocletException
Evaluate the body block if ejb:aggregate is defined for current getter method, denoting that the specified getter
method returns an aggregated object.
template
- The body of the block tag
xdoclet.XDocletException
-
ifIsNotAggregate(java.lang.String)
, isAggregate(xjavadoc.XMethod)
ifIsNotAggregate
public void ifIsNotAggregate(String template)
throws xdoclet.XDocletException
Evaluate the body block if ejb:aggregate is not defined for current getter method.
template
- The body of the block tag
xdoclet.XDocletException
-
ifIsAggregate(java.lang.String)
, isAggregate(xjavadoc.XMethod)
ifIsWithDataContainer
public void ifIsWithDataContainer(String pTemplate)
throws xdoclet.XDocletException
Evaluate the body block if ejb:data-object container="true". If not defined then default is true.
pTemplate
- Description of Parameter
xdoclet.XDocletException
-
ifIsWithDataMethod
public void ifIsWithDataMethod(String pTemplate)
throws xdoclet.XDocletException
Evaluate the body block if ejb:data-object setdata="true". If not defined then default is true.
pTemplate
- Description of Parameter
xdoclet.XDocletException
-
ifIsWithDataContainer(java.lang.String)
isAggregate
protected boolean isAggregate(XMethod method)
throws xdoclet.XDocletException
Returns true if method has ejb:aggregate, false otherwise.
method
- Description of Parameter
xdoclet.XDocletException
-
isDataContentEquals
public void isDataContentEquals(String pTemplate)
throws xdoclet.XDocletException
pTemplate
- Description of Parameter
xdoclet.XDocletException
-
isDataObjectMethod
public static boolean isDataObjectMethod(XMethod method)
throws xdoclet.XDocletException
Gets the DataObjectMethod attribute of the DataObjectTagsHandler class
method
- Describe what the parameter does
- The DataObjectMethod value
xdoclet.XDocletException
-
isGenerationNeeded
public static boolean isGenerationNeeded(XClass clazz)
Returns true if ejb:data-object defined and generate param is true, false if not true.
clazz
- Description of Parameter
- Description of the Returned Value
parentDataObjectClass
public String parentDataObjectClass()
throws xdoclet.XDocletException
- Description of the Returned Value
xdoclet.XDocletException
-
putDataObjectClassnames
public static void putDataObjectClassnames(String name,
String value)
name
- Description of Parametervalue
- Description of Parameter
setCurrentDataObjectClassname
public static void setCurrentDataObjectClassname(String current_data_object_classname)
current_data_object_classname
-