[cvs]
expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/dbobj
AuditLogL.java
JCorporate Ltd
jcorp at jcorp2.servlets.net
Mon Jul 19 16:31:06 PDT 2004
Update of /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/dbobj
In directory jcorp2.servlets.net:/tmp/cvs-serv28508
Modified Files:
AuditLogL.java
Log Message:
added populateDefaultValues() method for it to be setup with the schema
Index: AuditLogL.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/dbobj/AuditLogL.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** AuditLogL.java 3 Jun 2003 06:12:16 -0000 1.3
--- AuditLogL.java 19 Jul 2004 23:31:04 -0000 1.4
***************
*** 128,131 ****
--- 128,159 ----
/**
+ * Populate the table with the default values
+ * @throws DBException
+ */
+ /** @todo add this method for change logging to work *RD* Mon Jul 27 2004 */
+ public synchronized void populateDefaultValues() throws DBException {
+ this.clear();
+ this.setField("AUDITLOG_CODE", "ADD");
+ if (!this.find()) {
+ setField("AUDITLOG_DES", "ADD");
+ this.add();
+ }
+ this.clear();
+ this.setField("AUDITLOG_CODE", "DEL");
+ if (!this.find()) {
+ setField("AUDITLOG_DES", "DELETE");
+ this.add();
+ }
+ this.clear();
+ this.setField("AUDITLOG_CODE", "UPT");
+ if (!this.find()) {
+ setField("AUDITLOG_DES", "UPDATE");
+ this.add();
+ }
+ }
+ /* populateDefaultValues() */
+
+
+ /**
* Standard method to create a new copy of this
* particular database object
More information about the cvs
mailing list