Class DialectFactoryBean

  • All Implemented Interfaces:
    org.springframework.beans.factory.FactoryBean<Dialect>

    public class DialectFactoryBean
    extends java.lang.Object
    implements org.springframework.beans.factory.FactoryBean<Dialect>
    Factory for the DB dialect. Allows dialect detection logic to be centralized and the dialect to be injected where required as a singleton from the container.
    Since:
    6.0
    Author:
    dward
    • Constructor Detail

      • DialectFactoryBean

        public DialectFactoryBean()
    • Method Detail

      • setDataSource

        public void setDataSource​(javax.sql.DataSource dataSource)
      • getObject

        public Dialect getObject()
                          throws java.sql.SQLException
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean<Dialect>
        Throws:
        java.sql.SQLException
      • getObjectType

        public java.lang.Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<Dialect>
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean<Dialect>