org.hibernate.engine.jdbc.dialect.internal.DialectResolverInitiator Java Examples

The following examples show how to use org.hibernate.engine.jdbc.dialect.internal.DialectResolverInitiator. 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: ReactiveServiceInitiators.java    From hibernate-reactive with GNU Lesser General Public License v2.1 4 votes vote down vote up
private static List<StandardServiceInitiator> buildInitialServiceInitiatorList() {
    final ArrayList<StandardServiceInitiator> serviceInitiators = new ArrayList<StandardServiceInitiator>();

    // Definitely exclusive to Hibernate Reactive, as it marks the registry as Reactive:
    serviceInitiators.add( ReactiveMarkerServiceInitiator.INSTANCE );

    // Exclusive to Hibernate Reactive:
    serviceInitiators.add( VertxInstanceInitiator.INSTANCE );

    // Exclusive to Hibernate Reactive:
    serviceInitiators.add( SqlClientPoolInitiator.INSTANCE );

    //Custom for Hibernate Reactive:
    serviceInitiators.add( ReactiveSessionFactoryBuilderInitiator.INSTANCE );

    serviceInitiators.add( BytecodeProviderInitiator.INSTANCE );
    serviceInitiators.add( ProxyFactoryFactoryInitiator.INSTANCE );

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

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

    //Custom for Hibernate Reactive:
    serviceInitiators.add( NoJdbcEnvironmentInitiator.INSTANCE );

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

    //Custom for Hibernate Reactive:
    serviceInitiators.add( ReactivePersisterClassResolverInitiator.INSTANCE );
    serviceInitiators.add( PersisterFactoryInitiator.INSTANCE );

    //Custom for Hibernate Reactive:
    serviceInitiators.add( NoJdbcConnectionProviderInitiator.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 );

    //Custom for Hibernate Reactive:
    serviceInitiators.add( ReactiveQueryTranslatorFactoryInitiator.INSTANCE );

    //Custom for Hibernate Reactive:
    serviceInitiators.add( ReactiveIdentifierGeneratorFactoryInitiator.INSTANCE);


    //Custom for Hibernate Reactive:
    serviceInitiators.add( NoJtaPlatformInitiator.INSTANCE );

    serviceInitiators.add( SessionFactoryServiceRegistryFactoryInitiator.INSTANCE );

    serviceInitiators.add( RegionFactoryInitiator.INSTANCE );

    serviceInitiators.add( TransactionCoordinatorBuilderInitiator.INSTANCE );

    serviceInitiators.add( ManagedBeanRegistryInitiator.INSTANCE );
    serviceInitiators.add( EntityCopyObserverFactoryInitiator.INSTANCE );

    serviceInitiators.trimToSize();

    return Collections.unmodifiableList( serviceInitiators );
}
 
Example #2
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 );
}
 
Example #3
Source File: RecordableBootstrap.java    From quarkus with Apache License 2.0 2 votes vote down vote up
private static List<StandardServiceInitiator> standardInitiatorList() {
    final ArrayList<StandardServiceInitiator> serviceInitiators = new ArrayList<StandardServiceInitiator>();

    //This one needs to be replaced after Metadata has been recorded:
    serviceInitiators.add(BootstrapOnlyProxyFactoryFactoryInitiator.INSTANCE);

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

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

    serviceInitiators.add(JdbcEnvironmentInitiator.INSTANCE);

    // Custom one!
    serviceInitiators.add(QuarkusJndiServiceInitiator.INSTANCE);

    // Custom one!
    serviceInitiators.add(DisabledJMXInitiator.INSTANCE);

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

    // Custom one!
    serviceInitiators.add(QuarkusConnectionProviderInitiator.INSTANCE);
    serviceInitiators.add(MultiTenantConnectionProviderInitiator.INSTANCE);
    serviceInitiators.add(DialectResolverInitiator.INSTANCE);

    // Custom one!
    serviceInitiators.add(DialectFactoryInitiator.INSTANCE);
    serviceInitiators.add(BatchBuilderInitiator.INSTANCE);
    serviceInitiators.add(JdbcServicesInitiator.INSTANCE);
    serviceInitiators.add(RefCursorSupportInitiator.INSTANCE);

    serviceInitiators.add(QueryTranslatorFactoryInitiator.INSTANCE);

    // Custom one! Also, this one has state so can't use the singleton.
    serviceInitiators.add(new QuarkusMutableIdentifierGeneratorFactoryInitiator());// MutableIdentifierGeneratorFactoryInitiator.INSTANCE);

    serviceInitiators.add(new QuarkusJtaPlatformInitiator(true));

    serviceInitiators.add(SessionFactoryServiceRegistryFactoryInitiator.INSTANCE);

    serviceInitiators.add(QuarkusRegionFactoryInitiator.INSTANCE);

    serviceInitiators.add(TransactionCoordinatorBuilderInitiator.INSTANCE);

    serviceInitiators.add(ManagedBeanRegistryInitiator.INSTANCE);

    serviceInitiators.add(EntityCopyObserverFactoryInitiator.INSTANCE);

    serviceInitiators.trimToSize();

    return serviceInitiators;
}