User: vharcq
Date: 02/04/16 16:01:05
Modified: core/docs ejbdoclet.html ejbdoclet_toc.html jboss.html
Log:
ejb:persistence table-name="abc" on CLASS Level
ejb:persistence column-name="abc" jdbc-type="VARCHAR" sql-type="VARCHAR(50)" on
METHOD Level
JBoss CMP and Jaws implement them keeping backward compatibility (see AccountBean)
Thanks to Marcus :)
Revision Changes Path
1.45 +39 -0 xdoclet/core/docs/ejbdoclet.html
Index: ejbdoclet.html
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/docs/ejbdoclet.html,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -w -r1.44 -r1.45
--- ejbdoclet.html 15 Apr 2002 22:47:31 -0000 1.44
+++ ejbdoclet.html 16 Apr 2002 23:01:05 -0000 1.45
@@ -839,6 +839,20 @@
</TR>
</TABLE>
+<H4><A NAME="persistence">@ejb:persistence</A></H4>
+<P>The <CODE>@ejb:persistence</CODE> tag provides information about the persistence
+of an CMP Entity bean</P>
+<TABLE BORDER="1" CELLPADDING="7">
+ <TR VALIGN="top">
+ <TD>Parameter</TD>
+ <TD>Usage</TD>
+ </TR>
+ <TR VALIGN="top">
+ <TD><I>table-name</I>: String</TD>
+ <TD>Declare the table-name to which the CMP will ba mapped.</TD>
+ </TR>
+</TABLE>
+
<H4><A NAME="home">@ejb:home</A></H4>
<P>The <CODE>@ejb:home</CODE> tag provides information about an Entity or
Session Bean's home interface. It is not applicable for Message-driven beans.
@@ -1474,6 +1488,31 @@
</TABLE>
<H3><A NAME="method-level-tags">Method level Tags</A></H3>
+
+<H4><A NAME="persistence-method">@ejb:persistence</A></H4>
+<P>The <CODE>@ejb:persistence</CODE> tag provides information about the persistence
+of an CMP Entity bean's fields.</P>
+<TABLE BORDER="1" CELLPADDING="7">
+ <TR VALIGN="top">
+ <TD>Parameter</TD>
+ <TD>Usage</TD>
+ </TR>
+ <TR VALIGN="top">
+ <TD><I>column-name</I>: String</TD>
+ <TD>Declare the column-name to which the CMP field will be mapped.</TD>
+ </TR>
+ <TR VALIGN="top">
+ <TD><I>jdbc-type</I>: String</TD>
+ <TD>Declare the JDBC Type. Its value must be one of the fields of
java.sql.Types (e.g. BIT, CHAR...).
+ This jdbc type will be used by the CMP provider to determine which method to
call on
+ PreparedStatement and ResultSet for INSERT / UPDATE / SELECT queries. </TD>
+ </TR>
+ <TR VALIGN="top">
+ <TD><I>sql-type</I>: String</TD>
+ <TD>Declare the actual type of the field in the database. This value will only
be used when
+ te CMP container creates your table (if possible).</TD>
+ </TR>
+</TABLE>
<H4><A NAME="relation">@ejb:relation</A></H4>
<P>Define a relationship for an Entity bean. Applicable only to EJB2.0 CMP2.x
1.26 +2 -0 xdoclet/core/docs/ejbdoclet_toc.html
Index: ejbdoclet_toc.html
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/docs/ejbdoclet_toc.html,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -w -r1.25 -r1.26
--- ejbdoclet_toc.html 12 Apr 2002 07:08:26 -0000 1.25
+++ ejbdoclet_toc.html 16 Apr 2002 23:01:05 -0000 1.26
@@ -54,6 +54,8 @@
<UL>
<LI><A HREF="ejbdoclet.html#aggregate">@ejb:aggregate</A>
<LI><A HREF="ejbdoclet.html#bean">@ejb:bean</A>
+ <LI><A HREF="ejbdoclet.html#persistence">@ejb:persistence [class]</A>
+ <LI><A HREF="ejbdoclet.html#persistence-method">@ejb:persistence [method]</A>
<LI><A HREF="ejbdoclet.html#create-method">@ejb:create-method</A>
<LI><A HREF="ejbdoclet.html#dao">@ejb:dao</A>
<LI><A HREF="ejbdoclet.html#data-object">@ejb:data-object</A>
1.13 +59 -8 xdoclet/core/docs/jboss.html
Index: jboss.html
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/docs/jboss.html,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -w -r1.12 -r1.13
--- jboss.html 31 Jan 2002 01:23:22 -0000 1.12
+++ jboss.html 16 Apr 2002 23:01:05 -0000 1.13
@@ -251,7 +251,58 @@
</tr>
</table>
-<h4><a name="table-name">@jboss:table-name</a></h4>
+<h4><a name="table-name">@jboss:persistence</a></h4>
+
+<p>The Jaws/Jboss CMP deployment descriptor specific entries.</p>
+
+<table border="1" cellpadding="7">
+ <tr valign="top">
+ <td>Parameter</td>
+ <td>Usage</td>
+ </tr>
+ <tr valign="top">
+ <td><i>[datasource]</i>: String</td>
+ <td> </td>
+ </tr>
+ <tr valign="top">
+ <td><i>[datasource-mapping]</i>: String</td>
+ <td> </td>
+ </tr>
+ <tr valign="top">
+ <td><i>[create]</i>: String</td>
+ <td> </td>
+ </tr>
+ <tr valign="top">
+ <td><i>[remove]</i>: String</td>
+ <td> </td>
+ </tr>
+ <tr valign="top">
+ <td><i>[tuned]</i>: String</td>
+ <td> </td>
+ </tr>
+ <tr valign="top">
+ <td><i>[read-only]</i>: String</td>
+ <td> </td>
+ </tr>
+ <tr valign="top">
+ <td><i>[time-out]</i>: String</td>
+ <td> </td>
+ </tr>
+ <tr valign="top">
+ <td><i>[pk-constraint]</i>: String</td>
+ <td> </td>
+ </tr>
+ <tr valign="top">
+ <td><i>[select-for-update]</i>: String</td>
+ <td>JBoss 2.4 / JBoss-Jaws 3.0</td>
+ </tr>
+ <tr valign="top">
+ <td><i>[row-locking]</i>: String</td>
+ <td>JBoss-CMP 3.0</td>
+ </tr>
+</table>
+
+<h4><a name="table-name">[DEPRECATED in favour of @ejb:persistence]
@jboss:table-name</a></h4>
<p>The table to be used by this bean is called <i>table-name</i>.
Applicable to entity beans using JAWS for CMP.</p>
@@ -267,7 +318,7 @@
</tr>
</table>
-<h4><a name="create-table">@jboss:create-table</a></h4>
+<h4><a name="create-table">[DEPRECATED in favour of @jboss:persistence]
@jboss:create-table</a></h4>
<a>Create the table if it doesn't exist. Applicable to entity beans using JAWS for
CMP.</a>
@@ -282,7 +333,7 @@
</tr>
</table>
-<h4><a name="remove-table">@jboss:remove-table</a></h4>
+<h4><a name="remove-table">[DEPRECATED in favour of @jboss:persistence]
@jboss:remove-table</a></h4>
<a>Remove the table when the bean is undeployed. Applicable to entity beans using
JAWS for CMP.</a>
@@ -297,7 +348,7 @@
</tr>
</table>
-<h4><a name="tuned-updates">@jboss:tuned-updates</a></h4>
+<h4><a name="tuned-updates">[DEPRECATED in favour of @jboss:persistence]
@jboss:tuned-updates</a></h4>
<p>Use tuned updates (i.e. minimize data stored on ejbStore). Applicable to entity
beans using JAWS for CMP.</p>
@@ -312,7 +363,7 @@
</tr>
</table>
-<h4><a name="time-out">@jboss:time-out</a></h4>
+<h4><a name="time-out">[DEPRECATED in favour of @jboss:persistence]
@jboss:time-out</a></h4>
<p>Time out for read-only beans. The state of the bean will be
reloaded from the database after the time out. Applicable to entity
@@ -404,7 +455,7 @@
<h3><a name="method-level-tags">Method level Tags</h3>
-<h4><a name="column-name">@jboss:column-name</a></h4>
+<h4><a name="column-name">[DEPRECATED in favour of @ejb:persistence]
@jboss:column-name</a></h4>
<p>The column name for the CMP field in the table where this bean will
be persisted. Applicable to Entity EJBs using JAWS CMP.</p>
@@ -420,7 +471,7 @@
</tr>
</table>
-<h4><a name="sql-type">@jboss:sql-type</a></h4>
+<h4><a name="sql-type">[DEPRECATED in favour of @ejb:persistence]
@jboss:sql-type</a></h4>
<p>The SQL type for the column where this CMP field will be
persisted. See your database's documentation for a list of valid
@@ -438,7 +489,7 @@
</tr>
</table>
-<h4><a name="jdbc-type">@jboss:jdbc-type</a></h4>
+<h4><a name="jdbc-type">[DEPRECATED in favour of @ejb:persistence]
@jboss:jdbc-type</a></h4>
<p>The JDBC type for the column where this CMP field will be
persisted. See the javadoc for "java.sql.Types" for a list of valid
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel