svn-gvsig-desktop / tags / v2_0_0_Build_2021 / libraries / libFMap_daldb / src / org / gvsig / fmap / dal / store / jdbc / JDBCServerExplorer.java @ 34088
History | View | Annotate | Download (16.1 KB)
1 |
/* gvSIG. Geographic Information System of the Valencian Government
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007-2008 Infrastructures and Transports Department
|
4 |
* of the Valencian Government (CIT)
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 2
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
*/
|
22 |
|
23 |
/*
|
24 |
* AUTHORS (In addition to CIT):
|
25 |
* 2009 IVER T.I {{Task}}
|
26 |
*/
|
27 |
|
28 |
/**
|
29 |
*
|
30 |
*/
|
31 |
package org.gvsig.fmap.dal.store.jdbc; |
32 |
|
33 |
import java.sql.Connection; |
34 |
import java.sql.DatabaseMetaData; |
35 |
import java.sql.ResultSet; |
36 |
import java.sql.SQLException; |
37 |
import java.sql.Statement; |
38 |
import java.util.ArrayList; |
39 |
import java.util.Iterator; |
40 |
import java.util.List; |
41 |
|
42 |
import org.gvsig.fmap.dal.DALLocator; |
43 |
import org.gvsig.fmap.dal.DataManager; |
44 |
import org.gvsig.fmap.dal.DataStore; |
45 |
import org.gvsig.fmap.dal.DataStoreParameters; |
46 |
import org.gvsig.fmap.dal.NewDataStoreParameters; |
47 |
import org.gvsig.fmap.dal.exception.CloseException; |
48 |
import org.gvsig.fmap.dal.exception.DataException; |
49 |
import org.gvsig.fmap.dal.exception.InitializeException; |
50 |
import org.gvsig.fmap.dal.exception.OpenException; |
51 |
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
52 |
import org.gvsig.fmap.dal.exception.ReadException; |
53 |
import org.gvsig.fmap.dal.exception.RemoveException; |
54 |
import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
55 |
import org.gvsig.fmap.dal.feature.EditableFeatureType; |
56 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
57 |
import org.gvsig.fmap.dal.feature.FeatureType; |
58 |
import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters; |
59 |
import org.gvsig.fmap.dal.resource.spi.ResourceProvider; |
60 |
import org.gvsig.fmap.dal.serverexplorer.db.spi.AbstractDBServerExplorer; |
61 |
import org.gvsig.fmap.dal.spi.DataManagerProviderServices; |
62 |
import org.gvsig.fmap.dal.spi.DataServerExplorerProviderServices; |
63 |
import org.gvsig.fmap.dal.store.jdbc.exception.JDBCExecuteSQLException; |
64 |
import org.gvsig.fmap.dal.store.jdbc.exception.JDBCSQLException; |
65 |
import org.gvsig.tools.exception.BaseException; |
66 |
import org.slf4j.Logger; |
67 |
import org.slf4j.LoggerFactory; |
68 |
|
69 |
|
70 |
/**
|
71 |
* @author jmvivo
|
72 |
*
|
73 |
*/
|
74 |
public class JDBCServerExplorer extends AbstractDBServerExplorer |
75 |
implements JDBCHelperUser {
|
76 |
|
77 |
private static final Logger LOG = LoggerFactory |
78 |
.getLogger(JDBCServerExplorer.class); |
79 |
|
80 |
private static final String METADATA_COLUMN_TABLE_CATALOG = "TABLE_CAT"; |
81 |
private static final String METADATA_COLUMN_TABLE_SCHEMA = "TABLE_SCHEM"; |
82 |
private static final String METADATA_COLUMN_TABLE_NAME = "TABLE_NAME"; |
83 |
|
84 |
public static final String NAME = "JDBCServerExplorer"; |
85 |
protected JDBCHelper helper;
|
86 |
|
87 |
private Boolean canAdd; |
88 |
|
89 |
public JDBCServerExplorer(JDBCServerExplorerParameters parameters,
|
90 |
DataServerExplorerProviderServices services) |
91 |
throws InitializeException {
|
92 |
super(parameters, services);
|
93 |
this.helper = createHelper();
|
94 |
} |
95 |
|
96 |
protected JDBCServerExplorerParameters getJDBCParameters() {
|
97 |
return (JDBCServerExplorerParameters) getParameters();
|
98 |
} |
99 |
|
100 |
protected JDBCHelper createHelper() throws InitializeException { |
101 |
return new JDBCHelper(this, getJDBCParameters()); |
102 |
} |
103 |
|
104 |
protected JDBCHelper getHelper() {
|
105 |
return helper;
|
106 |
} |
107 |
|
108 |
|
109 |
public List list() throws DataException { |
110 |
return this.list(MODE_ALL); |
111 |
} |
112 |
|
113 |
public List list(boolean showInformationDBTables) throws DataException { |
114 |
return this.list(MODE_ALL, showInformationDBTables); |
115 |
} |
116 |
|
117 |
public List list(int mode) throws DataException { |
118 |
JDBCServerExplorerParameters parameters = getJDBCParameters(); |
119 |
if (parameters.getShowInformationDBTables() != null) { |
120 |
return this.list(mode, parameters.getShowInformationDBTables() |
121 |
.booleanValue()); |
122 |
} |
123 |
Boolean show = (Boolean) parameters |
124 |
.getDynClass() |
125 |
.getDynField( |
126 |
JDBCServerExplorerParameters.SHOWINFORMATIONDBTABLES_PARAMTER_NAME) |
127 |
.getDefaultValue(); |
128 |
if (show == null){ |
129 |
show = Boolean.FALSE;
|
130 |
} |
131 |
|
132 |
return this.list(mode, show.booleanValue()); |
133 |
} |
134 |
|
135 |
|
136 |
protected DataManagerProviderServices getManager() {
|
137 |
return (DataManagerProviderServices) DALLocator.getDataManager();
|
138 |
} |
139 |
|
140 |
public boolean hasGeometrySupport() { |
141 |
return false; |
142 |
} |
143 |
|
144 |
public boolean closeResourceRequested(ResourceProvider resource) { |
145 |
try {
|
146 |
this.helper.close();
|
147 |
} catch (CloseException e) {
|
148 |
LOG.error("Exception in close Request", e);
|
149 |
} |
150 |
return !this.helper.isOpen(); |
151 |
} |
152 |
|
153 |
public void resourceChanged(ResourceProvider resource) { |
154 |
// Nothing to do
|
155 |
} |
156 |
|
157 |
public void remove(DataStoreParameters dsp) throws RemoveException { |
158 |
final JDBCStoreParameters dsParams =(JDBCStoreParameters) dsp;
|
159 |
|
160 |
TransactionalAction action = new TransactionalAction() {
|
161 |
public boolean continueTransactionAllowed() { |
162 |
return false; |
163 |
} |
164 |
public Object action(Connection conn) throws DataException { |
165 |
Statement st;
|
166 |
try{
|
167 |
st = conn.createStatement(); |
168 |
} catch (SQLException e) { |
169 |
throw new JDBCSQLException(e); |
170 |
} |
171 |
|
172 |
String sqlDrop = "Drop table " |
173 |
+ dsParams.tableID(); |
174 |
|
175 |
try{
|
176 |
try{
|
177 |
st.execute(sqlDrop); |
178 |
} catch (SQLException e) { |
179 |
throw new JDBCExecuteSQLException(sqlDrop, e); |
180 |
} |
181 |
|
182 |
} finally{
|
183 |
try{ st.close(); } catch (SQLException e) {}; |
184 |
} |
185 |
return null; |
186 |
} |
187 |
}; |
188 |
try {
|
189 |
this.helper.doConnectionAction(action);
|
190 |
} catch (Exception e) { |
191 |
throw new RemoveException(this.getProviderName(), e); |
192 |
} |
193 |
} |
194 |
|
195 |
public NewDataStoreParameters getAddParameters() throws DataException { |
196 |
JDBCServerExplorerParameters parameters = getJDBCParameters(); |
197 |
JDBCNewStoreParameters params = new JDBCNewStoreParameters();
|
198 |
params.setHost(parameters.getHost()); |
199 |
params.setPort(parameters.getPort()); |
200 |
params.setDBName(parameters.getDBName()); |
201 |
params.setUser(parameters.getUser()); |
202 |
params.setPassword(parameters.getPassword()); |
203 |
params.setCatalog(parameters.getCatalog()); |
204 |
params.setSchema(parameters.getSchema()); |
205 |
params.setJDBCDriverClassName(parameters.getJDBCDriverClassName()); |
206 |
params.setUrl(parameters.getUrl()); |
207 |
|
208 |
params.setDefaultFeatureType(this.getServerExplorerProviderServices()
|
209 |
.createNewFeatureType()); |
210 |
|
211 |
return params;
|
212 |
} |
213 |
|
214 |
public void closeDone() throws DataException { |
215 |
// Nothing to do
|
216 |
} |
217 |
|
218 |
public void opendDone() throws DataException { |
219 |
// Nothin to do
|
220 |
|
221 |
} |
222 |
|
223 |
public DataStore open(DataStoreParameters dsp) throws DataException { |
224 |
checkIsMine(dsp); |
225 |
DataManager dataMan = DALLocator.getDataManager(); |
226 |
DataStore store; |
227 |
try {
|
228 |
store = dataMan.openStore(dsp.getDataStoreName(), dsp); |
229 |
} catch (ValidateDataParametersException e) {
|
230 |
throw new InitializeException(e); |
231 |
} |
232 |
|
233 |
return store;
|
234 |
} |
235 |
|
236 |
protected void checkIsMine(DataStoreParameters dsp) { |
237 |
if (!(dsp instanceof JDBCStoreParameters)) { |
238 |
// FIXME Exception ???
|
239 |
throw new IllegalArgumentException( |
240 |
"not instance of FilesystemStoreParameters");
|
241 |
} |
242 |
|
243 |
// try {
|
244 |
// dsp.validate();
|
245 |
// } catch (ValidateDataParametersException e) {
|
246 |
// throw new IllegalArgumentException("check parameters", e);
|
247 |
// }
|
248 |
|
249 |
JDBCServerExplorerParameters parameters = getJDBCParameters(); |
250 |
|
251 |
JDBCStoreParameters pgp = (JDBCStoreParameters) dsp; |
252 |
if (!compare(pgp.getHost(), parameters.getHost())) {
|
253 |
// FIXME Exception ???
|
254 |
throw new IllegalArgumentException("wrong explorer: Host (mine: " |
255 |
+ parameters.getHost() + " other:" + pgp.getHost() + ")"); |
256 |
} |
257 |
if (!compare(pgp.getPort(), parameters.getPort())) {
|
258 |
// FIXME Exception ???
|
259 |
throw new IllegalArgumentException("wrong explorer: Port (mine: " |
260 |
+ parameters.getPort() + " other:" + pgp.getPort() + ")"); |
261 |
} |
262 |
if (!compare(pgp.getDBName(), parameters.getDBName())) {
|
263 |
// FIXME Exception ???
|
264 |
throw new IllegalArgumentException("wrong explorer: DBName (mine: " |
265 |
+ parameters.getDBName() + " other:" + pgp.getDBName()
|
266 |
+ ")");
|
267 |
} |
268 |
if (parameters.getCatalog() != null) { |
269 |
// implicit catalog
|
270 |
if (!compare(pgp.getCatalog(), parameters.getCatalog())) {
|
271 |
// FIXME Exception ???
|
272 |
throw new IllegalArgumentException( |
273 |
"wrong explorer: Catalog (mine: "
|
274 |
+ parameters.getCatalog() + " other:"
|
275 |
+ pgp.getCatalog() + ")");
|
276 |
} |
277 |
} |
278 |
if (parameters.getSchema() != null) { |
279 |
// implicit schema
|
280 |
if (!compare(pgp.getSchema(), parameters.getSchema())) {
|
281 |
// FIXME Exception ???
|
282 |
throw new IllegalArgumentException( |
283 |
"wrong explorer: Schema (mine: "
|
284 |
+ parameters.getSchema() + " other:"
|
285 |
+ pgp.getSchema() + ")");
|
286 |
} |
287 |
} |
288 |
if (!compare(pgp.getJDBCDriverClassName(), parameters
|
289 |
.getJDBCDriverClassName())) { |
290 |
// FIXME Exception ???
|
291 |
throw new IllegalArgumentException( |
292 |
"wrong explorer: JDBCDriverClassName");
|
293 |
} |
294 |
} |
295 |
|
296 |
protected boolean compare(Object str1, Object str2) { |
297 |
if (str1 == str2){
|
298 |
return true; |
299 |
} |
300 |
if (str1 == null){ |
301 |
return false; |
302 |
} |
303 |
return str1.equals(str2);
|
304 |
} |
305 |
|
306 |
protected JDBCStoreParameters createStoreParams()
|
307 |
throws InitializeException, ProviderNotRegisteredException {
|
308 |
DataManagerProviderServices manager = this.getManager();
|
309 |
JDBCServerExplorerParameters parameters = getJDBCParameters(); |
310 |
JDBCStoreParameters orgParams = (JDBCStoreParameters) manager |
311 |
.createStoreParameters(getStoreName()); |
312 |
orgParams.setHost(parameters.getHost()); |
313 |
orgParams.setPort(parameters.getPort()); |
314 |
orgParams.setDBName(parameters.getDBName()); |
315 |
orgParams.setUser(parameters.getUser()); |
316 |
orgParams.setPassword(parameters.getPassword()); |
317 |
return orgParams;
|
318 |
} |
319 |
|
320 |
public List list(final int mode, final boolean showInformationDBTables) |
321 |
throws DataException {
|
322 |
|
323 |
final JDBCStoreParameters orgParams = createStoreParams();
|
324 |
|
325 |
ConnectionAction action = new ConnectionAction() {
|
326 |
|
327 |
public Object action(Connection conn) throws DataException { |
328 |
|
329 |
String[] tableTypes = null; |
330 |
if (!showInformationDBTables) {
|
331 |
tableTypes = new String[] { "TABLE", "VIEW" }; |
332 |
} |
333 |
|
334 |
ResultSet result = null; |
335 |
try {
|
336 |
DatabaseMetaData metadata = conn.getMetaData();
|
337 |
result = metadata.getTables(null, null, null, |
338 |
tableTypes); |
339 |
List<JDBCStoreParameters> paramList = new ArrayList<JDBCStoreParameters>(); |
340 |
while (result.next()) {
|
341 |
JDBCStoreParameters params = (JDBCStoreParameters) orgParams |
342 |
.getCopy(); |
343 |
params.setCatalog(result |
344 |
.getString(METADATA_COLUMN_TABLE_CATALOG)); |
345 |
params.setSchema(result |
346 |
.getString(METADATA_COLUMN_TABLE_SCHEMA)); |
347 |
params.setTable(result |
348 |
.getString(METADATA_COLUMN_TABLE_NAME)); |
349 |
paramList.add(params); |
350 |
} |
351 |
|
352 |
return paramList;
|
353 |
} catch (SQLException e) { |
354 |
throw new JDBCSQLException(e); |
355 |
} finally {
|
356 |
if (result != null) { |
357 |
try {
|
358 |
result.close(); |
359 |
} catch (Exception e) { |
360 |
LOG.error("Error closing DatabaseMetadata "
|
361 |
+ "getTables() Resultset", e);
|
362 |
} |
363 |
} |
364 |
} |
365 |
} |
366 |
|
367 |
}; |
368 |
|
369 |
try {
|
370 |
return (List) helper.doConnectionAction(action); |
371 |
} catch (Exception e) { |
372 |
throw new ReadException(this.getProviderName(), e); |
373 |
} |
374 |
} |
375 |
|
376 |
|
377 |
public void open() throws OpenException { |
378 |
helper.open(); |
379 |
} |
380 |
|
381 |
public void close() throws CloseException { |
382 |
helper.close(); |
383 |
} |
384 |
|
385 |
@Override
|
386 |
protected void doDispose() throws BaseException { |
387 |
helper.dispose(); |
388 |
helper = null;
|
389 |
} |
390 |
|
391 |
public String getProviderName() { |
392 |
return NAME;
|
393 |
} |
394 |
|
395 |
protected String getStoreName() { |
396 |
return JDBCStoreProvider.NAME;
|
397 |
} |
398 |
|
399 |
public boolean canAdd() { |
400 |
if (this.canAdd == null){ |
401 |
ConnectionAction action = new ConnectionAction(){
|
402 |
|
403 |
public Object action(Connection conn) throws DataException { |
404 |
try {
|
405 |
DatabaseMetaData metadata = conn.getMetaData();
|
406 |
if (metadata.isReadOnly()) {
|
407 |
return Boolean.FALSE; |
408 |
} |
409 |
return Boolean.TRUE; |
410 |
} catch (SQLException e) { |
411 |
throw new JDBCSQLException(e); |
412 |
} |
413 |
} |
414 |
|
415 |
}; |
416 |
|
417 |
try {
|
418 |
this.canAdd = (Boolean) helper.doConnectionAction(action); |
419 |
} catch (Exception e) { |
420 |
// FIXME Exception
|
421 |
throw new RuntimeException(e); |
422 |
} |
423 |
} |
424 |
return this.canAdd.booleanValue(); |
425 |
} |
426 |
|
427 |
public FeatureType getFeatureType(DataStoreParameters dsp)
|
428 |
throws DataException {
|
429 |
checkIsMine(dsp); |
430 |
|
431 |
// TODO: checks geometry columns and driver geometry supports
|
432 |
EditableFeatureType edType = this.getServerExplorerProviderServices()
|
433 |
.createNewFeatureType(); |
434 |
helper.loadFeatureType(edType, (JDBCStoreParameters) dsp); |
435 |
|
436 |
return edType;
|
437 |
|
438 |
} |
439 |
|
440 |
|
441 |
public boolean add(String providerName, NewDataStoreParameters ndsp, boolean overwrite) |
442 |
throws DataException {
|
443 |
|
444 |
/**
|
445 |
* CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE table_name (
|
446 |
* { column_name data_type [ DEFAULT default_expr ] [ column_constraint
|
447 |
* [ ... ] ] | table_constraint | LIKE parent_table [ { INCLUDING |
|
448 |
* EXCLUDING } DEFAULTS ] } [, ... ] ) [ INHERITS ( parent_table [, ...
|
449 |
* ] ) ] [ WITH OIDS | WITHOUT OIDS ] [ ON COMMIT { PRESERVE ROWS |
|
450 |
* DELETE ROWS | DROP } ]
|
451 |
*
|
452 |
* where column_constraint is:
|
453 |
*
|
454 |
* [ CONSTRAINT constraint_name ] { NOT NULL | NULL | UNIQUE | PRIMARY
|
455 |
* KEY | CHECK (expression) | REFERENCES reftable [ ( refcolumn ) ] [
|
456 |
* MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ] [ ON DELETE action ] [ ON
|
457 |
* UPDATE action ] } [ DEFERRABLE | NOT DEFERRABLE ] [ INITIALLY
|
458 |
* DEFERRED | INITIALLY IMMEDIATE ]
|
459 |
*
|
460 |
* and table_constraint is:
|
461 |
*
|
462 |
* [ CONSTRAINT constraint_name ] { UNIQUE ( column_name [, ... ] ) |
|
463 |
* PRIMARY KEY ( column_name [, ... ] ) | CHECK ( expression ) | FOREIGN
|
464 |
* KEY ( column_name [, ... ] ) REFERENCES reftable [ ( refcolumn [, ...
|
465 |
* ] ) ] [ MATCH FULL | MATCH PARTIAL | MATCH SIMPLE ] [ ON DELETE
|
466 |
* action ] [ ON UPDATE action ] } [ DEFERRABLE | NOT DEFERRABLE ] [
|
467 |
* INITIALLY DEFERRED | INITIALLY IMMEDIATE ]
|
468 |
*/
|
469 |
|
470 |
if (!(ndsp instanceof NewFeatureStoreParameters)) { |
471 |
// FIXME exception
|
472 |
throw new IllegalArgumentException(); |
473 |
} |
474 |
checkIsMine(ndsp); |
475 |
|
476 |
NewFeatureStoreParameters nfdsp = (NewFeatureStoreParameters) ndsp; |
477 |
|
478 |
StringBuilder sql = new StringBuilder(); |
479 |
|
480 |
if (!nfdsp.isValid()) {
|
481 |
// TODO Exception
|
482 |
throw new InitializeException(this.getProviderName(), new Exception( |
483 |
"Parameters not valid"));
|
484 |
} |
485 |
try {
|
486 |
nfdsp.validate(); |
487 |
} catch (ValidateDataParametersException e1) {
|
488 |
throw new InitializeException(this.getProviderName(), e1); |
489 |
} |
490 |
|
491 |
FeatureType fType = nfdsp.getDefaultFeatureType(); |
492 |
|
493 |
sql.append("Create table " + ((JDBCStoreParameters) ndsp).tableID()
|
494 |
+ "(");
|
495 |
Iterator attrs = fType.iterator();
|
496 |
String sqlAttr;
|
497 |
List sqlAttrs = new ArrayList(); |
498 |
|
499 |
while (attrs.hasNext()) {
|
500 |
sqlAttr = helper |
501 |
.getSqlFieldDescription((FeatureAttributeDescriptor) attrs |
502 |
.next()); |
503 |
if (sqlAttr != null) { |
504 |
sqlAttrs.add(sqlAttr); |
505 |
} |
506 |
} |
507 |
|
508 |
helper.stringJoin(sqlAttrs, ", ", sql);
|
509 |
|
510 |
sql.append(")");
|
511 |
|
512 |
final String sqlCreate = sql.toString(); |
513 |
final List sqlAdditional = helper |
514 |
.getAdditionalSqlToCreate(ndsp, fType); |
515 |
|
516 |
TransactionalAction action = new TransactionalAction() {
|
517 |
|
518 |
public boolean continueTransactionAllowed() { |
519 |
// TODO Auto-generated method stub
|
520 |
return false; |
521 |
} |
522 |
|
523 |
public Object action(Connection conn) throws DataException { |
524 |
Statement st = null; |
525 |
|
526 |
try {
|
527 |
st = conn.createStatement(); |
528 |
} catch (SQLException e1) { |
529 |
throw new JDBCSQLException(e1); |
530 |
} |
531 |
String sql = null; |
532 |
|
533 |
try {
|
534 |
sql = sqlCreate; |
535 |
st.execute(sql); |
536 |
if (sqlAdditional != null) { |
537 |
Iterator iter = sqlAdditional.iterator();
|
538 |
while (iter.hasNext()) {
|
539 |
sql = (String) iter.next();
|
540 |
st.execute(sql); |
541 |
} |
542 |
} |
543 |
|
544 |
} catch (SQLException e) { |
545 |
throw new JDBCExecuteSQLException(sql, e); |
546 |
} finally {
|
547 |
try {
|
548 |
st.close(); |
549 |
} catch (SQLException e) { |
550 |
LOG.error("Exception clossing statement", e);
|
551 |
} |
552 |
; |
553 |
} |
554 |
|
555 |
return Boolean.TRUE; |
556 |
} |
557 |
|
558 |
}; |
559 |
|
560 |
Boolean result = Boolean.FALSE; |
561 |
|
562 |
try {
|
563 |
result = (Boolean) helper.doConnectionAction(action);
|
564 |
} catch (Exception e) { |
565 |
// FIXME Exception
|
566 |
throw new RuntimeException(e); |
567 |
} |
568 |
|
569 |
return result.booleanValue();
|
570 |
} |
571 |
|
572 |
public List getDataStoreProviderNames() { |
573 |
List x = new ArrayList(1); |
574 |
x.add(JDBCStoreProvider.NAME); |
575 |
return x;
|
576 |
} |
577 |
|
578 |
} |