* this class implements mapping of one line of the database table content
* to a java object
*
- * @version $Id: EntityContent.java,v 1.19.2.8 2005/01/09 20:37:10 zapata Exp $
+ * @version $Id: EntityContent.java,v 1.19.2.9 2005/01/23 15:36:04 zapata Exp $
* @author mir-coders group
*
*/
Connection con=null;Statement stmt=null;
String sql = "update content set is_produced='" + value + "' where id='" + getId()+"'";
try {
- con = storageObject.obtainConnection();
+ con = database.obtainConnection();
/** todo should be preparedStatement: faster!! */
stmt = con.createStatement();
- storageObject.executeUpdate(stmt,sql);
+ database.executeUpdate(stmt,sql);
}
catch (StorageObjectFailure e) {
throw e;
throw new StorageObjectFailure(e);
}
finally {
- storageObject.freeConnection(con,stmt);
+ database.freeConnection(con,stmt);
}
}