public final class MasterSlaveDataSource extends AbstractDataSourceAdapter
| 构造器和说明 |
|---|
MasterSlaveDataSource() |
| 限定符和类型 | 方法和说明 |
|---|---|
Connection |
getConnection() |
DataSource |
getDataSource(SQLStatementType sqlStatementType)
获取主或从节点的数据源名称.
|
static void |
resetDMLFlag()
重置更新标记.
|
getConnection, getLogWriter, getParentLogger, setLogWritergetLoginTimeout, setLoginTimeoutisWrapperFor, recordMethodInvocation, replayMethodsInvocation, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWrapperFor, unwrappublic DataSource getDataSource(SQLStatementType sqlStatementType)
sqlStatementType - SQL类型public Connection getConnection() throws SQLException
SQLExceptionpublic static void resetDMLFlag()
Copyright © 2016. All rights reserved.