[cvs] expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dataobjects/jdbc JDBCExecutor.java

Larry Hamel lhamel at jcorp2.servlets.net
Wed May 5 23:31:39 PDT 2004


Update of /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dataobjects/jdbc
In directory jcorp2.servlets.net:/tmp/cvs-serv14138/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dataobjects/jdbc

Modified Files:
	JDBCExecutor.java 
Log Message:
add comment


Index: JDBCExecutor.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dataobjects/jdbc/JDBCExecutor.java,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -d -r1.48 -r1.49
*** JDBCExecutor.java	18 Feb 2004 05:41:03 -0000	1.48
--- JDBCExecutor.java	6 May 2004 06:31:37 -0000	1.49
***************
*** 101,105 ****
   * away from the DBObject class and work strictly with the DataObject Interface.
   * @author Michael Rimov
-  * @version $Revision$ on  $Date$
   * @since Expresso 5.0
   */
--- 101,104 ----
***************
*** 414,419 ****
              DBConnection localConnection = theObject.getLocalConnection();
  
!             /* build an update statement - again we must call haveKeyFields */
!             /* to be sure we have all of the keys */
              if (!theObject.haveAllKeys()) {
                  throw new DataException("(" + getClass().getName() +
--- 413,417 ----
              DBConnection localConnection = theObject.getLocalConnection();
  
!             /* build an update statement - be sure we have all of the keys */
              if (!theObject.haveAllKeys()) {
                  throw new DataException("(" + getClass().getName() +
***************
*** 421,425 ****
              }
  
- 
              theObject.checkAllRefsPublic();
  
--- 419,422 ----
***************
*** 448,454 ****
                              // Only include changed fields in the update if required
                              if (valueObject.getDataField(oneFieldName).isValueSet() &&
!                                 theObject.getStatus().equals(DataObject.STATUS_NEW)) {
!                                 ;
! 
                              } else {
                                  if (!valueObject.getDataField(oneFieldName).isChanged()) {
--- 445,450 ----
                              // Only include changed fields in the update if required
                              if (valueObject.getDataField(oneFieldName).isValueSet() &&
!                                         theObject.getStatus().equals(DataObject.STATUS_NEW)) {
!                                 ; // noop
                              } else {
                                  if (!valueObject.getDataField(oneFieldName).isChanged()) {
***************
*** 1423,1427 ****
          return true;
      }
- 
  
  }
--- 1419,1422 ----



More information about the cvs mailing list