fcb0fe9a6cb40ad552bb3f304a862551a06557c9.svn-base 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. /***************************************************
  2. * Copyright 2010-5-11, -Administrator,All rights reserved.
  3. * Create date : 2010-5-11
  4. * Author : Administrator
  5. **************************************************/
  6. package com.formaction.service;
  7. import java.sql.SQLException;
  8. import org.apache.cxf.jaxrs.ext.MessageContext;
  9. import com.formaction.vo.Msg;
  10. import com.persistence.service.exception.PersistenceException;
  11. import com.persistence.service.exception.TransformTypeException;
  12. /**
  13. * 只能实现简单(不带业务处理的表(可支持主从表)的增删改查功能)
  14. */
  15. public interface CRUDServiceAble{
  16. /**
  17. * 新增表数据
  18. *
  19. * @param params
  20. * 表单信息
  21. * @return
  22. * @throws PersistenceException
  23. * @throws TransformTypeException
  24. */
  25. public Msg create(String params) throws TransformTypeException, PersistenceException;
  26. /**
  27. * 机构管理新增表数据
  28. *
  29. * @param params
  30. * 表单信息
  31. * @return
  32. * @throws PersistenceException
  33. * @throws TransformTypeException
  34. */
  35. public Msg deptCreate(String params) throws TransformTypeException, PersistenceException;
  36. /**
  37. * 修改表数据
  38. *
  39. * @param params
  40. * 表单信息
  41. * @return
  42. * @throws TransformTypeException
  43. * @throws PersistenceException
  44. */
  45. public Msg update(String params) throws PersistenceException, TransformTypeException;
  46. /**
  47. * 通用数据查询
  48. *
  49. * @param params
  50. * 表单信息(查询条件等)
  51. * @return
  52. * @throws PersistenceException
  53. * @throws TransformTypeException
  54. */
  55. public String query(String params) throws PersistenceException, TransformTypeException;
  56. /**
  57. * 通用数据查询,适用于Quick UI
  58. *
  59. * @param params
  60. * 表单信息(查询条件等)
  61. * @return
  62. * @throws PersistenceException
  63. * @throws TransformTypeException
  64. */
  65. public String queryQui(String params) throws PersistenceException, TransformTypeException;
  66. /**
  67. * 机构管理模糊查询
  68. *
  69. * @param params
  70. * 表单信息(查询条件等)
  71. * @return
  72. * @throws PersistenceException
  73. * @throws TransformTypeException
  74. */
  75. public String deptQuery(String params) throws PersistenceException, TransformTypeException;
  76. /**
  77. * 删除数据
  78. *
  79. * @param params
  80. * 表单信息
  81. * @return
  82. * @throws PersistenceException
  83. * @throws TransformTypeException
  84. */
  85. public Msg delete(String params) throws PersistenceException;
  86. /**
  87. * 删除树形数据
  88. *
  89. * @param params
  90. * 表单信息
  91. * @return
  92. * @throws PersistenceException
  93. * @throws ClassNotFoundException
  94. * @throws SQLException
  95. * @throws TransformTypeException
  96. */
  97. public Msg deleteTree(String params) throws PersistenceException, SQLException,
  98. ClassNotFoundException;
  99. /**
  100. * 日志变更记录
  101. *
  102. * @param classID
  103. * classId
  104. * @param recordId
  105. * 主键 fd_object
  106. * @param actionType
  107. * ("4"——增加,"2"-修改,"3"——删除);
  108. * @param tip
  109. * 执行动作("修改","增加","删除")
  110. * @param
  111. *
  112. * */
  113. public void insertLog(String classId, String recordId, String actionType, String tip,
  114. MessageContext m);
  115. }