org.alfresco.hibernate
Class DialectFactoryBean
java.lang.Object
org.alfresco.hibernate.DialectFactoryBean
- All Implemented Interfaces:
- org.springframework.beans.factory.FactoryBean
public class DialectFactoryBean
- extends java.lang.Object
- implements org.springframework.beans.factory.FactoryBean
Factory for the Hibernate dialect. Allows dialect detection logic to be centralized and the dialect to be injected
where required as a singleton from the container.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DialectFactoryBean
public DialectFactoryBean()
setLocalSessionFactory
public void setLocalSessionFactory(org.springframework.orm.hibernate3.LocalSessionFactoryBean localSessionFactory)
- Sets the local session factory.
- Parameters:
localSessionFactory
- the new local session factory
getObject
public java.lang.Object getObject()
throws java.sql.SQLException
- Specified by:
getObject
in interface org.springframework.beans.factory.FactoryBean
- Throws:
java.sql.SQLException
getObjectType
public java.lang.Class getObjectType()
- Specified by:
getObjectType
in interface org.springframework.beans.factory.FactoryBean
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface org.springframework.beans.factory.FactoryBean
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.