01: package org.springunit.framework.samples.jpetstore.dao;
02:
03: import java.util.List;
04:
05: import org.springframework.dao.DataAccessException;
06: import org.springunit.framework.samples.jpetstore.domain.Persistable;
07:
08: public interface Dao<V extends Persistable> {
09:
10: public V create(V item) throws DataAccessException;
11:
12: public List<? extends V> create(List<? extends V> items)
13: throws DataAccessException;
14:
15: public void delete(V item) throws DataAccessException;
16:
17: public void delete(List<? extends V> items)
18: throws DataAccessException;
19:
20: public List<? extends V> read() throws DataAccessException;
21:
22: public V read(int id) throws DataAccessException;
23:
24: public void update(V item) throws DataAccessException;
25:
26: public void update(List<? extends V> items)
27: throws DataAccessException;
28:
29: }
|