MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BadConnectionLifecycleInterceptor.java
1 /*
2  * Copyright (c) 2011, 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 
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