~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to storage/ndb/clusterj/clusterj-jdbc/src/test/java/jdbctest/BadConnectionLifecycleInterceptor.java

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
 
3
 *
 
4
 *  This program is free software; you can redistribute it and/or modify
 
5
 *  it under the terms of the GNU General Public License as published by
 
6
 *  the Free Software Foundation; version 2 of the License.
 
7
 *
 
8
 *  This program is distributed in the hope that it will be useful,
 
9
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 *  GNU General Public License for more details.
 
12
 *
 
13
 *  You should have received a copy of the GNU General Public License
 
14
 *  along with this program; if not, write to the Free Software
 
15
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
 
16
 */
 
17
 
 
18
package jdbctest;
 
19
 
 
20
import com.mysql.clusterj.ClusterJUserException;
 
21
import com.mysql.jdbc.Connection;
 
22
 
 
23
import java.sql.SQLException;
 
24
import java.sql.Savepoint;
 
25
import java.util.Properties;
 
26
 
 
27
public class BadConnectionLifecycleInterceptor
 
28
        implements com.mysql.jdbc.ConnectionLifecycleInterceptor {
 
29
 
 
30
    public void close() throws SQLException {
 
31
     // TODO Auto-generated method stub
 
32
 
 
33
     }
 
34
 
 
35
     public boolean commit() throws SQLException {
 
36
     // TODO Auto-generated method stub
 
37
     return false;
 
38
     }
 
39
 
 
40
     public boolean rollback() throws SQLException {
 
41
     // TODO Auto-generated method stub
 
42
     return false;
 
43
     }
 
44
 
 
45
     public boolean rollback(Savepoint arg0) throws SQLException {
 
46
     // TODO Auto-generated method stub
 
47
     return false;
 
48
     }
 
49
 
 
50
     public boolean setAutoCommit(boolean arg0) throws SQLException {
 
51
     // TODO Auto-generated method stub
 
52
     return false;
 
53
     }
 
54
 
 
55
     public boolean setCatalog(String arg0) throws SQLException {
 
56
     // TODO Auto-generated method stub
 
57
     return false;
 
58
     }
 
59
 
 
60
     public boolean transactionBegun() throws SQLException {
 
61
     // TODO Auto-generated method stub
 
62
     return false;
 
63
     }
 
64
 
 
65
     public boolean transactionCompleted() throws SQLException {
 
66
     // TODO Auto-generated method stub
 
67
     return false;
 
68
     }
 
69
 
 
70
     public void destroy() {
 
71
     // TODO Auto-generated method stub
 
72
 
 
73
     }
 
74
 
 
75
     public void init(Connection arg0, Properties arg1) throws SQLException {
 
76
     throw new ClusterJUserException("BadConnectionLifecycleInterceptor is built to fail.");
 
77
     }
 
78
 
 
79
}
 
80