@Test public void updatePublicStrategy() throws Exception { publicStrategy.setId(1L); publicStrategy.setStrategySource("das.console.dto.entry.das.PublicStrategy"); int count = publicStrategyDao.updatePublicStrategy(publicStrategy); System.out.println("updatePublicStrategy :-------> " + count); Assert.assertTrue(count > 0); }
public int updatePublicStrategy(PublicStrategy publicStrategy) throws SQLException { if (null == publicStrategy || publicStrategy.getId() == null) { return 0; } return this.getDasClient().update(publicStrategy); }
PublicStrategyDao extends BaseDao { public int updatePublicStrategy(PublicStrategy publicStrategy) throws SQLException { if (null == publicStrategy || publicStrategy.getId() == null) { return 0; } return this.getDasClient().update(publicStrategy); } }
PublicStrategyDao extends BaseDao { public int updatePublicStrategy(PublicStrategy publicStrategy) throws SQLException { if (null == publicStrategy || publicStrategy.getId() == null) { return 0; } return this.getDasClient().update(publicStrategy); }  }
PublicStrategyDao extends BaseDao { public int updatePublicStrategy(PublicStrategy publicStrategy) throws SQLException { if (null == publicStrategy || publicStrategy.getId() == null) { return 0; } return this.getDasClient().update(publicStrategy); }  Long insertPublicStrategy(PublicStrategy publicStrategy); int updatePublicStrategy(PublicStrategy publicStrategy); PublicStrategy getPublicStrategyById(Long id); Long getCountByName(String name); Long getCountByIdAndName(Long id, String name); int deletePublicStrategy(PublicStrategy publicStrategy); List<PublicStrategy> getAllPublicStrateges(); Long getPublicStrategyTotalCount(Paging<PublicStrategy> paging); List<PublicStrategyView> findPublicStrategyPageList(Paging<PublicStrategy> paging); }
PublicStrategyDao extends BaseDao { public int updatePublicStrategy(PublicStrategy publicStrategy) throws SQLException { if (null == publicStrategy || publicStrategy.getId() == null) { return 0; } return this.getDasClient().update(publicStrategy); }  Long insertPublicStrategy(PublicStrategy publicStrategy); int updatePublicStrategy(PublicStrategy publicStrategy); PublicStrategy getPublicStrategyById(Long id); Long getCountByName(String name); Long getCountByIdAndName(Long id, String name); int deletePublicStrategy(PublicStrategy publicStrategy); List<PublicStrategy> getAllPublicStrateges(); Long getPublicStrategyTotalCount(Paging<PublicStrategy> paging); List<PublicStrategyView> findPublicStrategyPageList(Paging<PublicStrategy> paging);  }