@Test public void getAllPublicStrateges() throws Exception { List<PublicStrategy> list = publicStrategyDao.getAllPublicStrateges(); System.out.println("getAllPublicStrateges :-------> " + list); Assert.assertTrue(list.size() > 0); }
public List<PublicStrategy> getAllPublicStrateges() throws SQLException { PublicStrategy.PublicStrategyDefinition p = PublicStrategy.PUBLICSTRATEGY; SqlBuilder builder = SqlBuilder.selectAllFrom(p).into(PublicStrategy.class); return this.getDasClient().query(builder); }
PublicStrategyDao extends BaseDao { public List<PublicStrategy> getAllPublicStrateges() throws SQLException { PublicStrategy.PublicStrategyDefinition p = PublicStrategy.PUBLICSTRATEGY; SqlBuilder builder = SqlBuilder.selectAllFrom(p).into(PublicStrategy.class); return this.getDasClient().query(builder); } }
PublicStrategyDao extends BaseDao { public List<PublicStrategy> getAllPublicStrateges() throws SQLException { PublicStrategy.PublicStrategyDefinition p = PublicStrategy.PUBLICSTRATEGY; SqlBuilder builder = SqlBuilder.selectAllFrom(p).into(PublicStrategy.class); return this.getDasClient().query(builder); }  }
PublicStrategyDao extends BaseDao { public List<PublicStrategy> getAllPublicStrateges() throws SQLException { PublicStrategy.PublicStrategyDefinition p = PublicStrategy.PUBLICSTRATEGY; SqlBuilder builder = SqlBuilder.selectAllFrom(p).into(PublicStrategy.class); return this.getDasClient().query(builder); }  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 List<PublicStrategy> getAllPublicStrateges() throws SQLException { PublicStrategy.PublicStrategyDefinition p = PublicStrategy.PUBLICSTRATEGY; SqlBuilder builder = SqlBuilder.selectAllFrom(p).into(PublicStrategy.class); return this.getDasClient().query(builder); }  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);  }