1 /***
2 * Redistribution and use of this software and associated documentation
3 * ("Software"), with or without modification, are permitted provided
4 * that the following conditions are met:
5 *
6 * 1. Redistributions of source code must retain copyright
7 * statements and notices. Redistributions must also contain a
8 * copy of this document.
9 *
10 * 2. Redistributions in binary form must reproduce the
11 * above copyright notice, this list of conditions and the
12 * following disclaimer in the documentation and/or other
13 * materials provided with the distribution.
14 *
15 * 3. The name "Exolab" must not be used to endorse or promote
16 * products derived from this Software without prior written
17 * permission of Exoffice Technologies. For written permission,
18 * please contact info@exolab.org.
19 *
20 * 4. Products derived from this Software may not be called "Exolab"
21 * nor may "Exolab" appear in their names without prior written
22 * permission of Exoffice Technologies. Exolab is a registered
23 * trademark of Exoffice Technologies.
24 *
25 * 5. Due credit should be given to the Exolab Project
26 * (http://www.exolab.org/).
27 *
28 * THIS SOFTWARE IS PROVIDED BY EXOFFICE TECHNOLOGIES AND CONTRIBUTORS
29 * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
30 * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
31 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
32 * EXOFFICE TECHNOLOGIES OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
33 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
34 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
35 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
37 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
38 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
39 * OF THE POSSIBILITY OF SUCH DAMAGE.
40 *
41 * Copyright 2000 (C) Exoffice Technologies Inc. All Rights Reserved.
42 *
43 * $Id: NullConnection.java.jdk1.4,v 1.1 2003/01/24 02:45:14 jalateras Exp $
44 *
45 * Date Author Changes
46 * $Date jimm Created
47 */
48
49
50 package org.exolab.jms.persistence;
51
52
53 // java sql
54 import java.sql.Connection;
55
56
57 class NullConnection implements java.sql.Connection {
58 // the following methods are just to satisfy the implementation of the
59 // java.sql.Connection interface and do not have any semantics.
60 public java.sql.Statement createStatement()
61 throws java.sql.SQLException{
62 return null;
63 }
64
65 public java.sql.PreparedStatement prepareStatement(String sql)
66 throws java.sql.SQLException {
67 return null;
68 }
69
70 public java.sql.CallableStatement prepareCall(String sql)
71 throws java.sql.SQLException {
72 return null;
73 }
74
75 public String nativeSQL(String sql)
76 throws java.sql.SQLException {
77 return null;
78 }
79
80 public void setAutoCommit(boolean autoCommit)
81 throws java.sql.SQLException {
82 }
83
84 public boolean getAutoCommit()
85 throws java.sql.SQLException {
86 return true;
87 }
88
89 public void commit()
90 throws java.sql.SQLException {
91 }
92
93 public void rollback()
94 throws java.sql.SQLException {
95 }
96
97 public void close()
98 throws java.sql.SQLException {
99 }
100
101 public boolean isClosed()
102 throws java.sql.SQLException {
103 return false;
104 }
105
106 public java.sql.DatabaseMetaData getMetaData()
107 throws java.sql.SQLException {
108 return null;
109 }
110
111 public void setReadOnly(boolean readOnly)
112 throws java.sql.SQLException {
113 }
114
115 public boolean isReadOnly()
116 throws java.sql.SQLException {
117 return false;
118 }
119
120 public void setCatalog(String catalog)
121 throws java.sql.SQLException {
122 }
123
124 public String getCatalog()
125 throws java.sql.SQLException {
126 return null;
127 }
128
129 public void setTransactionIsolation(int level)
130 throws java.sql.SQLException {
131 }
132
133 public int getTransactionIsolation()
134 throws java.sql.SQLException {
135 return 0;
136 }
137
138 public java.sql.SQLWarning getWarnings()
139 throws java.sql.SQLException {
140 return null;
141 }
142
143 public void clearWarnings()
144 throws java.sql.SQLException {
145 }
146
147 public java.sql.Statement createStatement(int resultSetType,
148 int resultSetConcurrency)
149 throws java.sql.SQLException {
150 return null;
151 }
152
153 public java.sql.PreparedStatement prepareStatement(String sql, int resultSetType,
154 int resultSetConcurrency)
155 throws java.sql.SQLException {
156 return null;
157 }
158
159 public java.sql.CallableStatement prepareCall(String sql, int resultSetType,
160 int resultSetConcurrency) throws java.sql.SQLException {
161 return null;
162 }
163
164 public java.util.Map getTypeMap()
165 throws java.sql.SQLException {
166 return null;
167 }
168
169 public void setTypeMap(java.util.Map map)
170 throws java.sql.SQLException {
171 }
172
173 public java.sql.Statement createStatement(int param, int param1, int param2) throws java.sql.SQLException {
174 return null;
175 }
176
177 public int getHoldability() throws java.sql.SQLException {
178 return 0;
179 }
180
181 public java.sql.CallableStatement prepareCall(String str, int param, int param2, int param3) throws java.sql.SQLException {
182 return null;
183 }
184
185 public java.sql.PreparedStatement prepareStatement(String str, String[] str1) throws java.sql.SQLException {
186 return null;
187 }
188
189 public java.sql.PreparedStatement prepareStatement(String str, int param) throws java.sql.SQLException {
190 return null;
191 }
192
193 public java.sql.PreparedStatement prepareStatement(String str, int[] values) throws java.sql.SQLException {
194 return null;
195 }
196
197 public java.sql.PreparedStatement prepareStatement(String str, int param, int param2, int param3) throws java.sql.SQLException {
198 return null;
199 }
200
201 public void releaseSavepoint(java.sql.Savepoint savepoint) throws java.sql.SQLException {
202 }
203
204 public void rollback(java.sql.Savepoint savepoint) throws java.sql.SQLException {
205 }
206
207 public void setHoldability(int param) throws java.sql.SQLException {
208 }
209
210 public java.sql.Savepoint setSavepoint() throws java.sql.SQLException {
211 return null;
212 }
213
214 public java.sql.Savepoint setSavepoint(String str) throws java.sql.SQLException {
215 return null;
216 }
217
218 }
219
This page was automatically generated by Maven