MCPcopy Create free account
hub / github.com/Philipinho/GetVideoBot / getMention

Method getMention

src/main/java/utils/DBHelper.java:29–46  ·  view source on GitHub ↗
(String mentionId)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected