Liferay 7.0-ce-b4

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

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

public class DefaultDynamicDataSourceTargetSource
extends Object
implements DynamicDataSourceTargetSource, org.springframework.aop.TargetSource


Constructor Summary
DefaultDynamicDataSourceTargetSource()
           
 
Method Summary
 Stack<String> getMethodStack()
           
 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(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 DynamicDataSourceTargetSource

getOperation

public Operation getOperation()
Specified by:
getOperation in interface DynamicDataSourceTargetSource

getReadDataSource

public DataSource getReadDataSource()
Specified by:
getReadDataSource in interface DynamicDataSourceTargetSource

getTarget

public Object getTarget()
                 throws Exception
Specified by:
getTarget in interface 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 DynamicDataSourceTargetSource

isStatic

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

popMethod

public String popMethod()
Specified by:
popMethod in interface DynamicDataSourceTargetSource

pushMethod

public void pushMethod(String method)
Specified by:
pushMethod in interface DynamicDataSourceTargetSource

releaseTarget

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

setOperation

public void setOperation(Operation operation)
Specified by:
setOperation in interface DynamicDataSourceTargetSource

setReadDataSource

public void setReadDataSource(DataSource readDataSource)
Specified by:
setReadDataSource in interface DynamicDataSourceTargetSource

setWriteDataSource

public void setWriteDataSource(DataSource writeDataSource)
Specified by:
setWriteDataSource in interface DynamicDataSourceTargetSource

inOperation

protected boolean inOperation()

Liferay 7.0-ce-b4