From: Mark G. <mg...@us...> - 2005-11-29 20:28:42
|
Update of /cvsroot/gmod/apollo/src/java/apollo/editor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13539/src/java/apollo/editor Modified Files: Transaction.java UpdateTransaction.java Log Message: fixed bug with jdbc writeback with splits reported by cyril - an exon gets moved from old splitter transcript to new splitee transcript - this manifests as a insert & delete exon transaction (compund update parent transaction) and TransactionManager in coalescing queries if the deleted exon is from an added ancestor and it was coming back with true as deleted exon was now seeing the new added transcript as its parent - the correction is to use the deleted exons old parent not its new one in coalescing and the transaction carries this along but this correction has exposed a new bug - adding of a new transcript is not checking whether its exons are shared - where adding genes is - yikes! so adding a new transcript can end up adding a duplicate shared exon - big chado no-no - gotta love those shared exons Index: Transaction.java =================================================================== RCS file: /cvsroot/gmod/apollo/src/java/apollo/editor/Transaction.java,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** Transaction.java 20 Sep 2005 15:09:31 -0000 1.43 --- Transaction.java 29 Nov 2005 20:28:27 -0000 1.44 *************** *** 128,132 **** } ! boolean isUpdate() { return false; } public boolean isAdd() { return false; } --- 128,132 ---- } ! public boolean isUpdate() { return false; } public boolean isAdd() { return false; } Index: UpdateTransaction.java =================================================================== RCS file: /cvsroot/gmod/apollo/src/java/apollo/editor/UpdateTransaction.java,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** UpdateTransaction.java 28 Sep 2005 15:15:53 -0000 1.24 --- UpdateTransaction.java 29 Nov 2005 20:28:27 -0000 1.25 *************** *** 60,64 **** } ! boolean isUpdate() { return true; } /** fiddling about... trying this out */ --- 60,64 ---- } ! public boolean isUpdate() { return true; } /** fiddling about... trying this out */ |