Class DataSourceBackedDialectFactory

java.lang.Object
io.helidon.integrations.cdi.hibernate.DataSourceBackedDialectFactory
All Implemented Interfaces:
Serializable, StandardServiceInitiator<DialectFactory>, DialectFactory, Service, ServiceContributor, ServiceInitiator<DialectFactory>

public final class DataSourceBackedDialectFactory extends Object implements DialectFactory, ServiceContributor, StandardServiceInitiator<DialectFactory>
A DialectFactory implementation (and a ServiceContributor, and a StandardServiceInitiator<DialectFactory>) that introspects DatabaseMetaData from a configured DataSource.

Hibernate is guaranteed to perform each of the following invocations, once, ever, in order:

  1. (The zero-argument constructor)
  2. The contribute(StandardServiceRegistryBuilder) method
  3. The initiateService(Map, ServiceRegistryImplementor) method (if applicable)

Then, at application runtime, after the sole instance of this class has been installed following the protocol above, Hibernate will call the buildDialect(Map, DialectResolutionInfoSource) method as appropriate.

See Also: