public final class MasterSlaveDataSource extends AbstractDataSourceAdapter
| 构造器和说明 |
|---|
MasterSlaveDataSource() |
| 限定符和类型 | 方法和说明 |
|---|---|
Connection |
getConnection() |
String |
getDatabaseProductName()
Get database product name.
|
DataSource |
getDataSource(SQLType sqlType)
Get data source from master-slave data source.
|
static String |
getDataSourceName(String dataSourceName,
SQLType sqlType)
Get data source name from master-slave data source.
|
static void |
resetDMLFlag()
reset DML flag.
|
getConnection, getLogWriter, getParentLogger, setLogWritergetLoginTimeout, setLoginTimeoutisWrapperFor, recordMethodInvocation, replayMethodsInvocation, throwSQLExceptionIfNecessary, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWrapperFor, unwrappublic static String getDataSourceName(String dataSourceName, SQLType sqlType)
dataSourceName - data source namesqlType - SQL typepublic DataSource getDataSource(SQLType sqlType)
sqlType - SQL typepublic String getDatabaseProductName() throws SQLException
SQLException - SQL exceptionpublic Connection getConnection() throws SQLException
SQLExceptionpublic static void resetDMLFlag()
Copyright © 2017. All rights reserved.