XtWxhDAOImpl.java 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. package com.huimv.xt.dao;
  2. import com.huimv.xt.dataobject.XtWxh;
  3. import com.huimv.xt.dataobject.XtWxhExample;
  4. import java.util.List;
  5. import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
  6. public class XtWxhDAOImpl extends SqlMapClientDaoSupport implements XtWxhDAO {
  7. /**
  8. * This method was generated by Apache iBATIS ibator.
  9. * This method corresponds to the database table xt_wxh
  10. *
  11. * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015
  12. */
  13. public XtWxhDAOImpl() {
  14. super();
  15. }
  16. /**
  17. * This method was generated by Apache iBATIS ibator.
  18. * This method corresponds to the database table xt_wxh
  19. *
  20. * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015
  21. */
  22. public int countByExample(XtWxhExample example) {
  23. Integer count = (Integer) getSqlMapClientTemplate().queryForObject("xt_wxh.ibatorgenerated_countByExample", example);
  24. return count;
  25. }
  26. /**
  27. * This method was generated by Apache iBATIS ibator.
  28. * This method corresponds to the database table xt_wxh
  29. *
  30. * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015
  31. */
  32. public int deleteByExample(XtWxhExample example) {
  33. int rows = getSqlMapClientTemplate().delete("xt_wxh.ibatorgenerated_deleteByExample", example);
  34. return rows;
  35. }
  36. /**
  37. * This method was generated by Apache iBATIS ibator.
  38. * This method corresponds to the database table xt_wxh
  39. *
  40. * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015
  41. */
  42. public void insert(XtWxh record) {
  43. getSqlMapClientTemplate().insert("xt_wxh.ibatorgenerated_insert", record);
  44. }
  45. /**
  46. * This method was generated by Apache iBATIS ibator.
  47. * This method corresponds to the database table xt_wxh
  48. *
  49. * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015
  50. */
  51. public void insertSelective(XtWxh record) {
  52. getSqlMapClientTemplate().insert("xt_wxh.ibatorgenerated_insertSelective", record);
  53. }
  54. /**
  55. * This method was generated by Apache iBATIS ibator.
  56. * This method corresponds to the database table xt_wxh
  57. *
  58. * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015
  59. */
  60. @SuppressWarnings("unchecked")
  61. public List<XtWxh> selectByExample(XtWxhExample example) {
  62. List<XtWxh> list = getSqlMapClientTemplate().queryForList("xt_wxh.ibatorgenerated_selectByExample", example);
  63. return list;
  64. }
  65. /**
  66. * This method was generated by Apache iBATIS ibator.
  67. * This method corresponds to the database table xt_wxh
  68. *
  69. * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015
  70. */
  71. public int updateByExampleSelective(XtWxh record, XtWxhExample example) {
  72. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  73. int rows = getSqlMapClientTemplate().update("xt_wxh.ibatorgenerated_updateByExampleSelective", parms);
  74. return rows;
  75. }
  76. /**
  77. * This method was generated by Apache iBATIS ibator.
  78. * This method corresponds to the database table xt_wxh
  79. *
  80. * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015
  81. */
  82. public int updateByExample(XtWxh record, XtWxhExample example) {
  83. UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
  84. int rows = getSqlMapClientTemplate().update("xt_wxh.ibatorgenerated_updateByExample", parms);
  85. return rows;
  86. }
  87. /**
  88. * This class was generated by Apache iBATIS ibator.
  89. * This class corresponds to the database table xt_wxh
  90. *
  91. * @ibatorgenerated Thu Apr 02 13:48:41 CST 2015
  92. */
  93. private static class UpdateByExampleParms extends XtWxhExample {
  94. private Object record;
  95. public UpdateByExampleParms(Object record, XtWxhExample example) {
  96. super(example);
  97. this.record = record;
  98. }
  99. public Object getRecord() {
  100. return record;
  101. }
  102. }
  103. }