Liferay 7.0-ce-m6

com.liferay.portal.dao.shard
Class DefaultShardSessionFactoryTargetSource

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

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


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

Constructor Detail

DefaultShardSessionFactoryTargetSource

public DefaultShardSessionFactoryTargetSource()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Throws:
Exception

getSessionFactories

public Map<String,org.hibernate.SessionFactory> getSessionFactories()

getSessionFactory

public Object getSessionFactory()
Specified by:
getSessionFactory in interface ShardSessionFactoryTargetSource

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)
Specified by:
setSessionFactory in interface ShardSessionFactoryTargetSource

setShardDataSourceTargetSource

public void setShardDataSourceTargetSource(ShardDataSourceTargetSource shardDataSourceTargetSource)

Liferay 7.0-ce-m6