Examples of deleteObjects()


Examples of com.amazonaws.services.s3.AmazonS3.deleteObjects()

                    for (S3ObjectSummary summary : list.getObjectSummaries()) {
                        keys.add(new DeleteObjectsRequest.KeyVersion(summary.getKey()));
                        //Every 500 objects batch the delete request
                        if (keys.size() > 500) {
                            multiObjectDeleteRequest.setKeys(keys);
                            client.deleteObjects(multiObjectDeleteRequest);
                            multiObjectDeleteRequest = new DeleteObjectsRequest(list.getBucketName());
                            keys.clear();
                        }
                    }
                    if (list.isTruncated()) {
View Full Code Here

Examples of com.amazonaws.services.s3.AmazonS3.deleteObjects()

                        break;
                    }
                }
                if (!keys.isEmpty()) {
                    multiObjectDeleteRequest.setKeys(keys);
                    client.deleteObjects(multiObjectDeleteRequest);
                }
            } catch (Throwable ex) {
                logger.warn("Failed to delete S3 repository [{}] in [{}]", ex, bucketName, region);
            }
        }
View Full Code Here

Examples of com.amazonaws.services.s3.AmazonS3Client.deleteObjects()

                        deleteList.add(new DeleteObjectsRequest.KeyVersion(s3ObjSumm.getKey()));
                    }
                    if (deleteList.size() > 0) {
                        DeleteObjectsRequest delObjsReq = new DeleteObjectsRequest(bucket);
                        delObjsReq.setKeys(deleteList);
                        s3service.deleteObjects(delObjsReq);
                    }
                    if (!prevObjectListing.isTruncated()) break;
                    prevObjectListing = s3service.listNextBatchOfObjects(prevObjectListing);
                }
            }
View Full Code Here

Examples of com.amazonaws.services.s3.AmazonS3Client.deleteObjects()

            }
            if (deleteList.size() > 0) {
                DeleteObjectsRequest delObjsReq = new DeleteObjectsRequest(
                    bucketName);
                delObjsReq.setKeys(deleteList);
                DeleteObjectsResult dobjs = s3service.deleteObjects(delObjsReq);
                if (dobjs.getDeletedObjects().size() != deleteList.size()) {
                    throw new IOException(
                        "Incomplete delete object request. only  "
                            + dobjs.getDeletedObjects().size() + " out of "
                            + deleteList.size() + " are deleted");
View Full Code Here

Examples of com.centraview.account.helper.AccountHelperLocal.deleteObjects()

         try
         {
           InitialContext ic = CVUtility.getInitialContext();
           AccountHelperLocalHome home = (AccountHelperLocalHome ) ic.lookup("local/AccountHelper");
           helperL = home.create();
           delIds = helperL.deleteObjects(modulename, ids);
           logger.info("PaymentMethods " + delIds +" objects deleted");
         }catch(Exception e)
         {
           logger.debug("Error in deleting PaymentMethod : "+e);
           e.printStackTrace();
View Full Code Here

Examples of com.centraview.account.helper.AccountHelperLocal.deleteObjects()

         try
         {
           InitialContext ic = CVUtility.getInitialContext();
           AccountHelperLocalHome home = (AccountHelperLocalHome ) ic.lookup("local/AccountHelper");
           helperL = home.create();
           delIds = helperL.deleteObjects(modulename, ids);
           logger.info("GLAccount " + delIds +" objects deleted");
         }catch(Exception e)
         {
           logger.debug("Error in deleting GL Accounts : "+e);
           e.printStackTrace();
View Full Code Here

Examples of org.apache.cayenne.ObjectContext.deleteObjects()

        p.setPaintingTitle("X");
        a.addToPaintingArray(p);

        childContext.commitChangesToParent();

        childContext.deleteObjects(p);
        a.removeFromPaintingArray(p);

        childContext.commitChangesToParent();
    }
View Full Code Here

Examples of org.apache.cayenne.ObjectContext.deleteObjects()

        assertEquals(4, objects.size());

        // delete AND modify
        Artist childDeleted = (Artist) objects.get(2);
        childContext.deleteObjects(childDeleted);
        childDeleted.setArtistName("DDD");

        // don't block queries - on delete Cayenne may need to resolve delete rules via
        // fetch
        childContext.commitChangesToParent();
View Full Code Here

Examples of org.apache.cayenne.ObjectContext.deleteObjects()

        Artist childCommitted = (Artist) objects.get(1);

        // delete AND modify
        Artist childDeleted = (Artist) objects.get(2);
        childContext.deleteObjects(childDeleted);
        childDeleted.setArtistName("DDD");

        Artist childHollow = (Artist) objects.get(3);
        childContext.invalidateObjects(childHollow);
View Full Code Here

Examples of org.apache.cayenne.ObjectContext.deleteObjects()

        a.addToPaintingArray(p2);

        a.removeFromPaintingArray(p2);

        // this causes an error on commit
        child.deleteObjects(p2);

        child.commitChangesToParent();

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.