01: /*
02: * The contents of this file are subject to the Mozilla Public License
03: * Version 1.1 (the "License"); you may not use this file except in
04: * compliance with the License. You may obtain a copy of the License at
05: * http://www.mozilla.org/MPL/
06: *
07: * Software distributed under the License is distributed on an "AS IS"
08: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
09: * License for the specific language governing rights and limitations
10: * under the License.
11: *
12: * The Original Code is iSQL-Viewer, A Mutli-Platform Database Tool.
13: *
14: * The Initial Developer of the Original Code is iSQL-Viewer, A Mutli-Platform Database Tool.
15: * Portions created by Mark A. Kobold are Copyright (C) 2000-2007. All Rights Reserved.
16: *
17: * Contributor(s):
18: * Mark A. Kobold [mkobold <at> isqlviewer <dot> com].
19: *
20: * If you didn't download this code from the following link, you should check
21: * if you aren't using an obsolete version: http://www.isqlviewer.com
22: */
23: package org.isqlviewer.util;
24:
25: import java.sql.ResultSet;
26: import java.sql.SQLException;
27: import java.sql.SQLWarning;
28: import java.sql.Statement;
29:
30: import org.isqlviewer.sql.ResultSetRenderer;
31:
32: class NullResultSetViewer implements ResultSetRenderer {
33:
34: public void initialize() {
35:
36: }
37:
38: public void handleSQLException(SQLException e) {
39:
40: }
41:
42: public void finalizeStatement(String stmtID) {
43:
44: }
45:
46: public void processGeneratedKeys(String stmtID, ResultSet keys,
47: String nativeSQL) {
48:
49: }
50:
51: public long processResultSet(String stmtID, ResultSet set,
52: String nativeSQL, int count) {
53:
54: return 0;
55: }
56:
57: public void processRowUpdates(String stmtID, int updateCount,
58: String nativeSQL) {
59:
60: }
61:
62: public void recieveResultsetWarnings(ResultSet set,
63: SQLWarning warnings) {
64:
65: }
66:
67: public void recieveStatementWarnings(Statement stmt,
68: SQLWarning warnings) {
69:
70: }
71:
72: public void statementInitialized(String stmtID, Statement statement) {
73:
74: }
75:
76: public boolean supportsGeneratedKeys() {
77:
78: return false;
79: }
80:
81: public boolean supportsUpdateableResultSets() {
82:
83: return false;
84: }
85:
86: public boolean isCancelled() {
87:
88: return false;
89: }
90:
91: public String substituteVariable(String variableName) {
92:
93: return variableName;
94: }
95: }
|