Liferay 6.0.6

com.liferay.portal.dao.shard
Class ShardAdvice

java.lang.Object
  extended by com.liferay.portal.dao.shard.ShardAdvice

public class ShardAdvice
extends Object


Constructor Summary
ShardAdvice()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  String getCurrentShardName()
           
protected  DataSource getDataSource()
           
 Object invokeByParameter(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint)
           
 Object invokeCompanyService(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint)
           
 Object invokeGlobally(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint)
          Invoke a join point across all shards while ignoring the company service stack.
 Object invokeIteratively(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint)
          Invoke a join point across all shards while using the company service stack.
 Object invokePersistence(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint)
           
protected  String popCompanyService()
           
protected  void pushCompanyService(long companyId)
           
protected  void pushCompanyService(String shardName)
           
 void setShardDataSourceTargetSource(ShardDataSourceTargetSource shardDataSourceTargetSource)
           
 void setShardSessionFactoryTargetSource(ShardSessionFactoryTargetSource shardSessionFactoryTargetSource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShardAdvice

public ShardAdvice()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()

invokeByParameter

public Object invokeByParameter(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint)
                         throws Throwable
Throws:
Throwable

invokeCompanyService

public Object invokeCompanyService(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint)
                            throws Throwable
Throws:
Throwable

invokeGlobally

public Object invokeGlobally(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint)
                      throws Throwable
Invoke a join point across all shards while ignoring the company service stack.

Throws:
Throwable
See Also:
invokeIteratively(org.aspectj.lang.ProceedingJoinPoint)

invokeIteratively

public Object invokeIteratively(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint)
                         throws Throwable
Invoke a join point across all shards while using the company service stack.

Throws:
Throwable
See Also:
invokeGlobally(org.aspectj.lang.ProceedingJoinPoint)

invokePersistence

public Object invokePersistence(org.aspectj.lang.ProceedingJoinPoint proceedingJoinPoint)
                         throws Throwable
Throws:
Throwable

setShardDataSourceTargetSource

public void setShardDataSourceTargetSource(ShardDataSourceTargetSource shardDataSourceTargetSource)

setShardSessionFactoryTargetSource

public void setShardSessionFactoryTargetSource(ShardSessionFactoryTargetSource shardSessionFactoryTargetSource)

getCurrentShardName

protected String getCurrentShardName()

getDataSource

protected DataSource getDataSource()

popCompanyService

protected String popCompanyService()

pushCompanyService

protected void pushCompanyService(long companyId)

pushCompanyService

protected void pushCompanyService(String shardName)

Liferay 6.0.6