public class JdbcUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
executeQuietly(Statement statement,
String query) |
static List<Long> |
getListOfLong(Connection connection,
String query) |
static boolean |
isTablePresent(Statement statement,
String tableName) |
static int |
runDeleteQuery(Connection connection,
String query,
String entityName) |
static int |
runDeleteQuery(Connection connection,
String tableName,
String idColumn,
Iterable<? extends BambooIdProvider> objects) |
static int |
runDeleteQuery(PreparedStatement statement,
String query,
String entityName) |
static int |
runUpdateQuery(PreparedStatement statement,
String query,
String entityName) |
public static boolean isTablePresent(@NotNull Statement statement, @NotNull String tableName)
public static int runDeleteQuery(@NotNull Connection connection, @NotNull String query, @NotNull String entityName) throws SQLException
SQLException
public static int runDeleteQuery(@NotNull PreparedStatement statement, @NotNull String query, @NotNull String entityName) throws SQLException
statement
- statement to be executed (caller is responsible for closing statement)query
- entityName
- SQLException
public static int runUpdateQuery(@NotNull PreparedStatement statement, @NotNull String query, @NotNull String entityName) throws SQLException
statement
- statement to be executed (caller is responsible for closing statement)query
- entityName
- SQLException
public static List<Long> getListOfLong(@NotNull Connection connection, @NotNull String query) throws SQLException
SQLException
public static int runDeleteQuery(@NotNull Connection connection, @NotNull String tableName, @NotNull String idColumn, @NotNull Iterable<? extends BambooIdProvider> objects) throws SQLException
SQLException
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.