com.liferay.portal.dao.shard
Class ShardImpl

java.lang.Object
  extended by com.liferay.portal.dao.shard.ShardImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.shard.Shard

public class ShardImpl
extends java.lang.Object
implements com.liferay.portal.kernel.dao.shard.Shard

View Source

Author:
Alexander Chow

Constructor Summary
ShardImpl()
           
 
Method Summary
 java.lang.String getCurrentShardName()
           
 javax.sql.DataSource getDataSource()
           
 boolean isEnabled()
           
 java.lang.String popCompanyService()
           
 void pushCompanyService(long companyId)
           
 void pushCompanyService(java.lang.String shardName)
           
 void setShardAdvice(ShardAdvice shardAdvice)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShardImpl

public ShardImpl()
Method Detail

getCurrentShardName

public java.lang.String getCurrentShardName()
Specified by:
getCurrentShardName in interface com.liferay.portal.kernel.dao.shard.Shard

getDataSource

public javax.sql.DataSource getDataSource()
Specified by:
getDataSource in interface com.liferay.portal.kernel.dao.shard.Shard

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface com.liferay.portal.kernel.dao.shard.Shard

popCompanyService

public java.lang.String popCompanyService()
Specified by:
popCompanyService in interface com.liferay.portal.kernel.dao.shard.Shard

pushCompanyService

public void pushCompanyService(long companyId)
Specified by:
pushCompanyService in interface com.liferay.portal.kernel.dao.shard.Shard

pushCompanyService

public void pushCompanyService(java.lang.String shardName)
Specified by:
pushCompanyService in interface com.liferay.portal.kernel.dao.shard.Shard

setShardAdvice

public void setShardAdvice(ShardAdvice shardAdvice)