public class BasicTestingJdbcServiceImpl extends Object implements JdbcServices, ServiceRegistryAwareService
JdbcServices contract for use by tests.
An alternative approach is to build a ServiceRegistryTestingImpl and grab the JdbcServices
from that.| Constructor and Description |
|---|
BasicTestingJdbcServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
JdbcConnectionAccess |
getBootstrapJdbcConnectionAccess()
Obtain a JdbcConnectionAccess usable from bootstrap actions
(hbm2ddl.auto, Dialect resolution, etc).
|
Dialect |
getDialect()
Obtain the dialect of the database.
|
ExtractedDatabaseMetaData |
getExtractedMetaDataSupport()
Obtain information about supported behavior reported by the JDBC driver.
|
JdbcEnvironment |
getJdbcEnvironment()
Obtain the JdbcEnvironment backing this JdbcServices instance.
|
LobCreator |
getLobCreator(LobCreationContext lobCreationContext)
Create an instance of a
LobCreator appropriate for the current environment, mainly meant to account for
variance between JDBC 4 (<= JDK 1.6) and JDBC3 (>= JDK 1.5). |
ResultSetWrapper |
getResultSetWrapper()
Obtain service for wrapping a
ResultSet in a "column name cache" wrapper. |
SqlExceptionHelper |
getSqlExceptionHelper()
Obtain service for dealing with exceptions.
|
SqlStatementLogger |
getSqlStatementLogger()
Obtain service for logging SQL statements.
|
void |
injectServices(ServiceRegistryImplementor serviceRegistry)
Callback to inject the registry.
|
void |
prepare(boolean allowAggressiveRelease) |
void |
release() |
void |
start() |
void |
stop() |
public void start()
public void stop()
public void prepare(boolean allowAggressiveRelease)
throws SQLException
SQLExceptionpublic void release()
public JdbcEnvironment getJdbcEnvironment()
JdbcServicesgetJdbcEnvironment in interface JdbcServicespublic JdbcConnectionAccess getBootstrapJdbcConnectionAccess()
JdbcServicesgetBootstrapJdbcConnectionAccess in interface JdbcServicespublic Dialect getDialect()
JdbcServicesgetDialect in interface JdbcServicespublic LobCreator getLobCreator(LobCreationContext lobCreationContext)
JdbcServicesLobCreator appropriate for the current environment, mainly meant to account for
variance between JDBC 4 (<= JDK 1.6) and JDBC3 (>= JDK 1.5).getLobCreator in interface JdbcServiceslobCreationContext - The context in which the LOB is being createdpublic ResultSetWrapper getResultSetWrapper()
JdbcServicesResultSet in a "column name cache" wrapper.getResultSetWrapper in interface JdbcServicespublic SqlStatementLogger getSqlStatementLogger()
JdbcServicesgetSqlStatementLogger in interface JdbcServicespublic SqlExceptionHelper getSqlExceptionHelper()
JdbcServicesgetSqlExceptionHelper in interface JdbcServicespublic ExtractedDatabaseMetaData getExtractedMetaDataSupport()
JdbcServicesgetExtractedMetaDataSupport in interface JdbcServicespublic void injectServices(ServiceRegistryImplementor serviceRegistry)
ServiceRegistryAwareServiceinjectServices in interface ServiceRegistryAwareServiceserviceRegistry - The registryCopyright © 2001-2022 Red Hat, Inc. All Rights Reserved.