XtJsqxDAOImpl.java 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. package com.huimv.xt.dao;
  2. import com.huimv.xt.dataobject.XtJsqxExample;
  3. import com.huimv.xt.dataobject.XtJsqxKey;
  4. import java.util.List;
  5. import java.util.Map;
  6. import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
  7. public class XtJsqxDAOImpl extends SqlMapClientDaoSupport implements XtJsqxDAO {
  8. /**
  9. * This method was generated by Apache iBATIS ibator.
  10. * This method corresponds to the database table xt_jsqx
  11. *
  12. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  13. */
  14. public XtJsqxDAOImpl() {
  15. super();
  16. }
  17. /**
  18. * This method was generated by Apache iBATIS ibator.
  19. * This method corresponds to the database table xt_jsqx
  20. *
  21. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  22. */
  23. public int countByExample(XtJsqxExample example) {
  24. Integer count = (Integer) getSqlMapClientTemplate().queryForObject("xt_jsqx.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_jsqx
  30. *
  31. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  32. */
  33. public int deleteByExample(XtJsqxExample example) {
  34. int rows = getSqlMapClientTemplate().delete("xt_jsqx.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_jsqx
  40. *
  41. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  42. */
  43. public int deleteByPrimaryKey(XtJsqxKey key) {
  44. int rows = getSqlMapClientTemplate().delete("xt_jsqx.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_jsqx
  50. *
  51. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  52. */
  53. public void insert(XtJsqxKey record) {
  54. getSqlMapClientTemplate().insert("xt_jsqx.ibatorgenerated_insert", record);
  55. }
  56. /**
  57. * This method was generated by Apache iBATIS ibator.
  58. * This method corresponds to the database table xt_jsqx
  59. *
  60. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  61. */
  62. public void insertSelective(XtJsqxKey record) {
  63. getSqlMapClientTemplate().insert("xt_jsqx.ibatorgenerated_insertSelective", record);
  64. }
  65. /**
  66. * This method was generated by Apache iBATIS ibator.
  67. * This method corresponds to the database table xt_jsqx
  68. *
  69. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  70. */
  71. @SuppressWarnings("unchecked")
  72. public List<XtJsqxKey> selectByExample(XtJsqxExample example) {
  73. List<XtJsqxKey> list = getSqlMapClientTemplate().queryForList("xt_jsqx.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_jsqx
  79. *
  80. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  81. */
  82. public int updateByExampleSelective(XtJsqxKey record, XtJsqxExample example) {
  83. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  84. int rows = getSqlMapClientTemplate().update("xt_jsqx.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_jsqx
  90. *
  91. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  92. */
  93. public int updateByExample(XtJsqxKey record, XtJsqxExample example) {
  94. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  95. int rows = getSqlMapClientTemplate().update("xt_jsqx.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_jsqx
  101. *
  102. * @ibatorgenerated Thu Jul 10 14:38:31 CST 2014
  103. */
  104. private static class UpdateByExampleParms extends XtJsqxExample {
  105. private Object record;
  106. public UpdateByExampleParms(Object record, XtJsqxExample example) {
  107. super(example);
  108. this.record = record;
  109. }
  110. public Object getRecord() {
  111. return record;
  112. }
  113. }
  114. @Override
  115. public List<XtJsqxKey> selectByParam(Map<String, Object> param) {
  116. List<XtJsqxKey> list = getSqlMapClientTemplate().queryForList("select.jsqx.by.param", param);
  117. return list;
  118. }
  119. }