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

Method deleteAll

ch2/DBConnectionTest2Test.java:103–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101 }
102
103 private void deleteAll() throws Exception {
104 Connection conn = ds.getConnection();
105
106 String sql = "delete from user_info ";
107
108 PreparedStatement pstmt = conn.prepareStatement(sql); // SQL Injection공격, 성능향상
109 pstmt.executeUpdate(); // insert, delete, update
110 }
111
112 // 사용자 정보를 user_info테이블에 저장하는 메서드
113 public int insertUser(User user) throws Exception {

Callers 3

insertUserTestMethod · 0.95
selectUserTestMethod · 0.95
deleteUserTestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected