001: /*
002: * Copyright (c) 1998-2008 Caucho Technology -- all rights reserved
003: *
004: * This file is part of Resin(R) Open Source
005: *
006: * Each copy or derived work must preserve the copyright notice and this
007: * notice unmodified.
008: *
009: * Resin Open Source is free software; you can redistribute it and/or modify
010: * it under the terms of the GNU General Public License as published by
011: * the Free Software Foundation; either version 2 of the License, or
012: * (at your option) any later version.
013: *
014: * Resin Open Source is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
017: * of NON-INFRINGEMENT. See the GNU General Public License for more
018: * details.
019: *
020: * You should have received a copy of the GNU General Public License
021: * along with Resin Open Source; if not, write to the
022: * Free SoftwareFoundation, Inc.
023: * 59 Temple Place, Suite 330
024: * Boston, MA 02111-1307 USA
025: *
026: * @author Scott Ferguson
027: */
028: package com.caucho.db.jdbc;
029:
030: import java.io.InputStream;
031: import java.io.Reader;
032: import java.sql.NClob;
033: import java.sql.RowId;
034: import java.sql.SQLException;
035: import java.sql.SQLXML;
036:
037: /**
038: * The JDBC statement implementation.
039: */
040: public class NullResultSet extends AbstractResultSet {
041: public java.sql.Statement getStatement() throws SQLException {
042: return null;
043: }
044:
045: public java.sql.ResultSetMetaData getMetaData() throws SQLException {
046: return null;
047: }
048:
049: public boolean next() throws SQLException {
050: return false;
051: }
052:
053: public boolean wasNull() throws SQLException {
054: return false;
055: }
056:
057: public int findColumn(String columnName) throws SQLException {
058: return 0;
059: }
060:
061: public String getString(int columnIndex) throws SQLException {
062: return null;
063: }
064:
065: public RowId getRowId(int columnIndex) throws SQLException {
066: throw new UnsupportedOperationException("Not supported yet.");
067: }
068:
069: public RowId getRowId(String columnLabel) throws SQLException {
070: throw new UnsupportedOperationException("Not supported yet.");
071: }
072:
073: public void updateRowId(int columnIndex, RowId x)
074: throws SQLException {
075: throw new UnsupportedOperationException("Not supported yet.");
076: }
077:
078: public void updateRowId(String columnLabel, RowId x)
079: throws SQLException {
080: throw new UnsupportedOperationException("Not supported yet.");
081: }
082:
083: public int getHoldability() throws SQLException {
084: throw new UnsupportedOperationException("Not supported yet.");
085: }
086:
087: public boolean isClosed() throws SQLException {
088: throw new UnsupportedOperationException("Not supported yet.");
089: }
090:
091: public void updateNString(int columnIndex, String nString)
092: throws SQLException {
093: throw new UnsupportedOperationException("Not supported yet.");
094: }
095:
096: public void updateNString(String columnLabel, String nString)
097: throws SQLException {
098: throw new UnsupportedOperationException("Not supported yet.");
099: }
100:
101: public void updateNClob(int columnIndex, NClob nClob)
102: throws SQLException {
103: throw new UnsupportedOperationException("Not supported yet.");
104: }
105:
106: public void updateNClob(String columnLabel, NClob nClob)
107: throws SQLException {
108: throw new UnsupportedOperationException("Not supported yet.");
109: }
110:
111: public NClob getNClob(int columnIndex) throws SQLException {
112: throw new UnsupportedOperationException("Not supported yet.");
113: }
114:
115: public NClob getNClob(String columnLabel) throws SQLException {
116: throw new UnsupportedOperationException("Not supported yet.");
117: }
118:
119: public SQLXML getSQLXML(int columnIndex) throws SQLException {
120: throw new UnsupportedOperationException("Not supported yet.");
121: }
122:
123: public SQLXML getSQLXML(String columnLabel) throws SQLException {
124: throw new UnsupportedOperationException("Not supported yet.");
125: }
126:
127: public void updateSQLXML(int columnIndex, SQLXML xmlObject)
128: throws SQLException {
129: throw new UnsupportedOperationException("Not supported yet.");
130: }
131:
132: public void updateSQLXML(String columnLabel, SQLXML xmlObject)
133: throws SQLException {
134: throw new UnsupportedOperationException("Not supported yet.");
135: }
136:
137: public String getNString(int columnIndex) throws SQLException {
138: throw new UnsupportedOperationException("Not supported yet.");
139: }
140:
141: public String getNString(String columnLabel) throws SQLException {
142: throw new UnsupportedOperationException("Not supported yet.");
143: }
144:
145: public Reader getNCharacterStream(int columnIndex)
146: throws SQLException {
147: throw new UnsupportedOperationException("Not supported yet.");
148: }
149:
150: public Reader getNCharacterStream(String columnLabel)
151: throws SQLException {
152: throw new UnsupportedOperationException("Not supported yet.");
153: }
154:
155: public void updateNCharacterStream(int columnIndex, Reader x,
156: long length) throws SQLException {
157: throw new UnsupportedOperationException("Not supported yet.");
158: }
159:
160: public void updateNCharacterStream(String columnLabel,
161: Reader reader, long length) throws SQLException {
162: throw new UnsupportedOperationException("Not supported yet.");
163: }
164:
165: public void updateAsciiStream(int columnIndex, InputStream x,
166: long length) throws SQLException {
167: throw new UnsupportedOperationException("Not supported yet.");
168: }
169:
170: public void updateBinaryStream(int columnIndex, InputStream x,
171: long length) throws SQLException {
172: throw new UnsupportedOperationException("Not supported yet.");
173: }
174:
175: public void updateCharacterStream(int columnIndex, Reader x,
176: long length) throws SQLException {
177: throw new UnsupportedOperationException("Not supported yet.");
178: }
179:
180: public void updateAsciiStream(String columnLabel, InputStream x,
181: long length) throws SQLException {
182: throw new UnsupportedOperationException("Not supported yet.");
183: }
184:
185: public void updateBinaryStream(String columnLabel, InputStream x,
186: long length) throws SQLException {
187: throw new UnsupportedOperationException("Not supported yet.");
188: }
189:
190: public void updateCharacterStream(String columnLabel,
191: Reader reader, long length) throws SQLException {
192: throw new UnsupportedOperationException("Not supported yet.");
193: }
194:
195: public void updateBlob(int columnIndex, InputStream inputStream,
196: long length) throws SQLException {
197: throw new UnsupportedOperationException("Not supported yet.");
198: }
199:
200: public void updateBlob(String columnLabel, InputStream inputStream,
201: long length) throws SQLException {
202: throw new UnsupportedOperationException("Not supported yet.");
203: }
204:
205: public void updateClob(int columnIndex, Reader reader, long length)
206: throws SQLException {
207: throw new UnsupportedOperationException("Not supported yet.");
208: }
209:
210: public void updateClob(String columnLabel, Reader reader,
211: long length) throws SQLException {
212: throw new UnsupportedOperationException("Not supported yet.");
213: }
214:
215: public void updateNClob(int columnIndex, Reader reader, long length)
216: throws SQLException {
217: throw new UnsupportedOperationException("Not supported yet.");
218: }
219:
220: public void updateNClob(String columnLabel, Reader reader,
221: long length) throws SQLException {
222: throw new UnsupportedOperationException("Not supported yet.");
223: }
224:
225: public void updateNCharacterStream(int columnIndex, Reader x)
226: throws SQLException {
227: throw new UnsupportedOperationException("Not supported yet.");
228: }
229:
230: public void updateNCharacterStream(String columnLabel, Reader reader)
231: throws SQLException {
232: throw new UnsupportedOperationException("Not supported yet.");
233: }
234:
235: public void updateAsciiStream(int columnIndex, InputStream x)
236: throws SQLException {
237: throw new UnsupportedOperationException("Not supported yet.");
238: }
239:
240: public void updateBinaryStream(int columnIndex, InputStream x)
241: throws SQLException {
242: throw new UnsupportedOperationException("Not supported yet.");
243: }
244:
245: public void updateCharacterStream(int columnIndex, Reader x)
246: throws SQLException {
247: throw new UnsupportedOperationException("Not supported yet.");
248: }
249:
250: public void updateAsciiStream(String columnLabel, InputStream x)
251: throws SQLException {
252: throw new UnsupportedOperationException("Not supported yet.");
253: }
254:
255: public void updateBinaryStream(String columnLabel, InputStream x)
256: throws SQLException {
257: throw new UnsupportedOperationException("Not supported yet.");
258: }
259:
260: public void updateCharacterStream(String columnLabel, Reader reader)
261: throws SQLException {
262: throw new UnsupportedOperationException("Not supported yet.");
263: }
264:
265: public void updateBlob(int columnIndex, InputStream inputStream)
266: throws SQLException {
267: throw new UnsupportedOperationException("Not supported yet.");
268: }
269:
270: public void updateBlob(String columnLabel, InputStream inputStream)
271: throws SQLException {
272: throw new UnsupportedOperationException("Not supported yet.");
273: }
274:
275: public void updateClob(int columnIndex, Reader reader)
276: throws SQLException {
277: throw new UnsupportedOperationException("Not supported yet.");
278: }
279:
280: public void updateClob(String columnLabel, Reader reader)
281: throws SQLException {
282: throw new UnsupportedOperationException("Not supported yet.");
283: }
284:
285: public void updateNClob(int columnIndex, Reader reader)
286: throws SQLException {
287: throw new UnsupportedOperationException("Not supported yet.");
288: }
289:
290: public void updateNClob(String columnLabel, Reader reader)
291: throws SQLException {
292: throw new UnsupportedOperationException("Not supported yet.");
293: }
294:
295: public <T> T unwrap(Class<T> iface) throws SQLException {
296: throw new UnsupportedOperationException("Not supported yet.");
297: }
298:
299: public boolean isWrapperFor(Class<?> iface) throws SQLException {
300: throw new UnsupportedOperationException("Not supported yet.");
301: }
302: }
|