Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.db / org.gvsig.fmap.dal.db.jdbc / src / main / java / org / gvsig / fmap / dal / store / jdbc2 / spi / FakeStatement.java @ 45063

History | View | Annotate | Download (4.74 KB)

1
package org.gvsig.fmap.dal.store.jdbc2.spi;
2

    
3
import java.sql.Connection;
4
import java.sql.ResultSet;
5
import java.sql.SQLException;
6
import java.sql.SQLWarning;
7
import java.sql.Statement;
8

    
9
/**
10
 *
11
 * @author gvSIG Team
12
 */
13
public class FakeStatement implements Statement {
14

    
15
    private final Connection connection;
16

    
17
    public FakeStatement(Connection connection) {
18
        this.connection = connection;
19
    }
20
    
21
    @Override
22
    public ResultSet executeQuery(String sql) throws SQLException {
23
        return null;
24
    }
25

    
26
    @Override
27
    public int executeUpdate(String sql) throws SQLException {
28
        return -1;
29
    }
30

    
31
    @Override
32
    public void close() throws SQLException {
33
        
34
    }
35

    
36
    @Override
37
    public int getMaxFieldSize() throws SQLException {
38
        return -1;
39
    }
40

    
41
    @Override
42
    public void setMaxFieldSize(int max) throws SQLException {
43
        
44
    }
45

    
46
    @Override
47
    public int getMaxRows() throws SQLException {
48
        return -1;
49
    }
50

    
51
    @Override
52
    public void setMaxRows(int max) throws SQLException {
53
        
54
    }
55

    
56
    @Override
57
    public void setEscapeProcessing(boolean enable) throws SQLException {
58
        
59
    }
60

    
61
    @Override
62
    public int getQueryTimeout() throws SQLException {
63
        return -1;
64
    }
65

    
66
    @Override
67
    public void setQueryTimeout(int seconds) throws SQLException {
68
        
69
    }
70

    
71
    @Override
72
    public void cancel() throws SQLException {
73
        
74
    }
75

    
76
    @Override
77
    public SQLWarning getWarnings() throws SQLException {
78
        return null;
79
    }
80

    
81
    @Override
82
    public void clearWarnings() throws SQLException {
83
        
84
    }
85

    
86
    @Override
87
    public void setCursorName(String name) throws SQLException {
88
        
89
    }
90

    
91
    @Override
92
    public boolean execute(String sql) throws SQLException {
93
        return false;
94
    }
95

    
96
    @Override
97
    public ResultSet getResultSet() throws SQLException {
98
        return null;
99
    }
100

    
101
    @Override
102
    public int getUpdateCount() throws SQLException {
103
        return -1;
104
    }
105

    
106
    @Override
107
    public boolean getMoreResults() throws SQLException {
108
        return false;
109
    }
110

    
111
    @Override
112
    public void setFetchDirection(int direction) throws SQLException {
113
        
114
    }
115

    
116
    @Override
117
    public int getFetchDirection() throws SQLException {
118
        return -1;
119
    }
120

    
121
    @Override
122
    public void setFetchSize(int rows) throws SQLException {
123
        
124
    }
125

    
126
    @Override
127
    public int getFetchSize() throws SQLException {
128
        return -1;
129
    }
130

    
131
    @Override
132
    public int getResultSetConcurrency() throws SQLException {
133
        return -1;
134
    }
135

    
136
    @Override
137
    public int getResultSetType() throws SQLException {
138
        return -1;
139
    }
140

    
141
    @Override
142
    public void addBatch(String sql) throws SQLException {
143
        
144
    }
145

    
146
    @Override
147
    public void clearBatch() throws SQLException {
148
        
149
    }
150

    
151
    @Override
152
    public int[] executeBatch() throws SQLException {
153
        return null;
154
    }
155

    
156
    @Override
157
    public Connection getConnection() throws SQLException {
158
        return this.connection;
159
    }
160

    
161
    @Override
162
    public boolean getMoreResults(int current) throws SQLException {
163
        return false;
164
    }
165

    
166
    @Override
167
    public ResultSet getGeneratedKeys() throws SQLException {
168
        return null;
169
    }
170

    
171
    @Override
172
    public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException {
173
        return -1;
174
    }
175

    
176
    @Override
177
    public int executeUpdate(String sql, int[] columnIndexes) throws SQLException {
178
        return -1;
179
    }
180

    
181
    @Override
182
    public int executeUpdate(String sql, String[] columnNames) throws SQLException {
183
        return -1;
184
    }
185

    
186
    @Override
187
    public boolean execute(String sql, int autoGeneratedKeys) throws SQLException {
188
        return false;
189
    }
190

    
191
    @Override
192
    public boolean execute(String sql, int[] columnIndexes) throws SQLException {
193
        return false;
194
    }
195

    
196
    @Override
197
    public boolean execute(String sql, String[] columnNames) throws SQLException {
198
        return false;
199
    }
200

    
201
    @Override
202
    public int getResultSetHoldability() throws SQLException {
203
        return -1;
204
    }
205

    
206
    @Override
207
    public boolean isClosed() throws SQLException {
208
        return false;
209
    }
210

    
211
    @Override
212
    public void setPoolable(boolean poolable) throws SQLException {
213
        
214
    }
215

    
216
    @Override
217
    public boolean isPoolable() throws SQLException {
218
        return false;
219
    }
220

    
221
    @Override
222
    public void closeOnCompletion() throws SQLException {
223
        
224
    }
225

    
226
    @Override
227
    public boolean isCloseOnCompletion() throws SQLException {
228
        return false;
229
    }
230

    
231
    @Override
232
    public <T> T unwrap(Class<T> iface) throws SQLException {
233
        return null;
234
    }
235

    
236
    @Override
237
    public boolean isWrapperFor(Class<?> iface) throws SQLException {
238
        return false;
239
    }
240
    
241
}