XtYhjsDAOImpl.java 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. package com.huimv.xt.dao;
  2. import com.huimv.busi.xt.constant.XtSqlMapConstant;
  3. import com.huimv.xt.dataobject.XtYhjsExample;
  4. import com.huimv.xt.dataobject.XtYhjsKey;
  5. import java.util.List;
  6. import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
  7. public class XtYhjsDAOImpl extends SqlMapClientDaoSupport implements XtYhjsDAO {
  8. /**
  9. * This method was generated by Apache iBATIS ibator.
  10. * This method corresponds to the database table xt_yhjs
  11. *
  12. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  13. */
  14. public XtYhjsDAOImpl() {
  15. super();
  16. }
  17. /**
  18. * This method was generated by Apache iBATIS ibator.
  19. * This method corresponds to the database table xt_yhjs
  20. *
  21. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  22. */
  23. public int countByExample(XtYhjsExample example) {
  24. Integer count = (Integer) getSqlMapClientTemplate().queryForObject("xt_yhjs.ibatorgenerated_countByExample", example);
  25. return count;
  26. }
  27. /**
  28. * This method was generated by Apache iBATIS ibator.
  29. * This method corresponds to the database table xt_yhjs
  30. *
  31. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  32. */
  33. public int deleteByExample(XtYhjsExample example) {
  34. int rows = getSqlMapClientTemplate().delete("xt_yhjs.ibatorgenerated_deleteByExample", example);
  35. return rows;
  36. }
  37. /**
  38. * This method was generated by Apache iBATIS ibator.
  39. * This method corresponds to the database table xt_yhjs
  40. *
  41. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  42. */
  43. public int deleteByPrimaryKey(XtYhjsKey key) {
  44. int rows = getSqlMapClientTemplate().delete("xt_yhjs.ibatorgenerated_deleteByPrimaryKey", key);
  45. return rows;
  46. }
  47. /**
  48. * This method was generated by Apache iBATIS ibator.
  49. * This method corresponds to the database table xt_yhjs
  50. *
  51. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  52. */
  53. public void insert(XtYhjsKey record) {
  54. getSqlMapClientTemplate().insert("xt_yhjs.ibatorgenerated_insert", record);
  55. }
  56. /**
  57. * This method was generated by Apache iBATIS ibator.
  58. * This method corresponds to the database table xt_yhjs
  59. *
  60. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  61. */
  62. public void insertSelective(XtYhjsKey record) {
  63. getSqlMapClientTemplate().insert("xt_yhjs.ibatorgenerated_insertSelective", record);
  64. }
  65. /**
  66. * This method was generated by Apache iBATIS ibator.
  67. * This method corresponds to the database table xt_yhjs
  68. *
  69. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  70. */
  71. @SuppressWarnings("unchecked")
  72. public List<XtYhjsKey> selectByExample(XtYhjsExample example) {
  73. List<XtYhjsKey> list = getSqlMapClientTemplate().queryForList("xt_yhjs.ibatorgenerated_selectByExample", example);
  74. return list;
  75. }
  76. /**
  77. * This method was generated by Apache iBATIS ibator.
  78. * This method corresponds to the database table xt_yhjs
  79. *
  80. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  81. */
  82. public int updateByExampleSelective(XtYhjsKey record, XtYhjsExample example) {
  83. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  84. int rows = getSqlMapClientTemplate().update("xt_yhjs.ibatorgenerated_updateByExampleSelective", parms);
  85. return rows;
  86. }
  87. /**
  88. * This method was generated by Apache iBATIS ibator.
  89. * This method corresponds to the database table xt_yhjs
  90. *
  91. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  92. */
  93. public int updateByExample(XtYhjsKey record, XtYhjsExample example) {
  94. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  95. int rows = getSqlMapClientTemplate().update("xt_yhjs.ibatorgenerated_updateByExample", parms);
  96. return rows;
  97. }
  98. /**
  99. * This class was generated by Apache iBATIS ibator.
  100. * This class corresponds to the database table xt_yhjs
  101. *
  102. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  103. */
  104. private static class UpdateByExampleParms extends XtYhjsExample {
  105. private Object record;
  106. public UpdateByExampleParms(Object record, XtYhjsExample example) {
  107. super(example);
  108. this.record = record;
  109. }
  110. @SuppressWarnings("unused")
  111. public Object getRecord() {
  112. return record;
  113. }
  114. }
  115. /**
  116. * 角色对应的操作用户
  117. * @param id
  118. * @return
  119. */
  120. @SuppressWarnings("unchecked")
  121. public List<XtYhjsKey> SelectCzyhByJsid(Integer id) {
  122. List<XtYhjsKey> xtYhjsKeyLists = null;
  123. xtYhjsKeyLists = (List<XtYhjsKey>) getSqlMapClientTemplate().queryForList(XtSqlMapConstant.SQLMAP_SELECT_CZYH_BY_JSID, id);
  124. return xtYhjsKeyLists;
  125. }
  126. }