net.sourceforge.hivetranse.transaction.hibernate3
Class SessionFactoryContribution
java.lang.Object
org.apache.hivemind.impl.BaseLocatable
net.sourceforge.hivetranse.transaction.hibernate3.SessionFactoryContribution
- All Implemented Interfaces:
- org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder
public class SessionFactoryContribution
- extends org.apache.hivemind.impl.BaseLocatable
Represents a configuration parameter to the SessionProxyFactory
configured for building a Session
service.
Each instance defines a Hibernate configuration file.
Optionally, the instance can embed additional properties to be set
individually before Hibernate SessionFactory
is built.
- Author:
- Jean-Francois Poilpret
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
getLocation, setLocation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SessionFactoryContribution
public SessionFactoryContribution()
setConfig
public void setConfig(org.apache.hivemind.Resource config)
getConfig
public org.apache.hivemind.Resource getConfig()
setSettings
public void setSettings(java.util.List settings)
getSettings
public java.util.List getSettings()
setInterceptor
public void setInterceptor(org.hibernate.Interceptor interceptor)
getInterceptor
public org.hibernate.Interceptor getInterceptor()
setNamingStrategy
public void setNamingStrategy(org.hibernate.cfg.NamingStrategy namingStrategy)
getNamingStrategy
public org.hibernate.cfg.NamingStrategy getNamingStrategy()
addProperty
public void addProperty(NameValuePair property)
getProperties
public java.util.Properties getProperties()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object