Revision 6104
Added by ben leinfelder over 13 years ago
src/edu/ucsb/nceas/metacat/IdentifierManager.java | ||
---|---|---|
696 | 696 |
} |
697 | 697 |
else |
698 | 698 |
{ |
699 |
query = "select guid from systemmetadata where docid = ? and rev = ?"; |
|
700 |
stmt = dbConn.prepareStatement(query); |
|
701 |
stmt.setString(1, docid); |
|
702 |
stmt.setInt(2, rev); |
|
703 |
rs = stmt.executeQuery(); |
|
704 |
if(rs.next()) |
|
705 |
{ |
|
706 |
guid = rs.getString(1); |
|
707 |
} |
|
708 |
else |
|
709 |
{ |
|
710 |
throw new McdbDocNotFoundException("No guid registered for docid " + docid + "." + rev); |
|
711 |
} |
|
699 |
throw new McdbDocNotFoundException("No guid registered for docid " + docid + "." + rev); |
|
712 | 700 |
} |
713 | 701 |
|
714 | 702 |
} catch (SQLException e) { |
Also available in: Unified diff
do not look in systemMetadata for a docid->guid mapping