01: package auction.dao;
02:
03: import java.util.List;
04: import java.io.Serializable;
05:
06: public interface GenericDAO<T, ID extends Serializable> {
07:
08: T findById(ID id, boolean lock);
09:
10: List<T> findAll();
11:
12: List<T> findByExample(T exampleInstance, String... excludeProperty);
13:
14: T makePersistent(T entity);
15:
16: void makeTransient(T entity);
17:
18: void flush();
19:
20: void clear();
21:
22: }
|