001: /*-------------------------------------------------------------------------
002: *
003: * Copyright (c) 2004-2005, PostgreSQL Global Development Group
004: *
005: * IDENTIFICATION
006: * $PostgreSQL: pgjdbc/org/postgresql/jdbc4/AbstractJdbc4ResultSet.java,v 1.3 2007/07/27 10:22:29 jurka Exp $
007: *
008: *-------------------------------------------------------------------------
009: */
010: package org.postgresql.jdbc4;
011:
012: import java.sql.*;
013: import java.io.Reader;
014: import java.io.InputStream;
015: import java.util.Vector;
016: import org.postgresql.core.*;
017:
018: abstract class AbstractJdbc4ResultSet extends
019: org.postgresql.jdbc3.AbstractJdbc3ResultSet {
020: AbstractJdbc4ResultSet(Query originalQuery,
021: BaseStatement statement, Field[] fields, Vector tuples,
022: ResultCursor cursor, int maxRows, int maxFieldSize,
023: int rsType, int rsConcurrency, int rsHoldability)
024: throws SQLException {
025: super (originalQuery, statement, fields, tuples, cursor,
026: maxRows, maxFieldSize, rsType, rsConcurrency,
027: rsHoldability);
028: }
029:
030: public RowId getRowId(int columnIndex) throws SQLException {
031: throw org.postgresql.Driver.notImplemented(this .getClass(),
032: "getRowId(int)");
033: }
034:
035: public RowId getRowId(String columnName) throws SQLException {
036: return getRowId(findColumn(columnName));
037: }
038:
039: public void updateRowId(int columnIndex, RowId x)
040: throws SQLException {
041: throw org.postgresql.Driver.notImplemented(this .getClass(),
042: "updateRowId(int, RowId)");
043: }
044:
045: public void updateRowId(String columnName, RowId x)
046: throws SQLException {
047: updateRowId(findColumn(columnName), x);
048: }
049:
050: public int getHoldability() throws SQLException {
051: throw org.postgresql.Driver.notImplemented(this .getClass(),
052: "getHoldability()");
053: }
054:
055: public boolean isClosed() throws SQLException {
056: return (rows == null);
057: }
058:
059: public void updateNString(int columnIndex, String nString)
060: throws SQLException {
061: throw org.postgresql.Driver.notImplemented(this .getClass(),
062: "updateNString(int, String)");
063: }
064:
065: public void updateNString(String columnName, String nString)
066: throws SQLException {
067: updateNString(findColumn(columnName), nString);
068: }
069:
070: public void updateNClob(int columnIndex, NClob nClob)
071: throws SQLException {
072: throw org.postgresql.Driver.notImplemented(this .getClass(),
073: "updateNClob(int, NClob)");
074: }
075:
076: public void updateNClob(String columnName, NClob nClob)
077: throws SQLException {
078: updateNClob(findColumn(columnName), nClob);
079: }
080:
081: public void updateNClob(int columnIndex, Reader reader)
082: throws SQLException {
083: throw org.postgresql.Driver.notImplemented(this .getClass(),
084: "updateNClob(int, Reader)");
085: }
086:
087: public void updateNClob(String columnName, Reader reader)
088: throws SQLException {
089: updateNClob(findColumn(columnName), reader);
090: }
091:
092: public void updateNClob(int columnIndex, Reader reader, long length)
093: throws SQLException {
094: throw org.postgresql.Driver.notImplemented(this .getClass(),
095: "updateNClob(int, Reader, long)");
096: }
097:
098: public void updateNClob(String columnName, Reader reader,
099: long length) throws SQLException {
100: updateNClob(findColumn(columnName), reader, length);
101: }
102:
103: public NClob getNClob(int columnIndex) throws SQLException {
104: throw org.postgresql.Driver.notImplemented(this .getClass(),
105: "getNClob(int)");
106: }
107:
108: public NClob getNClob(String columnName) throws SQLException {
109: return getNClob(findColumn(columnName));
110: }
111:
112: public void updateBlob(int columnIndex, InputStream inputStream,
113: long length) throws SQLException {
114: throw org.postgresql.Driver.notImplemented(this .getClass(),
115: "updateBlob(int, InputStream, long)");
116: }
117:
118: public void updateBlob(String columnName, InputStream inputStream,
119: long length) throws SQLException {
120: updateBlob(findColumn(columnName), inputStream, length);
121: }
122:
123: public void updateBlob(int columnIndex, InputStream inputStream)
124: throws SQLException {
125: throw org.postgresql.Driver.notImplemented(this .getClass(),
126: "updateBlob(int, InputStream)");
127: }
128:
129: public void updateBlob(String columnName, InputStream inputStream)
130: throws SQLException {
131: updateBlob(findColumn(columnName), inputStream);
132: }
133:
134: public void updateClob(int columnIndex, Reader reader, long length)
135: throws SQLException {
136: throw org.postgresql.Driver.notImplemented(this .getClass(),
137: "updateClob(int, Reader, long)");
138: }
139:
140: public void updateClob(String columnName, Reader reader, long length)
141: throws SQLException {
142: updateClob(findColumn(columnName), reader, length);
143: }
144:
145: public void updateClob(int columnIndex, Reader reader)
146: throws SQLException {
147: throw org.postgresql.Driver.notImplemented(this .getClass(),
148: "updateClob(int, Reader)");
149: }
150:
151: public void updateClob(String columnName, Reader reader)
152: throws SQLException {
153: updateClob(findColumn(columnName), reader);
154: }
155:
156: public SQLXML getSQLXML(int columnIndex) throws SQLException {
157: throw org.postgresql.Driver.notImplemented(this .getClass(),
158: "getSQLXML(int)");
159: }
160:
161: public SQLXML getSQLXML(String columnName) throws SQLException {
162: return getSQLXML(findColumn(columnName));
163: }
164:
165: public void updateSQLXML(int columnIndex, SQLXML xmlObject)
166: throws SQLException {
167: throw org.postgresql.Driver.notImplemented(this .getClass(),
168: "updateSQLXML(int, SQLXML)");
169: }
170:
171: public void updateSQLXML(String columnName, SQLXML xmlObject)
172: throws SQLException {
173: updateSQLXML(findColumn(columnName), xmlObject);
174: }
175:
176: public String getNString(int columnIndex) throws SQLException {
177: throw org.postgresql.Driver.notImplemented(this .getClass(),
178: "getNString(int)");
179: }
180:
181: public String getNString(String columnName) throws SQLException {
182: return getNString(findColumn(columnName));
183: }
184:
185: public Reader getNCharacterStream(int columnIndex)
186: throws SQLException {
187: throw org.postgresql.Driver.notImplemented(this .getClass(),
188: "getNCharacterStream(int)");
189: }
190:
191: public Reader getNCharacterStream(String columnName)
192: throws SQLException {
193: return getNCharacterStream(findColumn(columnName));
194: }
195:
196: public void updateNCharacterStream(int columnIndex, Reader x,
197: int length) throws SQLException {
198: throw org.postgresql.Driver.notImplemented(this .getClass(),
199: "updateNCharacterStream(int, Reader, int)");
200: }
201:
202: public void updateNCharacterStream(String columnName, Reader x,
203: int length) throws SQLException {
204: updateNCharacterStream(findColumn(columnName), x, length);
205: }
206:
207: public void updateNCharacterStream(int columnIndex, Reader x)
208: throws SQLException {
209: throw org.postgresql.Driver.notImplemented(this .getClass(),
210: "updateNCharacterStream(int, Reader)");
211: }
212:
213: public void updateNCharacterStream(String columnName, Reader x)
214: throws SQLException {
215: updateNCharacterStream(findColumn(columnName), x);
216: }
217:
218: public void updateNCharacterStream(int columnIndex, Reader x,
219: long length) throws SQLException {
220: throw org.postgresql.Driver.notImplemented(this .getClass(),
221: "updateNCharacterStream(int, Reader, long)");
222: }
223:
224: public void updateNCharacterStream(String columnName, Reader x,
225: long length) throws SQLException {
226: updateNCharacterStream(findColumn(columnName), x, length);
227: }
228:
229: public void updateCharacterStream(int columnIndex, Reader reader,
230: long length) throws SQLException {
231: throw org.postgresql.Driver.notImplemented(this .getClass(),
232: "updateCharaceterStream(int, Reader, long)");
233: }
234:
235: public void updateCharacterStream(String columnName, Reader reader,
236: long length) throws SQLException {
237: updateCharacterStream(findColumn(columnName), reader, length);
238: }
239:
240: public void updateCharacterStream(int columnIndex, Reader reader)
241: throws SQLException {
242: throw org.postgresql.Driver.notImplemented(this .getClass(),
243: "updateCharaceterStream(int, Reader)");
244: }
245:
246: public void updateCharacterStream(String columnName, Reader reader)
247: throws SQLException {
248: updateCharacterStream(findColumn(columnName), reader);
249: }
250:
251: public void updateBinaryStream(int columnIndex,
252: InputStream inputStream, long length) throws SQLException {
253: throw org.postgresql.Driver.notImplemented(this .getClass(),
254: "updateBinaryStream(int, InputStream, long)");
255: }
256:
257: public void updateBinaryStream(String columnName,
258: InputStream inputStream, long length) throws SQLException {
259: updateBinaryStream(findColumn(columnName), inputStream, length);
260: }
261:
262: public void updateBinaryStream(int columnIndex,
263: InputStream inputStream) throws SQLException {
264: throw org.postgresql.Driver.notImplemented(this .getClass(),
265: "updateBinaryStream(int, InputStream)");
266: }
267:
268: public void updateBinaryStream(String columnName,
269: InputStream inputStream) throws SQLException {
270: updateBinaryStream(findColumn(columnName), inputStream);
271: }
272:
273: public void updateAsciiStream(int columnIndex,
274: InputStream inputStream, long length) throws SQLException {
275: throw org.postgresql.Driver.notImplemented(this .getClass(),
276: "updateAsciiStream(int, InputStream, long)");
277: }
278:
279: public void updateAsciiStream(String columnName,
280: InputStream inputStream, long length) throws SQLException {
281: updateAsciiStream(findColumn(columnName), inputStream, length);
282: }
283:
284: public void updateAsciiStream(int columnIndex,
285: InputStream inputStream) throws SQLException {
286: throw org.postgresql.Driver.notImplemented(this .getClass(),
287: "updateAsciiStream(int, InputStream)");
288: }
289:
290: public void updateAsciiStream(String columnName,
291: InputStream inputStream) throws SQLException {
292: updateAsciiStream(findColumn(columnName), inputStream);
293: }
294:
295: public boolean isWrapperFor(Class<?> iface) throws SQLException {
296: throw org.postgresql.Driver.notImplemented(this .getClass(),
297: "isWrapperFor(Class<?>)");
298: }
299:
300: public <T> T unwrap(Class<T> iface) throws SQLException {
301: throw org.postgresql.Driver.notImplemented(this .getClass(),
302: "unwrap(Class<T>)");
303: }
304:
305: }
|