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

Method deleteAll

ch3/UserDao.java:146–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Implementers 1

UserDaoImplch3/UserDaoImpl.java

Calls

no outgoing calls

Tested by

no test coverage detected