@Test public void testGetUserCount() { logger.debug(userDao.getUserCount()); assertNotSame(0, userDao.getUserCount()); }
@Override public int getUserCount() { return this.jdbcTemplate.queryForInt("select count(*) from t_user"); }
UserDaoJDBC implements UserDao { @Override public int getUserCount() { return this.jdbcTemplate.queryForInt("select count(*) from t_user"); } }
UserDaoJDBC implements UserDao { @Override public int getUserCount() { return this.jdbcTemplate.queryForInt("select count(*) from t_user"); } @Autowired  UserDaoJDBC(DataSource datasource); }
UserDaoJDBC implements UserDao { @Override public int getUserCount() { return this.jdbcTemplate.queryForInt("select count(*) from t_user"); } @Autowired  UserDaoJDBC(DataSource datasource); @Override int getUserCount(); @Override User getUserbyID(int id); @Override List<User> getUsers(); @Override User addUser(final User user); @Override int updateUser(User user); }
UserDaoJDBC implements UserDao { @Override public int getUserCount() { return this.jdbcTemplate.queryForInt("select count(*) from t_user"); } @Autowired  UserDaoJDBC(DataSource datasource); @Override int getUserCount(); @Override User getUserbyID(int id); @Override List<User> getUsers(); @Override User addUser(final User user); @Override int updateUser(User user);  }