.-.
This commit is contained in:
parent
1fc88e147f
commit
5c19dd8b15
@ -66,6 +66,7 @@ public class H2Datastore extends SQLDatastore {
|
|||||||
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryPS.getQuery());
|
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryPS.getQuery());
|
||||||
queryPS.onRun(preparedStatement);
|
queryPS.onRun(preparedStatement);
|
||||||
preparedStatement.execute();
|
preparedStatement.execute();
|
||||||
|
|
||||||
success = true;
|
success = true;
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -84,7 +85,6 @@ public class H2Datastore extends SQLDatastore {
|
|||||||
|
|
||||||
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryRS.getQuery());
|
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryRS.getQuery());
|
||||||
queryRS.onRun(preparedStatement);
|
queryRS.onRun(preparedStatement);
|
||||||
preparedStatement.execute();
|
|
||||||
|
|
||||||
@Cleanup ResultSet resultSet = preparedStatement.executeQuery();
|
@Cleanup ResultSet resultSet = preparedStatement.executeQuery();
|
||||||
success = queryRS.onResult(resultSet);
|
success = queryRS.onResult(resultSet);
|
||||||
|
@ -85,6 +85,7 @@ public class MySQLDatastore extends SQLDatastore {
|
|||||||
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryPS.getQuery());
|
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryPS.getQuery());
|
||||||
queryPS.onRun(preparedStatement);
|
queryPS.onRun(preparedStatement);
|
||||||
preparedStatement.execute();
|
preparedStatement.execute();
|
||||||
|
|
||||||
success = true;
|
success = true;
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -103,7 +104,6 @@ public class MySQLDatastore extends SQLDatastore {
|
|||||||
|
|
||||||
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryRS.getQuery());
|
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryRS.getQuery());
|
||||||
queryRS.onRun(preparedStatement);
|
queryRS.onRun(preparedStatement);
|
||||||
preparedStatement.execute();
|
|
||||||
|
|
||||||
@Cleanup ResultSet resultSet = preparedStatement.executeQuery();
|
@Cleanup ResultSet resultSet = preparedStatement.executeQuery();
|
||||||
success = queryRS.onResult(resultSet);
|
success = queryRS.onResult(resultSet);
|
||||||
|
@ -66,6 +66,7 @@ public class SQLiteDatastore extends SQLDatastore {
|
|||||||
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryPS.getQuery());
|
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryPS.getQuery());
|
||||||
queryPS.onRun(preparedStatement);
|
queryPS.onRun(preparedStatement);
|
||||||
preparedStatement.execute();
|
preparedStatement.execute();
|
||||||
|
|
||||||
success = true;
|
success = true;
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@ -84,7 +85,6 @@ public class SQLiteDatastore extends SQLDatastore {
|
|||||||
|
|
||||||
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryRS.getQuery());
|
@Cleanup PreparedStatement preparedStatement = connection.prepareStatement(queryRS.getQuery());
|
||||||
queryRS.onRun(preparedStatement);
|
queryRS.onRun(preparedStatement);
|
||||||
preparedStatement.execute();
|
|
||||||
|
|
||||||
@Cleanup ResultSet resultSet = preparedStatement.executeQuery();
|
@Cleanup ResultSet resultSet = preparedStatement.executeQuery();
|
||||||
success = queryRS.onResult(resultSet);
|
success = queryRS.onResult(resultSet);
|
||||||
|
Loading…
Reference in New Issue
Block a user