class MasterSlaveDataSource extends AbstractDataSourceAdapter {

    @Override
    public Connection getConnection() throws SQLException {
        throw new UnsupportedOperationException("Master slave data source cannot support get connection directly.");
    }

}