~ubuntu-branches/ubuntu/trusty/mysql-connector-java/trusty

« back to all changes in this revision

Viewing changes to src/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java

  • Committer: Package Import Robot
  • Author(s): Emmanuel Bourg
  • Date: 2013-11-06 23:49:02 UTC
  • mfrom: (1.1.10) (3.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20131106234902-fhupetvkmt34mg01
Tags: 5.1.27-1
* New upstream release
* Refreshed the patches
* Updated Standards-Version to 3.9.5 (no changes)
* Use XZ compression for the upstream tarball
* Switch to debhelper level 9

Show diffs side-by-side

added added

removed removed

Lines of Context:
1883
1883
                this.mc.setCacheServerConfiguration(flag);
1884
1884
        }
1885
1885
 
1886
 
        public void setCallableStatementCacheSize(int size) {
 
1886
        public void setCallableStatementCacheSize(int size) throws SQLException {
1887
1887
                this.mc.setCallableStatementCacheSize(size);
1888
1888
        }
1889
1889
 
1890
 
        public void setCallableStmtCacheSize(int cacheSize) {
 
1890
        public void setCallableStmtCacheSize(int cacheSize) throws SQLException {
1891
1891
                this.mc.setCallableStmtCacheSize(cacheSize);
1892
1892
        }
1893
1893
 
1931
1931
                this.mc.setClobberStreamingResults(flag);
1932
1932
        }
1933
1933
 
1934
 
        public void setConnectTimeout(int timeoutMs) {
 
1934
        public void setConnectTimeout(int timeoutMs) throws SQLException {
1935
1935
                this.mc.setConnectTimeout(timeoutMs);
1936
1936
        }
1937
1937
 
1951
1951
                this.mc.setCreateDatabaseIfNotExist(flag);
1952
1952
        }
1953
1953
 
1954
 
        public void setDefaultFetchSize(int n) {
 
1954
        public void setDefaultFetchSize(int n) throws SQLException {
1955
1955
                this.mc.setDefaultFetchSize(n);
1956
1956
        }
1957
1957
 
2039
2039
                this.mc.setIncludeInnodbStatusInDeadlockExceptions(flag);
2040
2040
        }
2041
2041
 
2042
 
        public void setInitialTimeout(int property) {
 
2042
        public void setInitialTimeout(int property) throws SQLException {
2043
2043
                this.mc.setInitialTimeout(property);
2044
2044
        }
2045
2045
 
2061
2061
                                .setJdbcCompliantTruncationForReads(jdbcCompliantTruncationForReads);
2062
2062
        }
2063
2063
 
2064
 
        public void setLargeRowSizeThreshold(String value) {
 
2064
        public void setLargeRowSizeThreshold(String value) throws SQLException {
2065
2065
                this.mc.setLargeRowSizeThreshold(value);
2066
2066
        }
2067
2067
 
2097
2097
                this.mc.setMaintainTimeStats(flag);
2098
2098
        }
2099
2099
 
2100
 
        public void setMaxQuerySizeToLog(int sizeInBytes) {
 
2100
        public void setMaxQuerySizeToLog(int sizeInBytes) throws SQLException {
2101
2101
                this.mc.setMaxQuerySizeToLog(sizeInBytes);
2102
2102
        }
2103
2103
 
2104
 
        public void setMaxReconnects(int property) {
 
2104
        public void setMaxReconnects(int property) throws SQLException {
2105
2105
                this.mc.setMaxReconnects(property);
2106
2106
        }
2107
2107
 
2108
 
        public void setMaxRows(int property) {
 
2108
        public void setMaxRows(int property) throws SQLException {
2109
2109
                this.mc.setMaxRows(property);
2110
2110
        }
2111
2111
 
2112
 
        public void setMetadataCacheSize(int value) {
 
2112
        public void setMetadataCacheSize(int value) throws SQLException {
2113
2113
                this.mc.setMetadataCacheSize(value);
2114
2114
        }
2115
2115
 
2116
 
        public void setNetTimeoutForStreamingResults(int value) {
 
2116
        public void setNetTimeoutForStreamingResults(int value) throws SQLException {
2117
2117
                this.mc.setNetTimeoutForStreamingResults(value);
2118
2118
        }
2119
2119
 
2141
2141
                this.mc.setOverrideSupportsIntegrityEnhancementFacility(flag);
2142
2142
        }
2143
2143
 
2144
 
        public void setPacketDebugBufferSize(int size) {
 
2144
        public void setPacketDebugBufferSize(int size) throws SQLException {
2145
2145
                this.mc.setPacketDebugBufferSize(size);
2146
2146
        }
2147
2147
 
2165
2165
                this.mc.setPopulateInsertRowWithDefaultValues(flag);
2166
2166
        }
2167
2167
 
2168
 
        public void setPrepStmtCacheSize(int cacheSize) {
 
2168
        public void setPrepStmtCacheSize(int cacheSize) throws SQLException {
2169
2169
                this.mc.setPrepStmtCacheSize(cacheSize);
2170
2170
        }
2171
2171
 
2172
 
        public void setPrepStmtCacheSqlLimit(int sqlLimit) {
 
2172
        public void setPrepStmtCacheSqlLimit(int sqlLimit) throws SQLException {
2173
2173
                this.mc.setPrepStmtCacheSqlLimit(sqlLimit);
2174
2174
        }
2175
2175
 
2176
 
        public void setPreparedStatementCacheSize(int cacheSize) {
 
2176
        public void setPreparedStatementCacheSize(int cacheSize) throws SQLException {
2177
2177
                this.mc.setPreparedStatementCacheSize(cacheSize);
2178
2178
        }
2179
2179
 
2180
 
        public void setPreparedStatementCacheSqlLimit(int cacheSqlLimit) {
 
2180
        public void setPreparedStatementCacheSqlLimit(int cacheSqlLimit) throws SQLException {
2181
2181
                this.mc.setPreparedStatementCacheSqlLimit(cacheSqlLimit);
2182
2182
        }
2183
2183
 
2197
2197
                this.mc.setPropertiesTransform(value);
2198
2198
        }
2199
2199
 
2200
 
        public void setQueriesBeforeRetryMaster(int property) {
 
2200
        public void setQueriesBeforeRetryMaster(int property) throws SQLException {
2201
2201
                this.mc.setQueriesBeforeRetryMaster(property);
2202
2202
        }
2203
2203
 
2209
2209
                this.mc.setRelaxAutoCommit(property);
2210
2210
        }
2211
2211
 
2212
 
        public void setReportMetricsIntervalMillis(int millis) {
 
2212
        public void setReportMetricsIntervalMillis(int millis) throws SQLException {
2213
2213
                this.mc.setReportMetricsIntervalMillis(millis);
2214
2214
        }
2215
2215
 
2221
2221
                this.mc.setResourceId(resourceId);
2222
2222
        }
2223
2223
 
2224
 
        public void setResultSetSizeThreshold(int threshold) {
 
2224
        public void setResultSetSizeThreshold(int threshold) throws SQLException {
2225
2225
                this.mc.setResultSetSizeThreshold(threshold);
2226
2226
        }
2227
2227
 
2245
2245
                this.mc.setRunningCTS13(flag);
2246
2246
        }
2247
2247
 
2248
 
        public void setSecondsBeforeRetryMaster(int property) {
 
2248
        public void setSecondsBeforeRetryMaster(int property) throws SQLException {
2249
2249
                this.mc.setSecondsBeforeRetryMaster(property);
2250
2250
        }
2251
2251
 
2257
2257
                this.mc.setSessionVariables(variables);
2258
2258
        }
2259
2259
 
2260
 
        public void setSlowQueryThresholdMillis(int millis) {
 
2260
        public void setSlowQueryThresholdMillis(int millis) throws SQLException {
2261
2261
                this.mc.setSlowQueryThresholdMillis(millis);
2262
2262
        }
2263
2263
 
2264
 
        public void setSlowQueryThresholdNanos(long nanos) {
 
2264
        public void setSlowQueryThresholdNanos(long nanos) throws SQLException {
2265
2265
                this.mc.setSlowQueryThresholdNanos(nanos);
2266
2266
        }
2267
2267
 
2273
2273
                this.mc.setSocketFactoryClassName(property);
2274
2274
        }
2275
2275
 
2276
 
        public void setSocketTimeout(int property) {
 
2276
        public void setSocketTimeout(int property) throws SQLException {
2277
2277
                this.mc.setSocketTimeout(property);
2278
2278
        }
2279
2279
 
2297
2297
                this.mc.setTcpNoDelay(flag);
2298
2298
        }
2299
2299
 
2300
 
        public void setTcpRcvBuf(int bufSize) {
 
2300
        public void setTcpRcvBuf(int bufSize) throws SQLException {
2301
2301
                this.mc.setTcpRcvBuf(bufSize);
2302
2302
        }
2303
2303
 
2304
 
        public void setTcpSndBuf(int bufSize) {
 
2304
        public void setTcpSndBuf(int bufSize) throws SQLException {
2305
2305
                this.mc.setTcpSndBuf(bufSize);
2306
2306
        }
2307
2307
 
2308
 
        public void setTcpTrafficClass(int classFlags) {
 
2308
        public void setTcpTrafficClass(int classFlags) throws SQLException {
2309
2309
                this.mc.setTcpTrafficClass(classFlags);
2310
2310
        }
2311
2311
 
2517
2517
                return this.mc.getSelfDestructOnPingSecondsLifetime();
2518
2518
        }
2519
2519
 
2520
 
        public void setSelfDestructOnPingMaxOperations(int maxOperations) {
 
2520
        public void setSelfDestructOnPingMaxOperations(int maxOperations) throws SQLException {
2521
2521
                this.mc.setSelfDestructOnPingMaxOperations(maxOperations);
2522
2522
        }
2523
2523
 
2524
 
        public void setSelfDestructOnPingSecondsLifetime(int seconds) {
 
2524
        public void setSelfDestructOnPingSecondsLifetime(int seconds) throws SQLException {
2525
2525
                this.mc.setSelfDestructOnPingSecondsLifetime(seconds);
2526
2526
        }
2527
2527
 
2573
2573
                return this.mc.getLoadBalanceBlacklistTimeout();
2574
2574
        }
2575
2575
 
2576
 
        public void setLoadBalanceBlacklistTimeout(int loadBalanceBlacklistTimeout) {
 
2576
        public void setLoadBalanceBlacklistTimeout(int loadBalanceBlacklistTimeout) throws SQLException {
2577
2577
                this.mc.setLoadBalanceBlacklistTimeout(loadBalanceBlacklistTimeout);
2578
2578
        }
2579
2579
        public int getLoadBalancePingTimeout() {
2580
2580
                return this.mc.getLoadBalancePingTimeout();
2581
2581
        }
2582
2582
 
2583
 
        public void setLoadBalancePingTimeout(int loadBalancePingTimeout) {
 
2583
        public void setLoadBalancePingTimeout(int loadBalancePingTimeout) throws SQLException {
2584
2584
                this.mc.setLoadBalancePingTimeout(loadBalancePingTimeout);
2585
2585
        }
2586
2586
        
2593
2593
                this.mc.setLoadBalanceValidateConnectionOnSwapServer(loadBalanceValidateConnectionOnSwapServer);
2594
2594
        }
2595
2595
        
2596
 
        public void setRetriesAllDown(int retriesAllDown) {
 
2596
        public void setRetriesAllDown(int retriesAllDown) throws SQLException {
2597
2597
                this.mc.setRetriesAllDown(retriesAllDown);
2598
2598
        }
2599
2599
        
2718
2718
        }
2719
2719
 
2720
2720
        public void setLoadBalanceAutoCommitStatementThreshold(
2721
 
                        int loadBalanceAutoCommitStatementThreshold) {
 
2721
                        int loadBalanceAutoCommitStatementThreshold) throws SQLException {
2722
2722
                this.mc.setLoadBalanceAutoCommitStatementThreshold(loadBalanceAutoCommitStatementThreshold);
2723
2723
                
2724
2724
        }
2842
2842
                return this.mc.getConnectionMutex();
2843
2843
        }
2844
2844
 
 
2845
        public boolean getAllowMasterDownConnections() {
 
2846
                return this.mc.getAllowMasterDownConnections();
 
2847
        }
 
2848
        
 
2849
        public void setAllowMasterDownConnections(boolean connectIfMasterDown) {
 
2850
                this.mc.setAllowMasterDownConnections(connectIfMasterDown);
 
2851
        }
 
2852
        
 
2853
        public boolean getReplicationEnableJMX() {
 
2854
                return this.mc.getReplicationEnableJMX();
 
2855
        }
 
2856
 
 
2857
        public void setReplicationEnableJMX(boolean replicationEnableJMX) {
 
2858
                this.mc.setReplicationEnableJMX(replicationEnableJMX);
 
2859
                
 
2860
        }
 
2861
 
2845
2862
    public String getConnectionAttributes() throws SQLException {
2846
2863
                return this.mc.getConnectionAttributes();
2847
2864
        }