()
| 109 | } |
| 110 | |
| 111 | @Override |
| 112 | public int count() throws Exception { |
| 113 | String sql = "SELECT count(*) FROM user_info "; |
| 114 | |
| 115 | try( |
| 116 | Connection conn = ds.getConnection(); |
| 117 | PreparedStatement pstmt = conn.prepareStatement(sql); |
| 118 | ResultSet rs = pstmt.executeQuery(); |
| 119 | ){ |
| 120 | rs.next(); |
| 121 | int result = rs.getInt(1); |
| 122 | |
| 123 | return result; |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | @Override |
| 128 | public void deleteAll() throws Exception { |
nothing calls this directly
no outgoing calls
no test coverage detected