Changeset 7124
- Timestamp:
- Apr 20, 2016, 8:12:54 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/AnnotationBatcher.java
r7123 r7124 653 653 654 654 // Update last_update, unit, version in Annotations 655 updateAnnotations.addToBatch(info.version+1, unit != null ? unit.getId() : info.unitId, batchDate, info.annotationId, info.version); 655 if (unit != null) info.unitId = unit.getId(); 656 updateAnnotations.addToBatch(info.version+1, info.unitId, batchDate, info.annotationId, info.version); 656 657 } 657 658 else … … 674 675 675 676 // Insert into ParameterValues 676 in tvalueId = insertIntoParameterValues.insert(discriminators[info.valueType.ordinal()]);677 info.valueId = insertIntoParameterValues.insert(discriminators[info.valueType.ordinal()]); 677 678 678 679 // Insert into **Values 679 680 for (Object v : convertedValues) 680 681 { 681 insertValues[info.valueType.ordinal()].addToBatch( valueId, v);682 insertValues[info.valueType.ordinal()].addToBatch(info.valueId, v); 682 683 } 683 684 … … 692 693 693 694 // Insert into Annotations 694 in t annotationId = insertIntoAnnotations.insert(currentAnnotationSetId, info.annotationTypeId, null,valueId, batchDate);695 info.annotationId = insertIntoAnnotations.insert(currentAnnotationSetId, info.annotationTypeId, null, info.valueId, batchDate); 695 696 } 696 697 } … … 704 705 // the SnapshotManager to clear the cache when this 705 706 // batcher is closed 706 if (changeType != Change.NO_CHANGE && deleteSnapshotIfModifed) 707 { 708 deleteSnapshotIfModifed = false; 709 snapshotsToDelete.add(currentAnnotationSetId); 707 if (changeType != Change.NO_CHANGE) 708 { 709 if (deleteSnapshotIfModifed) 710 { 711 deleteSnapshotIfModifed = false; 712 snapshotsToDelete.add(currentAnnotationSetId); 713 } 710 714 } 711 715 … … 739 743 */ 740 744 DELETED; 745 741 746 } 742 747 … … 778 783 } 779 784 780 781 785 /** 782 786 Batcher implementation for inserting into tables.
Note: See TracChangeset
for help on using the changeset viewer.