com.liferay.portal.dao.jdbc.aop
Class DefaultDynamicDataSourceTargetSource
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultDynamicDataSourceTargetSource
public DefaultDynamicDataSourceTargetSource()
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()