Class DialectFactoryBean

java.lang.Object
org.alfresco.repo.domain.dialect.DialectFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<Dialect>

public class DialectFactoryBean extends 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 Details

    • DialectFactoryBean

      public DialectFactoryBean()
  • Method Details

    • setDataSource

      public void setDataSource(DataSource dataSource)
    • getObject

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

      public 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>