Skip to content
Snippets Groups Projects
Commit c118dfbf authored by tjc's avatar tjc
Browse files

fixes and ID updating

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@4626 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent da65132c
No related branches found
No related tags found
No related merge requests found
......@@ -267,7 +267,8 @@ public class ChadoTransactionManager
if(seg_id == null)
seg_id = feature.getSegmentID(range_old);
feature.getSegmentRangeStore().put(seg_id, range_new);
if(feature.getSegmentRangeStore() != null)
feature.getSegmentRangeStore().put(seg_id, range_new);
tsn = new ChadoTransaction(ChadoTransaction.UPDATE,
seg_id, "featureloc",
......@@ -910,7 +911,7 @@ public class ChadoTransactionManager
* @param old_qualifier the old qualifier
*/
private void handleReservedTags(final GFFStreamFeature feature,
final String uniquename,
String uniquename,
final Qualifier new_qualifier,
final Qualifier old_qualifier)
{
......@@ -933,6 +934,24 @@ public class ChadoTransactionManager
else
qualifier_name = new_qualifier.getName();
if(qualifier_name.equals("ID"))
{
// this shouldn't be possible
if(new_qualifier.getValues() == null)
return;
uniquename = (String) old_qualifier.getValues().get(0);
ChadoTransaction tsn = new ChadoTransaction(ChadoTransaction.UPDATE,
uniquename, "feature",
feature.getLastModified(),
feature);
tsn.addProperty("uniquename", "'" +
stripQuotes((String) new_qualifier.getValues().get(0)) + "'");
sql.add(tsn);
return;
}
ChadoTransaction tsn = null;
// find tags that have been deleted
for(int i = 0; i < old_qualifier_strings.size(); ++i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment