Liferay 7.0-ce-m6

com.liferay.portal.dao.shard
Class DefaultShardDataSourceTargetSource

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

public class DefaultShardDataSourceTargetSource
extends Object
implements ShardDataSourceTargetSource, org.springframework.aop.TargetSource


Constructor Summary
DefaultShardDataSourceTargetSource()
           
 
Method Summary
 String[] getAvailableShardNames()
           
 DataSource getDataSource()
           
 Map<String,DataSource> getDataSources()
           
 Object getTarget()
           
 Class<DataSource> getTargetClass()
           
 boolean isStatic()
           
 void releaseTarget(Object target)
           
 void resetDataSource()
           
 void setDataSource(String shardName)
           
 void setDataSources(Map<String,DataSource> dataSources)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultShardDataSourceTargetSource

public DefaultShardDataSourceTargetSource()
Method Detail

getAvailableShardNames

public String[] getAvailableShardNames()
Specified by:
getAvailableShardNames in interface ShardDataSourceTargetSource

getDataSource

public DataSource getDataSource()
Specified by:
getDataSource in interface ShardDataSourceTargetSource

getDataSources

public Map<String,DataSource> getDataSources()
Specified by:
getDataSources in interface ShardDataSourceTargetSource

getTarget

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

getTargetClass

public Class<DataSource> 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

resetDataSource

public void resetDataSource()
Specified by:
resetDataSource in interface ShardDataSourceTargetSource

setDataSource

public void setDataSource(String shardName)
Specified by:
setDataSource in interface ShardDataSourceTargetSource

setDataSources

public void setDataSources(Map<String,DataSource> dataSources)

Liferay 7.0-ce-m6