summaryrefslogtreecommitdiffstats
path: root/plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/src/ArchitectureCheckToSqlFromUI.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/src/ArchitectureCheckToSqlFromUI.java')
-rw-r--r--plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/src/ArchitectureCheckToSqlFromUI.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/src/ArchitectureCheckToSqlFromUI.java b/plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/src/ArchitectureCheckToSqlFromUI.java
new file mode 100644
index 00000000000..18f58ba4801
--- /dev/null
+++ b/plugins/sonar-squid-java-plugin/test-resources/bytecode/architecture/src/ArchitectureCheckToSqlFromUI.java
@@ -0,0 +1,21 @@
+import java.sql.Connection;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.sql.Statement;
+
+
+public class ArchitectureCheckToSqlFromUI {
+
+ ResultSet result;
+
+ Connection connection;
+
+ public ArchitectureCheckToSqlFromUI(Statement statement, String requete) {
+ try {
+ connection = statement.getConnection();
+ result = statement.executeQuery(requete);
+ } catch (SQLException sql) {
+ sql.printStackTrace();
+ }
+ }
+}