MCPcopy Create free account
hub / github.com/castello/spring_basic / deleteAll

Method deleteAll

ch3/UserDaoImpl.java:150–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148 }
149
150 public void deleteAll() throws Exception {
151 Connection conn = ds.getConnection();
152
153 String sql = "delete from user_info ";
154
155 PreparedStatement pstmt = conn.prepareStatement(sql); // SQL Injection공격, 성능향상
156 pstmt.executeUpdate(); // insert, delete, update
157 }
158
159 private void close(AutoCloseable... acs) {
160 for(AutoCloseable ac :acs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected