f1969ecd29ab5e63d26d0d42a2a828dff235048e
[squelch.git] / src / test / java / net / jaekl / squelch / db / ResultSetMetaDataMock.java
1 package net.jaekl.squelch.db;
2
3 import java.sql.ResultSetMetaData;
4 import java.sql.SQLException;
5
6 import net.jaekl.squelch.sql.Column;
7
8 public class ResultSetMetaDataMock implements ResultSetMetaData {
9         private Column[] m_cols;
10         
11         public ResultSetMetaDataMock()
12         {
13                 m_cols = new Column[0];
14         }
15
16         @Override
17         public boolean isWrapperFor(Class<?> arg0) throws SQLException {
18                 throw new UnsupportedOperationException("Not yet implemented.");
19                 
20         }
21
22         @Override
23         public <T> T unwrap(Class<T> arg0) throws SQLException {
24                 throw new UnsupportedOperationException("Not yet implemented.");
25                 
26         }
27
28         @Override
29         public String getCatalogName(int arg0) throws SQLException {
30                 throw new UnsupportedOperationException("Not yet implemented.");
31                 
32         }
33
34         @Override
35         public String getColumnClassName(int arg0) throws SQLException {
36                 throw new UnsupportedOperationException("Not yet implemented.");
37                 
38         }
39
40         @Override
41         public int getColumnCount() throws SQLException {
42                 return m_cols.length;
43         }
44
45         @Override
46         public int getColumnDisplaySize(int arg0) throws SQLException {
47                 throw new UnsupportedOperationException("Not yet implemented.");
48                 
49         }
50
51         @Override
52         public String getColumnLabel(int arg0) throws SQLException {
53                 throw new UnsupportedOperationException("Not yet implemented.");
54                 
55         }
56
57         @Override
58         public String getColumnName(int arg0) throws SQLException {
59                 throw new UnsupportedOperationException("Not yet implemented.");
60                 
61         }
62
63         @Override
64         public int getColumnType(int arg0) throws SQLException {
65                 throw new UnsupportedOperationException("Not yet implemented.");
66                 
67         }
68
69         @Override
70         public String getColumnTypeName(int arg0) throws SQLException {
71                 throw new UnsupportedOperationException("Not yet implemented.");
72                 
73         }
74
75         @Override
76         public int getPrecision(int arg0) throws SQLException {
77                 throw new UnsupportedOperationException("Not yet implemented.");
78                 
79         }
80
81         @Override
82         public int getScale(int arg0) throws SQLException {
83                 throw new UnsupportedOperationException("Not yet implemented.");
84                 
85         }
86
87         @Override
88         public String getSchemaName(int arg0) throws SQLException {
89                 throw new UnsupportedOperationException("Not yet implemented.");
90                 
91         }
92
93         @Override
94         public String getTableName(int arg0) throws SQLException {
95                 throw new UnsupportedOperationException("Not yet implemented.");
96                 
97         }
98
99         @Override
100         public boolean isAutoIncrement(int arg0) throws SQLException {
101                 throw new UnsupportedOperationException("Not yet implemented.");
102                 
103         }
104
105         @Override
106         public boolean isCaseSensitive(int arg0) throws SQLException {
107                 throw new UnsupportedOperationException("Not yet implemented.");
108                 
109         }
110
111         @Override
112         public boolean isCurrency(int arg0) throws SQLException {
113                 throw new UnsupportedOperationException("Not yet implemented.");
114                 
115         }
116
117         @Override
118         public boolean isDefinitelyWritable(int arg0) throws SQLException {
119                 throw new UnsupportedOperationException("Not yet implemented.");
120                 
121         }
122
123         @Override
124         public int isNullable(int arg0) throws SQLException {
125                 throw new UnsupportedOperationException("Not yet implemented.");
126                 
127         }
128
129         @Override
130         public boolean isReadOnly(int arg0) throws SQLException {
131                 throw new UnsupportedOperationException("Not yet implemented.");
132                 
133         }
134
135         @Override
136         public boolean isSearchable(int arg0) throws SQLException {
137                 throw new UnsupportedOperationException("Not yet implemented.");
138                 
139         }
140
141         @Override
142         public boolean isSigned(int arg0) throws SQLException {
143                 throw new UnsupportedOperationException("Not yet implemented.");
144                 
145         }
146
147         @Override
148         public boolean isWritable(int arg0) throws SQLException {
149                 throw new UnsupportedOperationException("Not yet implemented.");
150                 
151         }
152
153 }