(String mentionId)
| 27 | } |
| 28 | |
| 29 | public static String getMention(String mentionId) { |
| 30 | StringBuilder mention = new StringBuilder(); |
| 31 | try { |
| 32 | connection = DriverManager.getConnection(DATABASE); |
| 33 | PreparedStatement ps = connection.prepareStatement("SELECT mention_id FROM tweet_records WHERE mention_id = ?"); |
| 34 | |
| 35 | ps.setString(1, mentionId); |
| 36 | |
| 37 | ResultSet rs = ps.executeQuery(); |
| 38 | while (rs.next()) { |
| 39 | mention.append(rs.getString("mention_id")); |
| 40 | } |
| 41 | connection.close(); |
| 42 | } catch (SQLException e) { |
| 43 | e.printStackTrace(); |
| 44 | } |
| 45 | return mention.toString(); |
| 46 | } |
| 47 | |
| 48 | } |
nothing calls this directly
no outgoing calls
no test coverage detected