package com.jqmobile.core.service; /** * 简单对象服务 * @author MODI * * @param <Bean> * @project com.jiuqi.mobile.core * @date 2014年2月25日 */ public interface ISimpleService<Bean> extends IService{ /** * 新建 * @param bean * @return * @throws Exception */ boolean create(Bean bean) throws Exception; /** * 删除 * @param recid * @return * @throws Exception */ boolean delete(String recid) throws Exception; /** * 修改 * @param bean * @return * @throws Exception */ boolean update(Bean bean) throws Exception; /** * 有则修改,无则新建 * @param bean * @return * @throws Exception */ boolean put(Bean bean) throws Exception; /** * 查找 * @param recid * @return */ Bean find(String recid); }