/*************************************************** * Copyright 2010-5-11, -Administrator,All rights reserved. * Create date : 2010-5-11 * Author : Administrator **************************************************/ package com.formaction.service; import java.sql.SQLException; import org.apache.cxf.jaxrs.ext.MessageContext; import com.formaction.vo.Msg; import com.persistence.service.exception.PersistenceException; import com.persistence.service.exception.TransformTypeException; /** * 只能实现简单(不带业务处理的表(可支持主从表)的增删改查功能) */ public interface CRUDServiceAble{ /** * 新增表数据 * * @param params * 表单信息 * @return * @throws PersistenceException * @throws TransformTypeException */ public Msg create(String params) throws TransformTypeException, PersistenceException; /** * 机构管理新增表数据 * * @param params * 表单信息 * @return * @throws PersistenceException * @throws TransformTypeException */ public Msg deptCreate(String params) throws TransformTypeException, PersistenceException; /** * 修改表数据 * * @param params * 表单信息 * @return * @throws TransformTypeException * @throws PersistenceException */ public Msg update(String params) throws PersistenceException, TransformTypeException; /** * 通用数据查询 * * @param params * 表单信息(查询条件等) * @return * @throws PersistenceException * @throws TransformTypeException */ public String query(String params) throws PersistenceException, TransformTypeException; /** * 通用数据查询,适用于Quick UI * * @param params * 表单信息(查询条件等) * @return * @throws PersistenceException * @throws TransformTypeException */ public String queryQui(String params) throws PersistenceException, TransformTypeException; /** * 机构管理模糊查询 * * @param params * 表单信息(查询条件等) * @return * @throws PersistenceException * @throws TransformTypeException */ public String deptQuery(String params) throws PersistenceException, TransformTypeException; /** * 删除数据 * * @param params * 表单信息 * @return * @throws PersistenceException * @throws TransformTypeException */ public Msg delete(String params) throws PersistenceException; /** * 删除树形数据 * * @param params * 表单信息 * @return * @throws PersistenceException * @throws ClassNotFoundException * @throws SQLException * @throws TransformTypeException */ public Msg deleteTree(String params) throws PersistenceException, SQLException, ClassNotFoundException; /** * 日志变更记录 * * @param classID * classId * @param recordId * 主键 fd_object * @param actionType * ("4"——增加,"2"-修改,"3"——删除); * @param tip * 执行动作("修改","增加","删除") * @param * * */ public void insertLog(String classId, String recordId, String actionType, String tip, MessageContext m); }