SQLQueryService.java 487B

1234567891011121314151617181920212223242526
  1. package com.vcarecity.cvs.service;
  2. import java.sql.SQLException;
  3. import java.util.List;
  4. /**
  5. * @author Kerry on 19/11/21
  6. */
  7. public interface SQLQueryService {
  8. /**
  9. * query by page
  10. *
  11. * @param table
  12. * @param page 页面
  13. * @param pageCount 一页的数量
  14. * @param clazz
  15. * @param <T>
  16. * @return
  17. * @throws SQLException
  18. */
  19. <T> List<T> queryByPage(String table, int page, int pageCount, Class<T> clazz) throws SQLException;
  20. }