Mercurial > dive4elements > gnv-client
comparison geo-backend/src/main/java/de/intevation/gnv/geobackend/sde/datasources/ArcSDEResultSetMetaData.java @ 884:12f88239fb33
Updated Javadocs to the Listed Classes.
Also done some Codecleanup and removed unused Methods from the Code.
geo-backend/trunk@842 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Fri, 26 Mar 2010 15:23:03 +0000 |
parents | 485566786089 |
children | 1c3efbd2fc5a |
comparison
equal
deleted
inserted
replaced
883:6d568397740c | 884:12f88239fb33 |
---|---|
6 import java.sql.ResultSetMetaData; | 6 import java.sql.ResultSetMetaData; |
7 import java.sql.SQLException; | 7 import java.sql.SQLException; |
8 import java.util.List; | 8 import java.util.List; |
9 | 9 |
10 /** | 10 /** |
11 * This Class is an Wrapperclass for the ResultSetMetaData and the | |
12 * ColumnDefinitions which are retrieved from the ArcSDE-Backend. | |
11 * @author Tim Englich <tim.englich@intevation.de> | 13 * @author Tim Englich <tim.englich@intevation.de> |
12 * | 14 * |
13 */ | 15 */ |
14 public class ArcSDEResultSetMetaData implements ResultSetMetaData { | 16 public class ArcSDEResultSetMetaData implements ResultSetMetaData { |
15 | 17 |
18 /** | |
19 * The Columndefinitions which are required to explain the retrieved Data. | |
20 */ | |
16 private List<ColDefinition> columnDefinitions = null; | 21 private List<ColDefinition> columnDefinitions = null; |
22 | |
17 /** | 23 /** |
18 * Constructor | 24 * Constructor |
19 */ | 25 */ |
20 public ArcSDEResultSetMetaData(List<ColDefinition> columnDefinitions) { | 26 public ArcSDEResultSetMetaData(List<ColDefinition> columnDefinitions) { |
21 this.columnDefinitions = columnDefinitions; | 27 this.columnDefinitions = columnDefinitions; |
23 | 29 |
24 /** | 30 /** |
25 * @see java.sql.ResultSetMetaData#getCatalogName(int) | 31 * @see java.sql.ResultSetMetaData#getCatalogName(int) |
26 */ | 32 */ |
27 public String getCatalogName(int column) throws SQLException { | 33 public String getCatalogName(int column) throws SQLException { |
28 | |
29 return null; | 34 return null; |
30 } | 35 } |
31 | 36 |
32 /** | 37 /** |
33 * @see java.sql.ResultSetMetaData#getColumnClassName(int) | 38 * @see java.sql.ResultSetMetaData#getColumnClassName(int) |
34 */ | 39 */ |
35 public String getColumnClassName(int column) throws SQLException { | 40 public String getColumnClassName(int column) throws SQLException { |
36 | |
37 int type = this.getColumnType(column); | 41 int type = this.getColumnType(column); |
38 if (type == ColDefinition.INT16){ | 42 if (type == ColDefinition.INT16){ |
39 return "Integer"; | 43 return "Integer"; |
40 }else if (type == ColDefinition.INT32){ | 44 }else if (type == ColDefinition.INT32){ |
41 return "Integer"; | 45 return "Integer"; |
65 | 69 |
66 /** | 70 /** |
67 * @see java.sql.ResultSetMetaData#getColumnDisplaySize(int) | 71 * @see java.sql.ResultSetMetaData#getColumnDisplaySize(int) |
68 */ | 72 */ |
69 public int getColumnDisplaySize(int column) throws SQLException { | 73 public int getColumnDisplaySize(int column) throws SQLException { |
70 | |
71 return 0; | 74 return 0; |
72 } | 75 } |
73 | 76 |
74 /** | 77 /** |
75 * @see java.sql.ResultSetMetaData#getColumnLabel(int) | 78 * @see java.sql.ResultSetMetaData#getColumnLabel(int) |
94 | 97 |
95 /** | 98 /** |
96 * @see java.sql.ResultSetMetaData#getColumnTypeName(int) | 99 * @see java.sql.ResultSetMetaData#getColumnTypeName(int) |
97 */ | 100 */ |
98 public String getColumnTypeName(int column) throws SQLException { | 101 public String getColumnTypeName(int column) throws SQLException { |
99 | |
100 return null; | 102 return null; |
101 } | 103 } |
102 | 104 |
103 /** | 105 /** |
104 * @see java.sql.ResultSetMetaData#getPrecision(int) | 106 * @see java.sql.ResultSetMetaData#getPrecision(int) |
105 */ | 107 */ |
106 public int getPrecision(int column) throws SQLException { | 108 public int getPrecision(int column) throws SQLException { |
107 | |
108 return 0; | 109 return 0; |
109 } | 110 } |
110 | 111 |
111 /** | 112 /** |
112 * @see java.sql.ResultSetMetaData#getScale(int) | 113 * @see java.sql.ResultSetMetaData#getScale(int) |
113 */ | 114 */ |
114 public int getScale(int column) throws SQLException { | 115 public int getScale(int column) throws SQLException { |
115 | |
116 return 0; | 116 return 0; |
117 } | 117 } |
118 | 118 |
119 /** | 119 /** |
120 * @see java.sql.ResultSetMetaData#getSchemaName(int) | 120 * @see java.sql.ResultSetMetaData#getSchemaName(int) |
121 */ | 121 */ |
122 public String getSchemaName(int column) throws SQLException { | 122 public String getSchemaName(int column) throws SQLException { |
123 | |
124 return null; | 123 return null; |
125 } | 124 } |
126 | 125 |
127 /** | 126 /** |
128 * @see java.sql.ResultSetMetaData#getTableName(int) | 127 * @see java.sql.ResultSetMetaData#getTableName(int) |
129 */ | 128 */ |
130 public String getTableName(int column) throws SQLException { | 129 public String getTableName(int column) throws SQLException { |
131 | |
132 return null; | 130 return null; |
133 } | 131 } |
134 | 132 |
135 /** | 133 /** |
136 * @see java.sql.ResultSetMetaData#isAutoIncrement(int) | 134 * @see java.sql.ResultSetMetaData#isAutoIncrement(int) |
137 */ | 135 */ |
138 public boolean isAutoIncrement(int column) throws SQLException { | 136 public boolean isAutoIncrement(int column) throws SQLException { |
139 | |
140 return false; | 137 return false; |
141 } | 138 } |
142 | 139 |
143 /** | 140 /** |
144 * @see java.sql.ResultSetMetaData#isCaseSensitive(int) | 141 * @see java.sql.ResultSetMetaData#isCaseSensitive(int) |
145 */ | 142 */ |
146 public boolean isCaseSensitive(int column) throws SQLException { | 143 public boolean isCaseSensitive(int column) throws SQLException { |
147 | |
148 return false; | 144 return false; |
149 } | 145 } |
150 | 146 |
151 /** | 147 /** |
152 * @see java.sql.ResultSetMetaData#isCurrency(int) | 148 * @see java.sql.ResultSetMetaData#isCurrency(int) |
153 */ | 149 */ |
154 public boolean isCurrency(int column) throws SQLException { | 150 public boolean isCurrency(int column) throws SQLException { |
155 | |
156 return false; | 151 return false; |
157 } | 152 } |
158 | 153 |
159 /** | 154 /** |
160 * @see java.sql.ResultSetMetaData#isDefinitelyWritable(int) | 155 * @see java.sql.ResultSetMetaData#isDefinitelyWritable(int) |
161 */ | 156 */ |
162 public boolean isDefinitelyWritable(int column) throws SQLException { | 157 public boolean isDefinitelyWritable(int column) throws SQLException { |
163 | |
164 return false; | 158 return false; |
165 } | 159 } |
166 | 160 |
167 /** | 161 /** |
168 * @see java.sql.ResultSetMetaData#isNullable(int) | 162 * @see java.sql.ResultSetMetaData#isNullable(int) |
169 */ | 163 */ |
170 public int isNullable(int column) throws SQLException { | 164 public int isNullable(int column) throws SQLException { |
171 | |
172 return 0; | 165 return 0; |
173 } | 166 } |
174 | 167 |
175 /** | 168 /** |
176 * @see java.sql.ResultSetMetaData#isReadOnly(int) | 169 * @see java.sql.ResultSetMetaData#isReadOnly(int) |
177 */ | 170 */ |
178 public boolean isReadOnly(int column) throws SQLException { | 171 public boolean isReadOnly(int column) throws SQLException { |
179 | |
180 return true; | 172 return true; |
181 } | 173 } |
182 | 174 |
183 /** | 175 /** |
184 * @see java.sql.ResultSetMetaData#isSearchable(int) | 176 * @see java.sql.ResultSetMetaData#isSearchable(int) |
185 */ | 177 */ |
186 public boolean isSearchable(int column) throws SQLException { | 178 public boolean isSearchable(int column) throws SQLException { |
187 | |
188 return true; | 179 return true; |
189 } | 180 } |
190 | 181 |
191 /** | 182 /** |
192 * @see java.sql.ResultSetMetaData#isSigned(int) | 183 * @see java.sql.ResultSetMetaData#isSigned(int) |
200 */ | 191 */ |
201 public boolean isWritable(int column) throws SQLException { | 192 public boolean isWritable(int column) throws SQLException { |
202 return false; | 193 return false; |
203 } | 194 } |
204 | 195 |
196 /** | |
197 * @see java.sql.Wrapper#isWrapperFor(java.lang.Class) | |
198 */ | |
205 public boolean isWrapperFor(Class<?> iface) throws SQLException { | 199 public boolean isWrapperFor(Class<?> iface) throws SQLException { |
206 return false; | 200 return false; |
207 } | 201 } |
208 | 202 |
203 /** | |
204 * @see java.sql.Wrapper#unwrap(java.lang.Class) | |
205 */ | |
209 public <T> T unwrap(Class<T> iface) throws SQLException { | 206 public <T> T unwrap(Class<T> iface) throws SQLException { |
210 return null; | 207 return null; |
211 } | 208 } |
212 | 209 |
213 } | 210 } |