code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
@Override public boolean supportsAggressiveRelease() { return forceSupportsAggressiveRelease || connectionProvider.supportsAggressiveRelease(); }
This {@link ConnectionProvider} extends any other ConnectionProvider that would be used by default taken the current configuration properties. @author Vlad Mihalcea
supportsAggressiveRelease
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/jdbc/ConnectionProviderDelegate.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/jdbc/ConnectionProviderDelegate.java
Apache-2.0
@Override public DatabaseConnectionInfo getDatabaseConnectionInfo(Dialect dialect) { return connectionProvider.getDatabaseConnectionInfo( dialect ); }
This {@link ConnectionProvider} extends any other ConnectionProvider that would be used by default taken the current configuration properties. @author Vlad Mihalcea
getDatabaseConnectionInfo
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/jdbc/ConnectionProviderDelegate.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/jdbc/ConnectionProviderDelegate.java
Apache-2.0
@Override public DatabaseConnectionInfo getDatabaseConnectionInfo(Dialect dialect, ExtractedDatabaseMetaData metaData) { return connectionProvider.getDatabaseConnectionInfo( dialect, metaData ); }
This {@link ConnectionProvider} extends any other ConnectionProvider that would be used by default taken the current configuration properties. @author Vlad Mihalcea
getDatabaseConnectionInfo
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/jdbc/ConnectionProviderDelegate.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/jdbc/ConnectionProviderDelegate.java
Apache-2.0
@Override public boolean isUnwrappableAs(Class<?> unwrapType) { return connectionProvider.isUnwrappableAs( unwrapType ); }
This {@link ConnectionProvider} extends any other ConnectionProvider that would be used by default taken the current configuration properties. @author Vlad Mihalcea
isUnwrappableAs
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/jdbc/ConnectionProviderDelegate.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/jdbc/ConnectionProviderDelegate.java
Apache-2.0
@Override public <T> T unwrap(Class<T> unwrapType) { return connectionProvider.unwrap( unwrapType ); }
This {@link ConnectionProvider} extends any other ConnectionProvider that would be used by default taken the current configuration properties. @author Vlad Mihalcea
unwrap
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/jdbc/ConnectionProviderDelegate.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/jdbc/ConnectionProviderDelegate.java
Apache-2.0
@Override public void stop() { if ( connectionProvider instanceof Stoppable ) { ( (Stoppable) connectionProvider ).stop(); } }
This {@link ConnectionProvider} extends any other ConnectionProvider that would be used by default taken the current configuration properties. @author Vlad Mihalcea
stop
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/jdbc/ConnectionProviderDelegate.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/jdbc/ConnectionProviderDelegate.java
Apache-2.0
public LinkedList<String> getSqlQueries() { return sqlQueries; }
@author Vlad Mihalcea @deprecated use {@link SQLStatementInspector} instead
getSqlQueries
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/jdbc/SQLStatementInterceptor.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/jdbc/SQLStatementInterceptor.java
Apache-2.0
public void assertExecuted(String expected) { assertTrue(sqlQueries.contains( expected )); }
@author Vlad Mihalcea @deprecated use {@link SQLStatementInspector} instead
assertExecuted
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/jdbc/SQLStatementInterceptor.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/jdbc/SQLStatementInterceptor.java
Apache-2.0
public void assertExecutedCount(int expected) { assertEquals(expected, sqlQueries.size()); }
@author Vlad Mihalcea @deprecated use {@link SQLStatementInspector} instead
assertExecutedCount
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/jdbc/SQLStatementInterceptor.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/jdbc/SQLStatementInterceptor.java
Apache-2.0
public int getQueryCount() { return sqlQueries.size(); }
@author Vlad Mihalcea @deprecated use {@link SQLStatementInspector} instead
getQueryCount
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/jdbc/SQLStatementInterceptor.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/jdbc/SQLStatementInterceptor.java
Apache-2.0
private Connection newConnection() { try { return DriverManager.getConnection( jdbcProperties.getUrl(), jdbcProperties.getUser(), jdbcProperties.getPassword() ); } catch ( SQLException e ) { throw new IllegalStateException( e ); } }
Obtain a new JDBC Connection. @return JDBC Connection
newConnection
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/jdbc/leak/ConnectionLeakUtil.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/jdbc/leak/ConnectionLeakUtil.java
Apache-2.0
@Override public TransactionSynchronizationRegistry getSynchronizationRegistry() { return synchronizationRegistry; }
A test-specific implementation of the JtaPlatform contract for testing JTA-based functionality. @author Steve Ebersole
getSynchronizationRegistry
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/jta/TestingJtaPlatformImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/jta/TestingJtaPlatformImpl.java
Apache-2.0
public static TransactionManager transactionManager() { return INSTANCE.retrieveTransactionManager(); }
A test-specific implementation of the JtaPlatform contract for testing JTA-based functionality. @author Steve Ebersole
transactionManager
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/jta/TestingJtaPlatformImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/jta/TestingJtaPlatformImpl.java
Apache-2.0
public static UserTransaction userTransaction() { return INSTANCE.retrieveUserTransaction(); }
A test-specific implementation of the JtaPlatform contract for testing JTA-based functionality. @author Steve Ebersole
userTransaction
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/jta/TestingJtaPlatformImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/jta/TestingJtaPlatformImpl.java
Apache-2.0
public static TransactionSynchronizationRegistry synchronizationRegistry() { return INSTANCE.synchronizationRegistry; }
A test-specific implementation of the JtaPlatform contract for testing JTA-based functionality. @author Steve Ebersole
synchronizationRegistry
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/jta/TestingJtaPlatformImpl.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/jta/TestingJtaPlatformImpl.java
Apache-2.0
protected static Dialect getDialect() { return DIALECT; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
getDialect
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected Configuration configuration() { return configuration; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
configuration
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected StandardServiceRegistryImpl serviceRegistry() { return serviceRegistry; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
serviceRegistry
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected SessionFactoryImplementor sessionFactory() { return sessionFactory; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
sessionFactory
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected Session openSession() throws HibernateException { session = sessionFactory().openSession(); return session; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
openSession
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected Session openSession(Interceptor interceptor) throws HibernateException { session = sessionFactory().withOptions().interceptor( interceptor ).openSession(); return session; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
openSession
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
@BeforeClassOnce protected void buildSessionFactory() { buildSessionFactory( null ); }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
buildSessionFactory
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected void buildSessionFactory(Consumer<Configuration> configurationAdapter) { // for now, build the configuration to get all the property settings BootstrapServiceRegistry bootRegistry = null; try { bootRegistry = buildBootstrapServiceRegistry(); configuration = constructAndConfigureConfiguration( boot...
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
buildSessionFactory
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected void rebuildSessionFactory() { rebuildSessionFactory( null ); }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
rebuildSessionFactory
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected void rebuildSessionFactory(Consumer<Configuration> configurationAdapter) { if ( sessionFactory == null ) { return; } try { sessionFactory.close(); sessionFactory = null; configuration = null; serviceRegistry.destroy(); serviceRegistry = null; } catch (Exception ignore) { } bui...
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
rebuildSessionFactory
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected Configuration constructAndConfigureConfiguration(BootstrapServiceRegistry bootstrapServiceRegistry) { Configuration cfg = constructConfiguration( bootstrapServiceRegistry ); configure( cfg ); return cfg; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
constructAndConfigureConfiguration
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
private void afterConstructAndConfigureConfiguration(Configuration cfg) { addMappings( cfg ); applyCacheSettings( cfg ); afterConfigurationBuilt( cfg ); }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
afterConstructAndConfigureConfiguration
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected Configuration constructConfiguration(BootstrapServiceRegistry bootstrapServiceRegistry) { final Configuration configuration = new Configuration( bootstrapServiceRegistry ); configuration.setProperty( AvailableSettings.CACHE_REGION_FACTORY, CachingRegionFactory.class.getName() ); if ( createSchema() ) { ...
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
constructConfiguration
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected void addMappings(Configuration configuration) { final String[] mappings = getMappings(); if ( mappings != null ) { for ( String mapping : mappings ) { if ( mapping.startsWith( "/" ) ) { configuration.addResource( mapping ); } else { configuration.addResource( getBaseForMappings() ...
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
addMappings
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected String[] getMappings() { return NO_MAPPINGS; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
getMappings
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected String getBaseForMappings() { return "org/hibernate/orm/test/"; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
getBaseForMappings
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected Class<?>[] getAnnotatedClasses() { return NO_CLASSES; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
getAnnotatedClasses
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected String[] getAnnotatedPackages() { return NO_MAPPINGS; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
getAnnotatedPackages
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected String[] getOrmXmlFiles() { return NO_MAPPINGS; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
getOrmXmlFiles
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected void applyCacheSettings(Configuration configuration) { if ( getCacheConcurrencyStrategy() != null ) { configuration.setProperty( AvailableSettings.DEFAULT_CACHE_CONCURRENCY_STRATEGY, getCacheConcurrencyStrategy() ); configuration.setSharedCacheMode( SharedCacheMode.ALL ); } }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
applyCacheSettings
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected String getCacheConcurrencyStrategy() { return null; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
getCacheConcurrencyStrategy
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected BootstrapServiceRegistry buildBootstrapServiceRegistry() { final BootstrapServiceRegistryBuilder builder = new BootstrapServiceRegistryBuilder(); builder.applyClassLoader( getClass().getClassLoader() ); prepareBootstrapRegistryBuilder( builder ); return builder.build(); }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
buildBootstrapServiceRegistry
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected StandardServiceRegistryImpl buildServiceRegistry( BootstrapServiceRegistry bootRegistry, Configuration configuration) { try { final Properties properties = new Properties(); properties.putAll( configuration.getProperties() ); resolvePlaceHolders( properties ); final LoadedConfig loadedConfig ...
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
buildServiceRegistry
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected boolean createSchema() { return true; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase} @author Steve Ebersole
createSchema
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected String createSecondSchema() { return null; }
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
createSecondSchema
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected boolean rebuildSessionFactoryOnError() { return true; }
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
rebuildSessionFactoryOnError
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
@AfterClassOnce @SuppressWarnings("unused") protected void releaseSessionFactory() { if ( sessionFactory == null ) { return; } sessionFactory.close(); sessionFactory = null; configuration = null; if ( serviceRegistry != null ) { if ( serviceRegistry.isActive() ) { try { serviceRegistry.dest...
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
releaseSessionFactory
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
@OnFailure @OnExpectedFailure @SuppressWarnings("unused") public void onFailure() { if ( rebuildSessionFactoryOnError() ) { rebuildSessionFactory(); } }
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
onFailure
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
@Before public final void beforeTest() throws Exception { prepareTest(); }
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
beforeTest
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
@After public final void afterTest() throws Exception { // see https://github.com/hibernate/hibernate-orm/pull/3412#issuecomment-678338398 if ( getDialect() instanceof H2Dialect ) { ReflectHelper.getMethod( Class.forName( "org.h2.util.DateTimeUtils" ), "resetCalendar" ) .invoke( null ); } completeStray...
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
afterTest
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
private void completeStrayTransaction() { if ( session == null ) { // nothing to do return; } final SessionImplementor sessionImplementor = (SessionImplementor) session; if ( sessionImplementor.isClosed() ) { // nothing to do return; } if ( !session.isConnected() ) { // nothing to do re...
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
completeStrayTransaction
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
private static boolean canRollback(SessionImplementor sessionImplementor) { return sessionImplementor.getTransactionCoordinator() .getTransactionDriverControl().getStatus().canRollback(); }
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
canRollback
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected void cleanupCache() { if ( sessionFactory != null ) { sessionFactory.getCache().evictAllRegions(); } }
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
cleanupCache
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected boolean isCleanupTestDataRequired() { return false; }
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
isCleanupTestDataRequired
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected boolean isCleanupTestDataUsingBulkDelete() { return false; }
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
isCleanupTestDataUsingBulkDelete
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected void cleanupTestData() throws Exception { sessionFactory.getSchemaManager().truncateMappedObjects(); // if ( isCleanupTestDataUsingBulkDelete() ) { // doInHibernate( this::sessionFactory, session -> { // session.createMutationQuery( "delete from java.lang.Object" ) // .executeUpdate(); // } ); ...
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
cleanupTestData
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
private void cleanupSession() { if ( session != null && ! ( (SessionImplementor) session ).isClosed() ) { session.close(); } session = null; }
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
cleanupSession
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
@Override public void execute(Connection connection) throws SQLException { connection.rollback(); }
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
execute
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
@AllowSysOut protected void assertAllDataRemoved() { if ( !createSchema() ) { return; // no tables were created... } if ( !Boolean.getBoolean( VALIDATE_DATA_CLEANUP ) ) { return; } final Session tmpSession = sessionFactory.openSession(); final Transaction transaction = tmpSession.beginTransaction();...
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
assertAllDataRemoved
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected boolean readCommittedIsolationMaintained(String scenario) { int isolation = Connection.TRANSACTION_READ_UNCOMMITTED; try ( Session testSession = openSession() ) { isolation = testSession.doReturningWork( new AbstractReturningWork<>() { @Override public Integer execute(Connection connec...
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
readCommittedIsolationMaintained
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
@Override public Integer execute(Connection connection) throws SQLException { return connection.getTransactionIsolation(); }
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
execute
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected void inTransaction(Consumer<SessionImplementor> action) { TransactionUtil2.inTransaction( sessionFactory(), action ); }
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
inTransaction
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected <T> T fromTransaction(Function<SessionImplementor,T> action) { return TransactionUtil2.fromTransaction( sessionFactory(), action ); }
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
fromTransaction
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected void inTransaction(SessionImplementor session, Consumer<SessionImplementor> action) { TransactionUtil2.inTransaction( session, action ); }
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
inTransaction
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected void inSession(Consumer<SessionImplementor> action) { TransactionUtil2.inSession( sessionFactory(), action ); }
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
inSession
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected void inStatelessSession(Consumer<StatelessSession> action) { TransactionUtil2.inStatelessSession( sessionFactory(), action ); }
Feature supported only by H2 dialect. @return Provide not empty name to create second schema.
inStatelessSession
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
Apache-2.0
protected Dialect getDialect() { return serviceRegistry != null ? serviceRegistry.getService(JdbcEnvironment.class).getDialect() : BaseCoreFunctionalTestCase.getDialect(); }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase}. Much like {@link BaseCoreFunctionalTestCase}, except that this form uses the new bootstrapping APIs while BaseCoreFunctionalTestCase continues to use (the neutered form of) Configuration. @author Steve Ebersole
getDialect
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected StandardServiceRegistry serviceRegistry() { return serviceRegistry; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase}. Much like {@link BaseCoreFunctionalTestCase}, except that this form uses the new bootstrapping APIs while BaseCoreFunctionalTestCase continues to use (the neutered form of) Configuration. @author Steve Ebersole
serviceRegistry
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected MetadataImplementor metadata() { return metadata; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase}. Much like {@link BaseCoreFunctionalTestCase}, except that this form uses the new bootstrapping APIs while BaseCoreFunctionalTestCase continues to use (the neutered form of) Configuration. @author Steve Ebersole
metadata
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected SessionFactoryImplementor sessionFactory() { return sessionFactory; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase}. Much like {@link BaseCoreFunctionalTestCase}, except that this form uses the new bootstrapping APIs while BaseCoreFunctionalTestCase continues to use (the neutered form of) Configuration. @author Steve Ebersole
sessionFactory
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected Session openSession() throws HibernateException { session = sessionFactory().openSession(); return session; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase}. Much like {@link BaseCoreFunctionalTestCase}, except that this form uses the new bootstrapping APIs while BaseCoreFunctionalTestCase continues to use (the neutered form of) Configuration. @author Steve Ebersole
openSession
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected Session openSession(Interceptor interceptor) throws HibernateException { session = sessionFactory().withOptions().interceptor( interceptor ).openSession(); return session; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase}. Much like {@link BaseCoreFunctionalTestCase}, except that this form uses the new bootstrapping APIs while BaseCoreFunctionalTestCase continues to use (the neutered form of) Configuration. @author Steve Ebersole
openSession
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected Session getSession() { return session; }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase}. Much like {@link BaseCoreFunctionalTestCase}, except that this form uses the new bootstrapping APIs while BaseCoreFunctionalTestCase continues to use (the neutered form of) Configuration. @author Steve Ebersole
getSession
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected void rebuildSessionFactory() { releaseResources(); buildResources(); }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase}. Much like {@link BaseCoreFunctionalTestCase}, except that this form uses the new bootstrapping APIs while BaseCoreFunctionalTestCase continues to use (the neutered form of) Configuration. @author Steve Ebersole
rebuildSessionFactory
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected void cleanupCache() { if ( sessionFactory != null ) { sessionFactory.getCache().evictAllRegions(); } }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase}. Much like {@link BaseCoreFunctionalTestCase}, except that this form uses the new bootstrapping APIs while BaseCoreFunctionalTestCase continues to use (the neutered form of) Configuration. @author Steve Ebersole
cleanupCache
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
@BeforeClassOnce protected void startUp() { buildResources(); }
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase}. Much like {@link BaseCoreFunctionalTestCase}, except that this form uses the new bootstrapping APIs while BaseCoreFunctionalTestCase continues to use (the neutered form of) Configuration. @author Steve Ebersole
startUp
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected void buildResources() { final StandardServiceRegistryBuilder serviceRegistryBuilder = constructStandardServiceRegistryBuilder(); serviceRegistry = serviceRegistryBuilder.build(); afterStandardServiceRegistryBuilt( serviceRegistry ); final MetadataSources metadataSources = new MetadataSources( servic...
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase}. Much like {@link BaseCoreFunctionalTestCase}, except that this form uses the new bootstrapping APIs while BaseCoreFunctionalTestCase continues to use (the neutered form of) Configuration. @author Steve Ebersole
buildResources
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected final StandardServiceRegistryBuilder constructStandardServiceRegistryBuilder() { final BootstrapServiceRegistryBuilder builder = new BootstrapServiceRegistryBuilder(); builder.applyClassLoader( getClass().getClassLoader() ); // by default, we do not share the BootstrapServiceRegistry nor the StandardSer...
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase}. Much like {@link BaseCoreFunctionalTestCase}, except that this form uses the new bootstrapping APIs while BaseCoreFunctionalTestCase continues to use (the neutered form of) Configuration. @author Steve Ebersole
constructStandardServiceRegistryBuilder
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
private static Map<String, Object> defaultSettings() { final Map<String,Object> settings = new HashMap<>(); settings.put( PersistentTableStrategy.DROP_ID_TABLES, "true" ); settings.put( GlobalTemporaryTableMutationStrategy.DROP_ID_TABLES, "true" ); settings.put( LocalTemporaryTableMutationStrategy.DROP_ID_TABLE...
Applies functional testing logic for core Hibernate testing on top of {@link BaseUnitTestCase}. Much like {@link BaseCoreFunctionalTestCase}, except that this form uses the new bootstrapping APIs while BaseCoreFunctionalTestCase continues to use (the neutered form of) Configuration. @author Steve Ebersole
defaultSettings
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
@SuppressWarnings("UnusedParameters") protected void configureBootstrapServiceRegistryBuilder(BootstrapServiceRegistryBuilder registryBuilder) { }
Apply any desired config to the BootstrapServiceRegistryBuilder to be incorporated into the built BootstrapServiceRegistry @param registryBuilder The BootstrapServiceRegistryBuilder
configureBootstrapServiceRegistryBuilder
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
@SuppressWarnings("UnusedParameters") protected void afterBootstrapServiceRegistryBuilt(BootstrapServiceRegistry bootstrapServiceRegistry) { }
Hook to allow tests to use the BootstrapServiceRegistry if they wish @param bootstrapServiceRegistry The BootstrapServiceRegistry
afterBootstrapServiceRegistryBuilt
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
private void initialize(StandardServiceRegistryBuilder builder) { final Dialect dialect = BaseCoreFunctionalTestCase.getDialect(); builder.applySetting( AvailableSettings.CACHE_REGION_FACTORY, CachingRegionFactory.class.getName() ); if ( createSchema() ) { builder.applySetting( AvailableSettings.HBM2DDL_AUTO, ...
Hook to allow tests to use the BootstrapServiceRegistry if they wish @param bootstrapServiceRegistry The BootstrapServiceRegistry
initialize
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected boolean createSchema() { return true; }
Hook to allow tests to use the BootstrapServiceRegistry if they wish @param bootstrapServiceRegistry The BootstrapServiceRegistry
createSchema
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected String createSecondSchema() { // poorly named, yes, but to keep migration easy for existing BaseCoreFunctionalTestCase // impls I kept the same name from there return null; }
Hook to allow tests to use the BootstrapServiceRegistry if they wish @param bootstrapServiceRegistry The BootstrapServiceRegistry
createSecondSchema
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
@SuppressWarnings("UnusedParameters") protected void configureStandardServiceRegistryBuilder(StandardServiceRegistryBuilder serviceRegistryBuilder) { }
Apply any desired config to the StandardServiceRegistryBuilder to be incorporated into the built StandardServiceRegistry @param serviceRegistryBuilder The StandardServiceRegistryBuilder
configureStandardServiceRegistryBuilder
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
@SuppressWarnings("UnusedParameters") protected void afterStandardServiceRegistryBuilt(StandardServiceRegistry standardServiceRegistry) { }
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
afterStandardServiceRegistryBuilt
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected void applyMetadataSources(MetadataSources sources) { for ( String mapping : getMappings() ) { sources.addResource( getBaseForMappings() + mapping ); } for ( Class<?> annotatedClass : getAnnotatedClasses() ) { sources.addAnnotatedClass( annotatedClass ); } for ( String annotatedPackage : getAnn...
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
applyMetadataSources
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected String[] getMappings() { return NO_MAPPINGS; }
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
getMappings
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected String getBaseForMappings() { return "org/hibernate/test/"; }
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
getBaseForMappings
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected Class<?>[] getAnnotatedClasses() { return NO_CLASSES; }
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
getAnnotatedClasses
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected String[] getAnnotatedPackages() { return NO_MAPPINGS; }
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
getAnnotatedPackages
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected String[] getXmlFiles() { return NO_MAPPINGS; }
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
getXmlFiles
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected void initialize(MetadataBuilder metadataBuilder) { metadataBuilder.applyImplicitNamingStrategy( ImplicitNamingStrategyLegacyJpaImpl.INSTANCE ); }
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
initialize
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected boolean overrideCacheStrategy() { return true; }
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
overrideCacheStrategy
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected String getCacheConcurrencyStrategy() { return null; }
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
getCacheConcurrencyStrategy
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected final void applyCacheSettings(Metadata metadata) { for ( PersistentClass entityBinding : metadata.getEntityBindings() ) { if ( !entityBinding.isInherited() ) { if ( !hasLob( entityBinding ) ) { final RootClass rootClass = (RootClass) entityBinding; rootClass.setCacheConcurrencyStrategy( get...
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
applyCacheSettings
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
private static boolean isLob(Collection collectionBinding) { return collectionBinding.getElement().isSimpleValue() && isLob( (SimpleValue) collectionBinding.getElement() ); }
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
isLob
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
private static boolean hasLob(PersistentClass entityBinding) { for ( Property prop : entityBinding.getPropertyClosure() ) { if ( prop.getValue().isSimpleValue() ) { if ( isLob( (SimpleValue) prop.getValue() ) ) { return true; } } } return false; }
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
hasLob
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
private static boolean isLob(SimpleValue value) { final String typeName = value.getTypeName(); if ( typeName != null ) { final String significantTypeNamePart = typeName.substring( typeName.lastIndexOf( '.' ) + 1 ) .toLowerCase( Locale.ROOT ); switch ( significantTypeNamePart ) { case "blob": ...
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
isLob
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
private void initialize(SessionFactoryBuilder sessionFactoryBuilder, Metadata metadata) { // todo : this is where we need to apply cache settings to be like BaseCoreFunctionalTestCase // it reads the class/collection mappings and creates corresponding // CacheRegionDescription references. // // Ultimately ...
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
initialize
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
@AfterClassOnce @SuppressWarnings("unused") protected void shutDown() { releaseResources(); }
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
shutDown
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
@AllowSysOut @AllowPrintStacktrace protected void releaseResources() { if ( sessionFactory != null ) { try { sessionFactory.close(); } catch (Exception e) { System.err.println( "Unable to release SessionFactory : " + e.getMessage() ); e.printStackTrace(); } } sessionFactory = null; if...
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
releaseResources
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
@OnFailure @OnExpectedFailure @SuppressWarnings("unused") public void onFailure() { if ( rebuildSessionFactoryOnError() ) { rebuildSessionFactory(); } }
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
onFailure
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
protected boolean rebuildSessionFactoryOnError() { return true; }
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
rebuildSessionFactoryOnError
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0
@Before public final void beforeTest() throws Exception { prepareTest(); }
Hook to allow tests to use the StandardServiceRegistry if they wish @param standardServiceRegistry The StandardServiceRegistry
beforeTest
java
hibernate/hibernate-orm
hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
https://github.com/hibernate/hibernate-orm/blob/master/hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseNonConfigCoreFunctionalTestCase.java
Apache-2.0