예제 #1
0
 /**
  * Method to do update. This method is to be used during a transaction, otherwise use the
  * doUpdate(TScreenTab) 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(TScreenTab 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 {
   BaseTScreenTabPeer.doUpdate(criteria, (Connection) null);
 }