public List<BlobStoreBulkOperationResult> executeBulk(List<BlobStoreBulkOperationRequest> operations,BlobStoreObjectType objectType,boolean transactional){
  List<BlobStoreBulkOperationResult> result=new ArrayList<BlobStoreBulkOperationResult>(operations.size());
  for (  BlobStoreBulkOperationRequest request : operations) {
    if (request.getOpType() == BlobStoreBulkOperationType.ADD) {
      try {
        result.add(new BlobStoreAddBulkOperationResult(request.getId(),add(request.getId(),request.getData(),objectType)));
      }
 catch (      Exception ex) {
        result.add(new BlobStoreAddBulkOperationResult(request.getId(),ex));
      }
    }
 else     if (request.getOpType() == BlobStoreBulkOperationType.REMOVE) {
      try {
        remove(request.getId(),request.getPosition(),objectType);
        result.add(new BlobStoreRemoveBulkOperationResult(request.getId()));
      }
 catch (      Exception ex) {
        result.add(new BlobStoreRemoveBulkOperationResult(request.getId(),ex));
      }
    }
 else     if (request.getOpType() == BlobStoreBulkOperationType.REPLACE) {
      try {
        result.add(new BlobStoreReplaceBulkOperationResult(request.getId(),replace(request.getId(),request.getData(),request.getPosition(),objectType)));
      }
 catch (      Exception ex) {
        result.add(new BlobStoreReplaceBulkOperationResult(request.getId(),ex));
      }
    }
 else     if (request.getOpType() == BlobStoreBulkOperationType.GET) {
      try {
        result.add(new BlobStoreGetBulkOperationResult(request.getId(),get(request.getId(),request.getPosition(),objectType),request.getPosition()));
      }
 catch (      Exception ex) {
        result.add(new BlobStoreGetBulkOperationResult(request.getId(),ex));
      }
    }
  }
  return result;
}

public List < BlobStoreBulkOperationResult > executeBulk ( List < BlobStoreBulkOperationRequest > operations , BlobStoreObjectType objectType , boolean transactional ) { List < BlobStoreBulkOperationResult > result = new ArrayList < BlobStoreBulkOperationResult > ( operations . size ( ) ) ; for ( BlobStoreBulkOperationRequest request : operations ) { if ( request . getOpType ( ) == BlobStoreBulkOperationType . ADD ) { try { result . add ( new BlobStoreAddBulkOperationResult ( request . getId ( ) , add ( request . getId ( ) , request . getData ( ) , objectType ) ) ) ; } catch ( Exception ex ) { result . add ( new BlobStoreAddBulkOperationResult ( request . getId ( ) , ex ) ) ; } } else if ( request . getOpType ( ) == BlobStoreBulkOperationType . REMOVE ) { try { remove ( request . getId ( ) , request . getPosition ( ) , objectType ) ; result . add ( new BlobStoreRemoveBulkOperationResult ( request . getId ( ) ) ) ; } catch ( Exception ex ) { result . add ( new BlobStoreRemoveBulkOperationResult ( request . getId ( ) , ex ) ) ; } } else if ( request . getOpType ( ) == BlobStoreBulkOperationType . REPLACE ) { try { result . add ( new BlobStoreReplaceBulkOperationResult ( request . getId ( ) , replace ( request . getId ( ) , request . getData ( ) , request . getPosition ( ) , objectType ) ) ) ; } catch ( Exception ex ) { result . add ( new BlobStoreReplaceBulkOperationResult ( request . getId ( ) , ex ) ) ; } } else if ( request . getOpType ( ) == BlobStoreBulkOperationType . GET ) { try { result . add ( new BlobStoreGetBulkOperationResult ( request . getId ( ) , get ( request . getId ( ) , request . getPosition ( ) , objectType ) , request . getPosition ( ) ) ) ; } catch ( Exception ex ) { result . add ( new BlobStoreGetBulkOperationResult ( request . getId ( ) , ex ) ) ; } } } return result ; }
. execute a bulk of operations on the blobstore . return a corresoping list of results note - a non - abstract method , if not implemented the individual operations will be executed one by one
