Changeset 7126


Ignore:
Timestamp:
Apr 20, 2016, 8:42:14 AM (6 years ago)
Author:
Nicklas Nordborg
Message:

References #2000: Batch API for annotation handling

Adding a call to checkBatchAnnotatableUsage() in all classes implementing the getAnnotationSet() method to prevent using bothe batch API and the regular API in the same transaction.

Location:
trunk/src/core/net/sf/basedb/core
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/AnnotatedItem.java

    r6897 r7126  
    5959    throws PermissionDeniedException, BaseException
    6060  {
     61    checkBatchAnnotatableUsage(true, false);
    6162    DbControl dc = getDbControl();
    6263    AnnotationSet as = dc.getItem(AnnotationSet.class, getData().getAnnotationSet(), this);
  • trunk/src/core/net/sf/basedb/core/BioAssay.java

    r7002 r7126  
    191191    throws PermissionDeniedException, BaseException
    192192  {
     193    checkBatchAnnotatableUsage(true, false);
    193194    DbControl dc = getDbControl();
    194195    AnnotationSet as = dc.getItem(AnnotationSet.class, getData().getAnnotationSet(), this);
  • trunk/src/core/net/sf/basedb/core/BioAssaySet.java

    r7016 r7126  
    268268    throws PermissionDeniedException, BaseException
    269269  {
     270    checkBatchAnnotatableUsage(true, false);
    270271    DbControl dc = getDbControl();
    271272    AnnotationSet as = dc.getItem(AnnotationSet.class, getData().getAnnotationSet(), this);
  • trunk/src/core/net/sf/basedb/core/RootRawBioAssay.java

    r7002 r7126  
    118118    throws PermissionDeniedException, BaseException
    119119  {
     120    checkBatchAnnotatableUsage(true, false);
    120121    DbControl dc = getDbControl();
    121122    AnnotationSet as = dc.getItem(AnnotationSet.class, getData().getAnnotationSet(), this);
  • trunk/src/core/net/sf/basedb/core/Well.java

    r7014 r7126  
    129129    throws PermissionDeniedException, BaseException
    130130  {
     131    checkBatchAnnotatableUsage(true, false);
    131132    DbControl dc = getDbControl();
    132133    AnnotationSet as = dc.getItem(AnnotationSet.class, getData().getAnnotationSet(), this);
Note: See TracChangeset for help on using the changeset viewer.