1.1 restoration
[mir.git] / source / mir / storage / StorageObject.java
index 62617e2..5f4ecc9 100755 (executable)
@@ -35,6 +35,7 @@ import java.sql.SQLException;
 import java.sql.Statement;
 import java.util.List;
 import java.util.Map;
+import java.io.InputStream;
 
 import mir.entity.Entity;
 import mir.entity.EntityList;
@@ -65,11 +66,10 @@ public interface StorageObject {
    */
   public int deleteByWhereClause(String aWhereClause) throws StorageObjectFailure;
 
-  public List getFields() throws StorageObjectFailure;
-
-  public int[] getTypes() throws StorageObjectFailure;
-
-  public List getLabels() throws StorageObjectFailure;
+  /**
+   * Returns a list of field names for this <code>StorageObject</code>
+   */
+  public List getFieldNames() throws StorageObjectFailure;
 
   public void update(Entity a) throws StorageObjectFailure;
 
@@ -81,7 +81,7 @@ public interface StorageObject {
 
   public String getTableName();
 
-  public Connection getPooledCon() throws StorageObjectFailure;
+  public Connection obtainConnection() throws StorageObjectFailure;
 
   public ResultSet executeSql(Statement a, String sql) throws StorageObjectFailure, SQLException;
 
@@ -113,4 +113,7 @@ public interface StorageObject {
 
   public int getSize(String mainTablePrefix, List extraTables, String where) throws SQLException, StorageObjectFailure;
 
+  public InputStream getBinaryField(String aQuery) throws SQLException, StorageObjectFailure;
+
+  public void setBinaryField(String aQuery, byte aData[]) throws StorageObjectFailure, SQLException;
 }