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 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 int runDeleteQuery(@NotNull
Connection connection,
@NotNull
String query,
@NotNull
String entityName)
throws SQLException
SQLExceptionpublic 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 - SQLExceptionpublic 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 - SQLExceptionpublic static List<Long> getListOfLong(@NotNull Connection connection, @NotNull String query) throws SQLException
SQLExceptionpublic static int runDeleteQuery(@NotNull
Connection connection,
@NotNull
String tableName,
@NotNull
String idColumn,
@NotNull
Iterable<? extends BambooIdProvider> objects)
throws SQLException
SQLExceptionCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.