コード例 #1
0
 /**
  * Method to do update. This method is to be used during a transaction, otherwise use the
  * doUpdate(Exam) method. It will take care of the connection details internally.
  *
  * @param obj the data object to update in the database.
  * @param con the connection to use
  * @throws TorqueException Any exceptions caught during processing will be rethrown wrapped into a
  *     TorqueException.
  */
 public static void doUpdate(Exam obj, Connection con) throws TorqueException {
   doUpdate(buildCriteria(obj), con);
   obj.setModified(false);
 }
コード例 #2
0
 /**
  * Method to do updates.
  *
  * @param criteria object containing data that is used to create the UPDATE statement.
  * @throws TorqueException Any exceptions caught during processing will be rethrown wrapped into a
  *     TorqueException.
  */
 public static void doUpdate(Criteria criteria) throws TorqueException {
   BaseExamPeer.doUpdate(criteria, (Connection) null);
 }