1 24 package org.riotfamily.riot.dao; 25 26 import java.util.Collection ; 27 28 import org.springframework.dao.DataAccessException; 29 30 33 public interface RiotDao { 34 35 38 public Class getEntityClass(); 39 40 46 public String getObjectId(Object entity); 47 48 51 public Object load(String id) throws DataAccessException; 52 53 56 public void update(Object entity) throws DataAccessException; 57 58 61 public void save(Object entity, Object parent) throws DataAccessException; 62 63 66 public void delete(Object entity, Object parent) throws DataAccessException; 67 68 71 public Collection list(Object parent, ListParams params) throws DataAccessException; 72 73 76 public int getListSize(Object parent, ListParams params) throws DataAccessException; 77 78 } 79 | Popular Tags |