DatabasePluginUtil instead.@Deprecated public class DatabaseQueryUtility extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DatabaseQueryUtility.StatementParameter
Deprecated.
This class is not used for anything in the codebase of the database plugin. If you are using it
in some way or another, move it to your own code, because this class will be removed in future.
|
| Constructor and Description |
|---|
DatabaseQueryUtility()
Deprecated.
instantiating a static utility class doesn't make sense. Don't do it.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
close(Statement statement,
ResultSet resultSet)
Deprecated.
|
static int |
executeUpdate(DatabaseComponent databaseComponent,
String query,
Object... parameters)
Deprecated.
|
static String[] |
getColumns(ResultSetMetaData rsmd)
Deprecated.
|
static List<Map<String,Object>> |
getGridValues(DatabaseComponent databaseComponent,
String query,
Object... parameters)
Deprecated.
|
static Map<String,Double> |
getNumericQueryValueMap(DatabaseComponent databaseComponent,
String query,
Object... parameters)
Deprecated.
|
static Map<String,Double> |
getNumericQueryValues(DatabaseComponent databaseComponent,
String query,
Object... parameters)
Deprecated.
|
static Double |
getSingleNumericQueryValue(DatabaseComponent databaseComponent,
String query,
Object... parameters)
Deprecated.
|
@Deprecated public DatabaseQueryUtility()
@Deprecated public static int executeUpdate(DatabaseComponent databaseComponent, String query, Object... parameters) throws SQLException
databaseComponent - query - parameters - SQLException@Deprecated public static Double getSingleNumericQueryValue(DatabaseComponent databaseComponent, String query, Object... parameters)
Double.NaN if the query fails.@Deprecated public static Map<String,Double> getNumericQueryValues(DatabaseComponent databaseComponent, String query, Object... parameters)
databaseComponent - query - SQL query stringparameters - optional bind parameters@Deprecated public static List<Map<String,Object>> getGridValues(DatabaseComponent databaseComponent, String query, Object... parameters) throws SQLException
databaseComponent - database to queryquery - SQL queryparameters - parameters to bind to the querySQLException - if query fails@Deprecated public static Map<String,Double> getNumericQueryValueMap(DatabaseComponent databaseComponent, String query, Object... parameters)
databaseComponent - the component to execute onquery - the sql query to runparameters - any parameters to bind first@Deprecated public static String[] getColumns(ResultSetMetaData rsmd) throws SQLException
SQLException@Deprecated public static void close(Statement statement, ResultSet resultSet)
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.