Package org.hibernate.testing.boot
Class BasicTestingJdbcServiceImpl
- java.lang.Object
-
- org.hibernate.testing.boot.BasicTestingJdbcServiceImpl
-
- All Implemented Interfaces:
java.io.Serializable,org.hibernate.engine.jdbc.spi.JdbcServices,org.hibernate.service.Service,org.hibernate.service.spi.ServiceRegistryAwareService
public class BasicTestingJdbcServiceImpl extends java.lang.Object implements org.hibernate.engine.jdbc.spi.JdbcServices, org.hibernate.service.spi.ServiceRegistryAwareServiceImplementation of theJdbcServicescontract for use by tests. An alternative approach is to build aServiceRegistryTestingImpland grab theJdbcServicesfrom that.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BasicTestingJdbcServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccessgetBootstrapJdbcConnectionAccess()org.hibernate.dialect.DialectgetDialect()org.hibernate.engine.jdbc.env.spi.ExtractedDatabaseMetaDatagetExtractedMetaDataSupport()org.hibernate.engine.jdbc.env.spi.JdbcEnvironmentgetJdbcEnvironment()org.hibernate.engine.jdbc.LobCreatorgetLobCreator(org.hibernate.engine.jdbc.LobCreationContext lobCreationContext)org.hibernate.engine.jdbc.spi.ResultSetWrappergetResultSetWrapper()org.hibernate.engine.jdbc.spi.SqlExceptionHelpergetSqlExceptionHelper()org.hibernate.engine.jdbc.spi.SqlStatementLoggergetSqlStatementLogger()voidinjectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry)voidprepare(boolean allowAggressiveRelease)voidrelease()voidstart()voidstop()
-
-
-
Method Detail
-
start
public void start()
-
stop
public void stop()
-
prepare
public void prepare(boolean allowAggressiveRelease) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
release
public void release()
-
getJdbcEnvironment
public org.hibernate.engine.jdbc.env.spi.JdbcEnvironment getJdbcEnvironment()
- Specified by:
getJdbcEnvironmentin interfaceorg.hibernate.engine.jdbc.spi.JdbcServices
-
getBootstrapJdbcConnectionAccess
public org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess getBootstrapJdbcConnectionAccess()
- Specified by:
getBootstrapJdbcConnectionAccessin interfaceorg.hibernate.engine.jdbc.spi.JdbcServices
-
getDialect
public org.hibernate.dialect.Dialect getDialect()
- Specified by:
getDialectin interfaceorg.hibernate.engine.jdbc.spi.JdbcServices
-
getLobCreator
public org.hibernate.engine.jdbc.LobCreator getLobCreator(org.hibernate.engine.jdbc.LobCreationContext lobCreationContext)
- Specified by:
getLobCreatorin interfaceorg.hibernate.engine.jdbc.spi.JdbcServices
-
getResultSetWrapper
public org.hibernate.engine.jdbc.spi.ResultSetWrapper getResultSetWrapper()
- Specified by:
getResultSetWrapperin interfaceorg.hibernate.engine.jdbc.spi.JdbcServices
-
getSqlStatementLogger
public org.hibernate.engine.jdbc.spi.SqlStatementLogger getSqlStatementLogger()
- Specified by:
getSqlStatementLoggerin interfaceorg.hibernate.engine.jdbc.spi.JdbcServices
-
getSqlExceptionHelper
public org.hibernate.engine.jdbc.spi.SqlExceptionHelper getSqlExceptionHelper()
- Specified by:
getSqlExceptionHelperin interfaceorg.hibernate.engine.jdbc.spi.JdbcServices
-
getExtractedMetaDataSupport
public org.hibernate.engine.jdbc.env.spi.ExtractedDatabaseMetaData getExtractedMetaDataSupport()
- Specified by:
getExtractedMetaDataSupportin interfaceorg.hibernate.engine.jdbc.spi.JdbcServices
-
injectServices
public void injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry)
- Specified by:
injectServicesin interfaceorg.hibernate.service.spi.ServiceRegistryAwareService
-
-