media handling fixes, gotten rid of StorageObject, set the default method for blots...
[mir.git] / source / mircoders / entity / EntityContent.java
index 09fc32e..2b208dd 100755 (executable)
@@ -44,7 +44,7 @@ import java.util.Map;
  * 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
  *
  */
@@ -71,10 +71,10 @@ public class EntityContent extends AbstractEntity {
     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;
@@ -83,7 +83,7 @@ public class EntityContent extends AbstractEntity {
       throw new StorageObjectFailure(e);
     }
     finally {
-      storageObject.freeConnection(con,stmt);
+      database.freeConnection(con,stmt);
     }
   }