Liferay 7.0-ga1 portal-impl

com.liferay.portal.dao.jdbc.aop
Class DefaultDynamicDataSourceTargetSource

java.lang.Object
  extended by com.liferay.portal.dao.jdbc.aop.DefaultDynamicDataSourceTargetSource
All Implemented Interfaces:
com.liferay.portal.kernel.dao.jdbc.aop.DynamicDataSourceTargetSource, org.springframework.aop.TargetClassAware, org.springframework.aop.TargetSource

public class DefaultDynamicDataSourceTargetSource
extends Object
implements com.liferay.portal.kernel.dao.jdbc.aop.DynamicDataSourceTargetSource, org.springframework.aop.TargetSource


Constructor Summary
DefaultDynamicDataSourceTargetSource()
           
 
Method Summary
 Stack<String> getMethodStack()
           
 com.liferay.portal.kernel.dao.jdbc.aop.Operation getOperation()
           
 DataSource getReadDataSource()
           
 Object getTarget()
           
 Class<DataSource> getTargetClass()
           
 DataSource getWriteDataSource()
           
protected  boolean inOperation()
           
 boolean isStatic()
           
 String popMethod()
           
 void pushMethod(String method)
           
 void releaseTarget(Object target)
           
 void setOperation(com.liferay.portal.kernel.dao.jdbc.aop.Operation operation)
           
 void setReadDataSource(DataSource readDataSource)
           
 void setWriteDataSource(DataSource writeDataSource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDynamicDataSourceTargetSource

public DefaultDynamicDataSourceTargetSource()
Method Detail

getMethodStack

public Stack<String> getMethodStack()
Specified by:
getMethodStack in interface com.liferay.portal.kernel.dao.jdbc.aop.DynamicDataSourceTargetSource

getOperation

public com.liferay.portal.kernel.dao.jdbc.aop.Operation getOperation()
Specified by:
getOperation in interface com.liferay.portal.kernel.dao.jdbc.aop.DynamicDataSourceTargetSource

getReadDataSource

public DataSource getReadDataSource()
Specified by:
getReadDataSource in interface com.liferay.portal.kernel.dao.jdbc.aop.DynamicDataSourceTargetSource

getTarget

public Object getTarget()
                 throws Exception
Specified by:
getTarget in interface com.liferay.portal.kernel.dao.jdbc.aop.DynamicDataSourceTargetSource
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

getWriteDataSource

public DataSource getWriteDataSource()
Specified by:
getWriteDataSource in interface com.liferay.portal.kernel.dao.jdbc.aop.DynamicDataSourceTargetSource

isStatic

public boolean isStatic()
Specified by:
isStatic in interface org.springframework.aop.TargetSource

popMethod

public String popMethod()
Specified by:
popMethod in interface com.liferay.portal.kernel.dao.jdbc.aop.DynamicDataSourceTargetSource

pushMethod

public void pushMethod(String method)
Specified by:
pushMethod in interface com.liferay.portal.kernel.dao.jdbc.aop.DynamicDataSourceTargetSource

releaseTarget

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

setOperation

public void setOperation(com.liferay.portal.kernel.dao.jdbc.aop.Operation operation)
Specified by:
setOperation in interface com.liferay.portal.kernel.dao.jdbc.aop.DynamicDataSourceTargetSource

setReadDataSource

public void setReadDataSource(DataSource readDataSource)
Specified by:
setReadDataSource in interface com.liferay.portal.kernel.dao.jdbc.aop.DynamicDataSourceTargetSource

setWriteDataSource

public void setWriteDataSource(DataSource writeDataSource)
Specified by:
setWriteDataSource in interface com.liferay.portal.kernel.dao.jdbc.aop.DynamicDataSourceTargetSource

inOperation

protected boolean inOperation()

Liferay 7.0-ga1 portal-impl