You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by th...@apache.org on 2003/03/16 13:02:22 UTC
cvs commit: db-ojb/src/test/org/apache/ojb repository.dtd
thma 2003/03/16 04:02:22
Modified: src/test/org/apache/ojb repository.dtd
Log:
add support for materialization-method and factory-method attributes on class-descriptor
Revision Changes Path
1.36 +10 -2 db-ojb/src/test/org/apache/ojb/repository.dtd
Index: repository.dtd
===================================================================
RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/repository.dtd,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- repository.dtd 26 Feb 2003 19:49:04 -0000 1.35
+++ repository.dtd 16 Mar 2003 12:02:22 -0000 1.36
@@ -329,10 +329,16 @@
This class will be used as the RowReader implementation used to
materialize instances of the persistent class.
-
-
The accept-locks attribute specifies whether implicit locking should
propagate to this class. Currently relevant for the ODMG layer only.
+
+ The optional initialization-method specifies a no-argument instance
+ method that is invoked after reading an instnace from a database row.
+ It can be used to do initialization and validations.
+
+ The optional factory-method specifies a static no-argument method
+ that is to be used instead of a no argument constructor.
+ Important note: this feature is not yet implemented.
-->
<!ATTLIST class-descriptor
class ID #REQUIRED
@@ -344,6 +350,8 @@
row-reader CDATA #IMPLIED
extends IDREF #IMPLIED
accept-locks (true | false) "true"
+ initialization-method CDATA #IMPLIED
+ factory-method CDATA #IMPLIED
>