01: /*--------------------------------------------------------------------------*
02: | Copyright (C) 2006 Christopher Kohlhaas |
03: | |
04: | This program is free software; you can redistribute it and/or modify |
05: | it under the terms of the GNU General Public License as published by the |
06: | Free Software Foundation. A copy of the license has been included with |
07: | these distribution in the COPYING file, if not go to www.fsf.org |
08: | |
09: | As a special exception, you are granted the permissions to link this |
10: | program with every library, which license fulfills the Open Source |
11: | Definition as published by the Open Source Initiative (OSI). |
12: *--------------------------------------------------------------------------*/
13: package org.rapla.storage.dbsql;
14:
15: import java.sql.Connection;
16: import java.sql.SQLException;
17:
18: import org.rapla.entities.storage.RefEntity;
19: import org.rapla.framework.RaplaException;
20:
21: interface Storage {
22: void loadAll() throws SQLException, RaplaException;
23:
24: void deleteAll() throws SQLException;
25:
26: void setConnection(Connection con);
27:
28: void save(RefEntity entity) throws SQLException, RaplaException;
29:
30: void insert(RefEntity entity) throws SQLException, RaplaException;
31:
32: void update(RefEntity entity) throws SQLException, RaplaException;
33:
34: /**
35: * @param entity
36: */
37: void delete(RefEntity entity) throws SQLException, RaplaException;
38: }
|