Class DialectFactoryImpl

    • Constructor Detail

      • DialectFactoryImpl

        public DialectFactoryImpl()
    • Method Detail

      • setDialectResolver

        public void setDialectResolver​(DialectResolver dialectResolver)
        Intended only for use from testing.
        dialectResolver - The DialectResolver to use
      • buildDialect

        public Dialect buildDialect​(Map<String,​Object> configValues,
                                    DialectResolutionInfoSource resolutionInfoSource)
                             throws HibernateException
        Description copied from interface: DialectFactory
        Builds an appropriate Dialect instance.

        If a dialect is explicitly named in the incoming properties, it should used. Otherwise, it is determined by dialect resolvers based on the passed connection.

        An exception is thrown if a dialect was not explicitly set and no resolver could make the determination from the given connection.

        Specified by:
        buildDialect in interface DialectFactory
        configValues - The configuration properties.
        resolutionInfoSource - Access to DialectResolutionInfo used to resolve the Dialect to use if not explicitly named
        The appropriate dialect instance.
        HibernateException - No dialect specified and no resolver could make the determination.