public class JDBCUtils extends Object
| Constructor and Description |
|---|
JDBCUtils() |
| Modifier and Type | Method and Description |
|---|---|
static StringBuilder |
appendSQLExceptionDetails(StringBuilder errorMessage,
SQLException exception)
Append to
errorMessage a detailed description of the provided SQLException.The information appended are: SQL EXCEPTIONS details ( SQLException.getSQLState(),
SQLException.getErrorCode() and Throwable.getMessage()) of the linked list (SQLException.getNextException()) of exceptions
|
static StringBuilder |
appendSQLExceptionDetails(StringBuilder errorMessage,
SQLException exception,
CharSequence sqlStatements)
Append to
errorMessage a detailed description of the provided SQLException.The information appended are: SQL STATEMENTS SQL EXCEPTIONS details ( SQLException.getSQLState(),
SQLException.getErrorCode() and Throwable.getMessage()) of the linked list (SQLException.getNextException()) of exceptions
|
static SQLProvider |
getSQLProvider(String driverClass,
String tableName,
SQLProvider.DatabaseStoreType storeType) |
static SQLProvider.Factory |
getSQLProviderFactory(String url) |
public static SQLProvider.Factory getSQLProviderFactory(String url)
public static SQLProvider getSQLProvider(String driverClass, String tableName, SQLProvider.DatabaseStoreType storeType)
public static StringBuilder appendSQLExceptionDetails(StringBuilder errorMessage, SQLException exception, CharSequence sqlStatements)
errorMessage a detailed description of the provided SQLException.SQLException.getSQLState(),
SQLException.getErrorCode() and Throwable.getMessage()) of the linked list (SQLException.getNextException()) of exceptionserrorMessage - the target where append the exceptions detailsexception - the SQL exception (or warning)sqlStatements - the SQL statements related to the exceptionerrorMessagepublic static StringBuilder appendSQLExceptionDetails(StringBuilder errorMessage, SQLException exception)
errorMessage a detailed description of the provided SQLException.SQLException.getSQLState(),
SQLException.getErrorCode() and Throwable.getMessage()) of the linked list (SQLException.getNextException()) of exceptionserrorMessage - the target where append the exceptions detailsexception - the SQL exception (or warning)errorMessageCopyright © 2018 JBoss by Red Hat. All rights reserved.