import java.util.List;
import java.util.Map;
-import freemarker.template.SimpleHash;
-import freemarker.template.SimpleList;
-
import mir.entity.Entity;
import mir.entity.EntityList;
abstract public boolean delete(String id) throws StorageObjectFailure;
/**
+ * Deletes entities based on a where clause
+ *
+ * @param aWhereClause
+ * @return
+ * @throws StorageObjectFailure
+ */
+ public int deleteByWhereClause(String aWhereClause) throws StorageObjectFailure;
+
+ /**
* Dokumentation siehe Database.java
* @return ArrayList
* @exception StorageObjectException
/**
* Dokumentation siehe Database.java
- * @return SimpleHash
- */
- abstract public SimpleHash getHashData();
-
- /**
- * Dokumentation siehe Database.java
* @return Connection
* @exception StorageObjectException
*/
abstract public ResultSet executeSql(Statement a, String sql) throws StorageObjectFailure, SQLException;
/**
- *
- * @param sql
- * @return
- * @throws StorageObjectFailure
- * @throws SQLException
- */
- abstract public ResultSet executeSql(String sql) throws StorageObjectFailure, SQLException;
-
- /**
* Executes 1 sql statement and returns the results as a <code>List</code> of <code>Map</code>s
*
* @param sql
abstract public String executeFreeSingleValueSql(String sql) throws StorageObjectFailure, StorageObjectExc ;
/**
- * Dokumentation siehe Database.java
* @param con
* @param stmt
*/
- abstract public void freeConnection(Connection con, Statement stmt)
- throws StorageObjectFailure;
-
- /**
- * Dokumentation siehe Database.java
- * @return
- */
- abstract public SimpleList getPopupData() throws StorageObjectFailure;
+ abstract public void freeConnection(Connection con, Statement stmt) throws StorageObjectFailure;
- abstract public int executeUpdate(Statement a, String sql)
- throws StorageObjectFailure, SQLException;
+ abstract public int executeUpdate(Statement a, String sql) throws StorageObjectFailure, SQLException;
- abstract public int executeUpdate(String sql)
- throws StorageObjectFailure, SQLException;
+ abstract public int executeUpdate(String sql) throws StorageObjectFailure, SQLException;
- abstract public int getSize(String where)
- throws SQLException, StorageObjectFailure;
+ abstract public int getSize(String where) throws SQLException, StorageObjectFailure;
}