Class JDBCUtils
- java.lang.Object
-
- org.apache.activemq.artemis.jdbc.store.drivers.JDBCUtils
-
public class JDBCUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description JDBCUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringBuilderappendSQLExceptionDetails(java.lang.StringBuilder errorMessage, java.sql.SQLException exception)Append toerrorMessagea detailed description of the providedSQLException.
The information appended are: SQL EXCEPTIONS details (SQLException.getSQLState(),SQLException.getErrorCode()andThrowable.getMessage()) of the linked list (SQLException.getNextException()) of exceptionsstatic java.lang.StringBuilderappendSQLExceptionDetails(java.lang.StringBuilder errorMessage, java.sql.SQLException exception, java.lang.CharSequence sqlStatements)Append toerrorMessagea detailed description of the providedSQLException.
The information appended are: SQL STATEMENTS SQL EXCEPTIONS details (SQLException.getSQLState(),SQLException.getErrorCode()andThrowable.getMessage()) of the linked list (SQLException.getNextException()) of exceptionsstatic SQLProvidergetSQLProvider(java.lang.String driverClass, java.lang.String tableName, SQLProvider.DatabaseStoreType storeType)static SQLProvidergetSQLProvider(java.util.Map<java.lang.String,java.lang.Object> dataSourceProperties, java.lang.String tableName, SQLProvider.DatabaseStoreType storeType)static SQLProvider.FactorygetSQLProviderFactory(java.lang.String url)
-
-
-
Method Detail
-
getSQLProviderFactory
public static SQLProvider.Factory getSQLProviderFactory(java.lang.String url)
-
getSQLProvider
public static SQLProvider getSQLProvider(java.lang.String driverClass, java.lang.String tableName, SQLProvider.DatabaseStoreType storeType)
-
getSQLProvider
public static SQLProvider getSQLProvider(java.util.Map<java.lang.String,java.lang.Object> dataSourceProperties, java.lang.String tableName, SQLProvider.DatabaseStoreType storeType)
-
appendSQLExceptionDetails
public static java.lang.StringBuilder appendSQLExceptionDetails(java.lang.StringBuilder errorMessage, java.sql.SQLException exception, java.lang.CharSequence sqlStatements)Append toerrorMessagea detailed description of the providedSQLException.
The information appended are:- SQL STATEMENTS
- SQL EXCEPTIONS details (
SQLException.getSQLState(),SQLException.getErrorCode()andThrowable.getMessage()) of the linked list (SQLException.getNextException()) of exceptions
- Parameters:
errorMessage- the target where append the exceptions detailsexception- the SQL exception (or warning)sqlStatements- the SQL statements related to theexception- Returns:
errorMessage
-
appendSQLExceptionDetails
public static java.lang.StringBuilder appendSQLExceptionDetails(java.lang.StringBuilder errorMessage, java.sql.SQLException exception)Append toerrorMessagea detailed description of the providedSQLException.
The information appended are:- SQL EXCEPTIONS details (
SQLException.getSQLState(),SQLException.getErrorCode()andThrowable.getMessage()) of the linked list (SQLException.getNextException()) of exceptions
- Parameters:
errorMessage- the target where append the exceptions detailsexception- the SQL exception (or warning)- Returns:
errorMessage
- SQL EXCEPTIONS details (
-
-