Liferay 6.0.5

com.liferay.portal.dao.shard
Class ShardSessionFactoryTargetSource

java.lang.Object
  extended by com.liferay.portal.dao.shard.ShardSessionFactoryTargetSource
All Implemented Interfaces:
org.springframework.aop.TargetClassAware, org.springframework.aop.TargetSource

public class ShardSessionFactoryTargetSource
extends Object
implements org.springframework.aop.TargetSource


Constructor Summary
ShardSessionFactoryTargetSource()
           
 
Method Summary
 org.hibernate.SessionFactory getSessionFactory()
           
 Object getTarget()
           
 Class<?> getTargetClass()
           
 boolean isStatic()
           
 void releaseTarget(Object target)
           
 void setSessionFactories(Map<String,org.hibernate.SessionFactory> sessionFactories)
           
 void setSessionFactory(String shardName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShardSessionFactoryTargetSource

public ShardSessionFactoryTargetSource()
Method Detail

getSessionFactory

public org.hibernate.SessionFactory getSessionFactory()

getTarget

public Object getTarget()
                 throws Exception
Specified by:
getTarget in interface org.springframework.aop.TargetSource
Throws:
Exception

getTargetClass

public 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(Object target)
                   throws Exception
Specified by:
releaseTarget in interface org.springframework.aop.TargetSource
Throws:
Exception

setSessionFactory

public void setSessionFactory(String shardName)

setSessionFactories

public void setSessionFactories(Map<String,org.hibernate.SessionFactory> sessionFactories)

Liferay 6.0.5