2 * Implementiert Interface für die Speicherschicht.
3 * Bislang gibt es in der Bibliothek nur die Möglichkeit
4 * in einer Datenbank zu speichern.
11 import freemarker.template.*;
16 * Implementiert Interface für die Speicherschicht.
17 * Bislang gibt es in der Bibliothek nur die Möglichkeit
18 * in einer Datenbank zu speichern.
22 public interface StorageObject {
25 * Dokumentation siehe Database.java
28 * @exception StorageObjectException
30 abstract public Entity selectById (String id) throws StorageObjectException;
35 * Dokumentation siehe Database.java
39 * @exception StorageObjectException
41 abstract public EntityList selectByFieldValue (String aField, String aValue) throws StorageObjectException;
46 * Dokumentation siehe Database.java
49 * @exception StorageObjectException
51 abstract public EntityList selectByWhereClause (String whereClause) throws StorageObjectException;
56 * Dokumentation siehe Database.java
60 * @exception StorageObjectException
62 abstract public EntityList selectByWhereClause (String whereClause, int offset) throws StorageObjectException;
67 * Dokumentation siehe Database.java
72 * @exception StorageObjectException
74 abstract public EntityList selectByWhereClause (String whereClause, String orderBy,
75 int offset) throws StorageObjectException;
80 * Dokumentation siehe Database.java
86 * @exception StorageObjectException
88 abstract public EntityList selectByWhereClause (String whereClause, String orderBy,
89 int offset, int limit) throws StorageObjectException;
94 * Dokumentation siehe Database.java
97 * @exception StorageObjectException
99 abstract public boolean delete (String id) throws StorageObjectException;
104 * Dokumentation siehe Database.java
106 * @exception StorageObjectException
108 abstract public ArrayList getFields () throws StorageObjectException;
113 * Dokumentation siehe Database.java
115 * @exception StorageObjectException
117 abstract public int[] getTypes () throws StorageObjectException;
122 * Dokumentation siehe Database.java
124 * @exception StorageObjectException
126 abstract public ArrayList getLabels () throws StorageObjectException;
131 * Dokumentation siehe Database.java
133 * @exception StorageObjectException
135 abstract public void update (Entity a) throws StorageObjectException;
140 * Dokumentation siehe Database.java
143 * @exception StorageObjectException
145 abstract public String insert (Entity a) throws StorageObjectException;
150 * Dokumentation siehe Database.java
151 * @return Class Klasse der Entity
153 abstract public Class getEntityClass();
158 * put your documentation comment here
161 abstract public String getIdName();
166 * Dokumentation siehe Database.java
169 abstract public String getTableName();
174 * Dokumentation siehe Database.java
177 abstract public SimpleHash getHashData();
182 * Dokumentation siehe Database.java
184 * @exception StorageObjectException
186 abstract public Connection getPooledCon () throws StorageObjectException;
191 * Dokumentation siehe Database.java
195 * @exception StorageObjectException, SQLException
197 abstract public ResultSet executeSql (Statement a, String sql) throws StorageObjectException,
203 * Dokumentation siehe Database.java
207 abstract public void freeConnection(Connection con, Statement stmt);
212 * Dokumentation siehe Database.java
215 abstract public SimpleList getPopupData ();
217 abstract public int executeUpdate(Statement a, String sql) throws StorageObjectException, SQLException ;
218 abstract public int executeUpdate(String sql) throws StorageObjectException, SQLException ;
219 abstract public int getSize(String where) throws SQLException,StorageObjectException;