org.hibernate.engine.jdbc.connections.internal.ConnectionProviderInitiator Java Examples

The following examples show how to use org.hibernate.engine.jdbc.connections.internal.ConnectionProviderInitiator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NoJdbcConnectionProviderInitiator.java    From hibernate-reactive with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
public ConnectionProvider initiateService(Map configurationValues, ServiceRegistryImplementor registry) {
	ConnectionProvider provider = ConnectionProviderInitiator.INSTANCE.initiateService(configurationValues, registry);
	if (provider instanceof DriverManagerConnectionProviderImpl) {
		registry.getService( SchemaManagementTool.class )
				.setCustomDatabaseGenerationTarget( new ReactiveGenerationTarget(registry) );
		return NoJdbcConnectionProvider.INSTANCE;
	}
	return provider;
}
 
Example #2
Source File: Environment.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/**
 * @deprecated Use {@link ConnectionProviderInitiator#toIsolationNiceName} instead
 */
@Deprecated
public static String isolationLevelToString(int isolation) {
	return ConnectionProviderInitiator.toIsolationNiceName( isolation );
}
 
Example #3
Source File: StandardServiceInitiators.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
private static List<StandardServiceInitiator> buildStandardServiceInitiatorList() {
	final List<StandardServiceInitiator> serviceInitiators = new ArrayList<StandardServiceInitiator>();

	serviceInitiators.add( CfgXmlAccessServiceInitiator.INSTANCE );
	serviceInitiators.add( ConfigurationServiceInitiator.INSTANCE );
	serviceInitiators.add( PropertyAccessStrategyResolverInitiator.INSTANCE );

	serviceInitiators.add( ImportSqlCommandExtractorInitiator.INSTANCE );
	serviceInitiators.add( SchemaManagementToolInitiator.INSTANCE );

	serviceInitiators.add( JdbcEnvironmentInitiator.INSTANCE );
	serviceInitiators.add( JndiServiceInitiator.INSTANCE );
	serviceInitiators.add( JmxServiceInitiator.INSTANCE );

	serviceInitiators.add( PersisterClassResolverInitiator.INSTANCE );
	serviceInitiators.add( PersisterFactoryInitiator.INSTANCE );

	serviceInitiators.add( ConnectionProviderInitiator.INSTANCE );
	serviceInitiators.add( MultiTenantConnectionProviderInitiator.INSTANCE );
	serviceInitiators.add( DialectResolverInitiator.INSTANCE );
	serviceInitiators.add( DialectFactoryInitiator.INSTANCE );
	serviceInitiators.add( BatchBuilderInitiator.INSTANCE );
	serviceInitiators.add( JdbcServicesInitiator.INSTANCE );
	serviceInitiators.add( RefCursorSupportInitiator.INSTANCE );

	serviceInitiators.add( QueryTranslatorFactoryInitiator.INSTANCE );
	serviceInitiators.add( MutableIdentifierGeneratorFactoryInitiator.INSTANCE);

	serviceInitiators.add( JtaPlatformResolverInitiator.INSTANCE );
	serviceInitiators.add( JtaPlatformInitiator.INSTANCE );

	serviceInitiators.add( SessionFactoryServiceRegistryFactoryInitiator.INSTANCE );

	serviceInitiators.add( RegionFactoryInitiator.INSTANCE );

	serviceInitiators.add( TransactionCoordinatorBuilderInitiator.INSTANCE );

	serviceInitiators.add( ManagedBeanRegistryInitiator.INSTANCE );

	return Collections.unmodifiableList( serviceInitiators );
}