projects
/
mir.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
1.1 restoration
[mir.git]
/
source
/
mir
/
storage
/
StorageObject.java
diff --git
a/source/mir/storage/StorageObject.java
b/source/mir/storage/StorageObject.java
index
62617e2
..
5f4ecc9
100755
(executable)
--- a/
source/mir/storage/StorageObject.java
+++ b/
source/mir/storage/StorageObject.java
@@
-35,6
+35,7
@@
import java.sql.SQLException;
import java.sql.Statement;
import java.util.List;
import java.util.Map;
import java.sql.Statement;
import java.util.List;
import java.util.Map;
+import java.io.InputStream;
import mir.entity.Entity;
import mir.entity.EntityList;
import mir.entity.Entity;
import mir.entity.EntityList;
@@
-65,11
+66,10
@@
public interface StorageObject {
*/
public int deleteByWhereClause(String aWhereClause) throws StorageObjectFailure;
*/
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;
public void update(Entity a) throws StorageObjectFailure;
@@
-81,7
+81,7
@@
public interface StorageObject {
public String getTableName();
public String getTableName();
- public Connection
getPooledC
on() throws StorageObjectFailure;
+ public Connection
obtainConnecti
on() throws StorageObjectFailure;
public ResultSet executeSql(Statement a, String sql) throws StorageObjectFailure, SQLException;
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 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;
}
}