/**
  * Method to do update. This method is to be used during a transaction, otherwise use the
  * doUpdate(OrdenTrabajo) 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(OrdenTrabajo obj, Connection con) throws TorqueException {
   doUpdate(buildCriteria(obj), con);
   obj.setModified(false);
 }
 /**
  * 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 {
   BaseOrdenTrabajoPeer.doUpdate(criteria, (Connection) null);
 }