org.alfresco.hibernate
Class DialectFactoryBean

java.lang.Object
  extended by 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.


Constructor Summary
DialectFactoryBean()
           
 
Method Summary
 java.lang.Object getObject()
           
 java.lang.Class getObjectType()
           
 boolean isSingleton()
           
 void setLocalSessionFactory(org.springframework.orm.hibernate3.LocalSessionFactoryBean localSessionFactory)
          Sets the local session factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialectFactoryBean

public DialectFactoryBean()
Method Detail

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.