001: package org.geotools.data.jdbc;
002:
003: import java.sql.CallableStatement;
004: import java.sql.Connection;
005: import java.sql.DatabaseMetaData;
006: import java.sql.PreparedStatement;
007: import java.sql.SQLException;
008: import java.sql.SQLWarning;
009: import java.sql.Savepoint;
010: import java.sql.Statement;
011: import java.util.Map;
012:
013: public class ConnectionDecorator implements Connection {
014:
015: protected Connection connection;
016:
017: public ConnectionDecorator(Connection connection) {
018: this .connection = connection;
019: }
020:
021: public void clearWarnings() throws SQLException {
022: connection.clearWarnings();
023: }
024:
025: public void close() throws SQLException {
026: connection.close();
027: }
028:
029: public void commit() throws SQLException {
030: connection.commit();
031: }
032:
033: public Statement createStatement() throws SQLException {
034: return connection.createStatement();
035: }
036:
037: public Statement createStatement(int resultSetType,
038: int resultSetConcurrency) throws SQLException {
039: return connection.createStatement(resultSetType,
040: resultSetConcurrency);
041: }
042:
043: public Statement createStatement(int resultSetType,
044: int resultSetConcurrency, int resultSetHoldability)
045: throws SQLException {
046: return connection.createStatement(resultSetType,
047: resultSetConcurrency, resultSetHoldability);
048: }
049:
050: public boolean getAutoCommit() throws SQLException {
051: return connection.getAutoCommit();
052: }
053:
054: public String getCatalog() throws SQLException {
055: return connection.getCatalog();
056: }
057:
058: public int getHoldability() throws SQLException {
059: return connection.getHoldability();
060: }
061:
062: public DatabaseMetaData getMetaData() throws SQLException {
063: return connection.getMetaData();
064: }
065:
066: public int getTransactionIsolation() throws SQLException {
067: return connection.getTransactionIsolation();
068: }
069:
070: public Map getTypeMap() throws SQLException {
071: return connection.getTypeMap();
072: }
073:
074: public SQLWarning getWarnings() throws SQLException {
075: return connection.getWarnings();
076: }
077:
078: public boolean isClosed() throws SQLException {
079: return connection.isClosed();
080: }
081:
082: public boolean isReadOnly() throws SQLException {
083: return connection.isReadOnly();
084: }
085:
086: public String nativeSQL(String sql) throws SQLException {
087: // TODO Auto-generated method stub
088: return null;
089: }
090:
091: public CallableStatement prepareCall(String sql)
092: throws SQLException {
093: // TODO Auto-generated method stub
094: return null;
095: }
096:
097: public CallableStatement prepareCall(String sql, int resultSetType,
098: int resultSetConcurrency) throws SQLException {
099: // TODO Auto-generated method stub
100: return null;
101: }
102:
103: public CallableStatement prepareCall(String sql, int resultSetType,
104: int resultSetConcurrency, int resultSetHoldability)
105: throws SQLException {
106: // TODO Auto-generated method stub
107: return null;
108: }
109:
110: public PreparedStatement prepareStatement(String sql)
111: throws SQLException {
112: // TODO Auto-generated method stub
113: return null;
114: }
115:
116: public PreparedStatement prepareStatement(String sql,
117: int autoGeneratedKeys) throws SQLException {
118: // TODO Auto-generated method stub
119: return null;
120: }
121:
122: public PreparedStatement prepareStatement(String sql,
123: int[] columnIndexes) throws SQLException {
124: // TODO Auto-generated method stub
125: return null;
126: }
127:
128: public PreparedStatement prepareStatement(String sql,
129: String[] columnNames) throws SQLException {
130: // TODO Auto-generated method stub
131: return null;
132: }
133:
134: public PreparedStatement prepareStatement(String sql,
135: int resultSetType, int resultSetConcurrency)
136: throws SQLException {
137: // TODO Auto-generated method stub
138: return null;
139: }
140:
141: public PreparedStatement prepareStatement(String sql,
142: int resultSetType, int resultSetConcurrency,
143: int resultSetHoldability) throws SQLException {
144: // TODO Auto-generated method stub
145: return null;
146: }
147:
148: public void releaseSavepoint(Savepoint savepoint)
149: throws SQLException {
150: // TODO Auto-generated method stub
151:
152: }
153:
154: public void rollback() throws SQLException {
155: // TODO Auto-generated method stub
156:
157: }
158:
159: public void rollback(Savepoint savepoint) throws SQLException {
160: // TODO Auto-generated method stub
161:
162: }
163:
164: public void setAutoCommit(boolean autoCommit) throws SQLException {
165: // TODO Auto-generated method stub
166:
167: }
168:
169: public void setCatalog(String catalog) throws SQLException {
170: // TODO Auto-generated method stub
171:
172: }
173:
174: public void setHoldability(int holdability) throws SQLException {
175: // TODO Auto-generated method stub
176:
177: }
178:
179: public void setReadOnly(boolean readOnly) throws SQLException {
180: // TODO Auto-generated method stub
181:
182: }
183:
184: public Savepoint setSavepoint() throws SQLException {
185: // TODO Auto-generated method stub
186: return null;
187: }
188:
189: public Savepoint setSavepoint(String name) throws SQLException {
190: // TODO Auto-generated method stub
191: return null;
192: }
193:
194: public void setTransactionIsolation(int level) throws SQLException {
195: // TODO Auto-generated method stub
196:
197: }
198:
199: public void setTypeMap(Map arg0) throws SQLException {
200: // TODO Auto-generated method stub
201:
202: }
203:
204: }
|