1 /*****************************************************************************
5 * Creation date 08.10.2012
8 *****************************************************************************/
10 package org.splat.dal.dao.kernel;
12 import java.io.Serializable;
18 public interface GenericDAO<T, PK extends Serializable> {
20 /** Persist the newInstance object into database */
21 PK create(T newInstance);
24 * Retrieve an object that was previously persisted to the database using the indicated id as primary key
28 /** Save changes made to a persistent object. */
29 void update(T transientObject);
31 /** Remove an object from persistent storage in the database */
32 void delete(T persistentObject);