Revision 1615
Added by Jing Tao over 21 years ago
src/edu/ucsb/nceas/metacat/EmlSAXHandler.java | ||
---|---|---|
366 | 366 |
DBConnection dbConn = null; |
367 | 367 |
int serialNumber = -1; |
368 | 368 |
|
369 |
if ( systemid != null ) |
|
369 |
|
|
370 |
try |
|
370 | 371 |
{ |
371 |
try |
|
372 |
{ |
|
373 | 372 |
// Get dbconnection |
374 | 373 |
dbConn=DBConnectionPool.getDBConnection |
375 | 374 |
("DBSAXHandler.startElement"); |
... | ... | |
381 | 380 |
"WHERE entry_type = 'Schema' " + |
382 | 381 |
"AND public_id = '" + doctype + "'"); |
383 | 382 |
boolean hasRow = rs.next(); |
384 |
if ( hasRow ) { |
|
383 |
if ( hasRow ) |
|
384 |
{ |
|
385 | 385 |
catalogid = rs.getString(1); |
386 | 386 |
} |
387 | 387 |
stmt.close(); |
388 |
}//try
|
|
389 |
finally
|
|
390 |
{
|
|
388 |
}//try |
|
389 |
finally |
|
390 |
{ |
|
391 | 391 |
// Return dbconnection |
392 | 392 |
DBConnectionPool.returnDBConnection(dbConn, serialNumber); |
393 |
}//finally
|
|
394 |
} |
|
393 |
}//finally |
|
394 |
|
|
395 | 395 |
|
396 | 396 |
//create documentImpl object by the constructor which can specify |
397 | 397 |
//the revision |
... | ... | |
1255 | 1255 |
//delete relation table |
1256 | 1256 |
deleteRelations(); |
1257 | 1257 |
//write relations |
1258 |
for (int i= 0; i<onlineDataFileIdVector.size(); i++) |
|
1258 |
/*for (int i= 0; i<onlineDataFileIdVector.size(); i++)
|
|
1259 | 1259 |
{ |
1260 | 1260 |
String id = (String)onlineDataFileIdVector.elementAt(i); |
1261 | 1261 |
writeOnlineDataFileIdIntoRelationTable(id); |
1262 |
} |
|
1262 |
}*/
|
|
1263 | 1263 |
|
1264 | 1264 |
// Starting new thread for writing XML Index. |
1265 | 1265 |
// It calls the run method of the thread. |
Also available in: Unified diff
Don't write online data id into db.