@Test public void insertPublicStrategy() throws Exception { Long id = publicStrategyDao.insertPublicStrategy(publicStrategy); System.out.println("insertPublicStrategy :-------> " + id); Assert.assertTrue(id > 0); }
public Long insertPublicStrategy(PublicStrategy publicStrategy) throws SQLException { if (null == publicStrategy) { return 0L; } this.getDasClient().insert(publicStrategy, Hints.hints().setIdBack()); return publicStrategy.getId(); }
PublicStrategyDao extends BaseDao { public Long insertPublicStrategy(PublicStrategy publicStrategy) throws SQLException { if (null == publicStrategy) { return 0L; } this.getDasClient().insert(publicStrategy, Hints.hints().setIdBack()); return publicStrategy.getId(); } }
PublicStrategyDao extends BaseDao { public Long insertPublicStrategy(PublicStrategy publicStrategy) throws SQLException { if (null == publicStrategy) { return 0L; } this.getDasClient().insert(publicStrategy, Hints.hints().setIdBack()); return publicStrategy.getId(); }  }
PublicStrategyDao extends BaseDao { public Long insertPublicStrategy(PublicStrategy publicStrategy) throws SQLException { if (null == publicStrategy) { return 0L; } this.getDasClient().insert(publicStrategy, Hints.hints().setIdBack()); return publicStrategy.getId(); }  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 Long insertPublicStrategy(PublicStrategy publicStrategy) throws SQLException { if (null == publicStrategy) { return 0L; } this.getDasClient().insert(publicStrategy, Hints.hints().setIdBack()); return publicStrategy.getId(); }  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);  }