com.liferay.portal.dao.shard
Class ShardSessionFactoryTargetSource
java.lang.Object
com.liferay.portal.dao.shard.ShardSessionFactoryTargetSource
- All Implemented Interfaces:
- org.springframework.aop.TargetClassAware, org.springframework.aop.TargetSource
public class ShardSessionFactoryTargetSource
- extends java.lang.Object
- implements org.springframework.aop.TargetSource
View Source
- Author:
- Michael Young
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShardSessionFactoryTargetSource
public ShardSessionFactoryTargetSource()
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory()
getTarget
public java.lang.Object getTarget()
throws java.lang.Exception
- Specified by:
getTarget
in interface org.springframework.aop.TargetSource
- Throws:
java.lang.Exception
getTargetClass
public java.lang.Class<?> getTargetClass()
- Specified by:
getTargetClass
in interface org.springframework.aop.TargetClassAware
- Specified by:
getTargetClass
in interface org.springframework.aop.TargetSource
isStatic
public boolean isStatic()
- Specified by:
isStatic
in interface org.springframework.aop.TargetSource
releaseTarget
public void releaseTarget(java.lang.Object target)
throws java.lang.Exception
- Specified by:
releaseTarget
in interface org.springframework.aop.TargetSource
- Throws:
java.lang.Exception
setSessionFactory
public void setSessionFactory(java.lang.String shardName)
setSessionFactories
public void setSessionFactories(java.util.Map<java.lang.String,org.hibernate.SessionFactory> sessionFactories)