Examples of saveObject()


Examples of com.cloud.bridge.service.S3BucketAdapter.saveObject()

    String itemFileName = new String( uploadId + "-" + partNumber );
    InputStream is = null;

    try {
      is = request.getDataInputStream();
      String md5Checksum = bucketAdapter.saveObject(is, tupleBucketHost.getSecond(), ServiceProvider.getInstance().getMultipartDir(), itemFileName);
      response.setETag(md5Checksum)
     
          MultipartLoadDao uploadDao = new MultipartLoadDao();
          uploadDao.savePart( uploadId, partNumber, md5Checksum, itemFileName, (int)request.getContentLength());
          response.setResultCode(200);
View Full Code Here

Examples of com.cloud.bridge.service.S3BucketAdapter.saveObject()

    try {
      // explicit transaction control to avoid holding transaction during file-copy process
      PersistContext.commitTransaction();
     
      is = request.getDataInputStream();
      String md5Checksum = bucketAdapter.saveObject(is, tupleBucketHost.getSecond(), bucket.getName(), itemFileName);
      response.setETag(md5Checksum);
      response.setLastModified(DateHelper.toCalendar( tupleObjectItem.getSecond().getLastModifiedTime()));
          response.setVersion( tupleObjectItem.getSecond().getVersion());
   
      SObjectItemDao itemDao = new SObjectItemDao();
View Full Code Here

Examples of com.cloud.bridge.service.S3BucketAdapter.saveObject()

    try {
      // explicit transaction control to avoid holding transaction during file-copy process
      PersistContext.commitTransaction();
     
      is = request.getInputStream();
      String md5Checksum = bucketAdapter.saveObject(is, tupleBucketHost.getSecond(), bucket.getName(), itemFileName);
      response.setETag(md5Checksum);
      response.setLastModified(DateHelper.toCalendar( tupleObjectItem.getSecond().getLastModifiedTime()));
     
      SObjectItemDao itemDao = new SObjectItemDao();
      SObjectItem item = itemDao.get( tupleObjectItem.getSecond().getId());
View Full Code Here

Examples of de.mhus.lib.adb.DbManager.saveObject()

     
      // get a book and modify
     
      b = (Book) manager.getObject(Book.class, b1);
      b.setLendToId(p1);
      manager.saveObject(b);
     
      b.setLendToId(null);
      manager.saveObject(b);
     
      b.setLendToId(p2);
View Full Code Here

Examples of de.mhus.lib.adb.DbManager.saveObject()

      b = (Book) manager.getObject(Book.class, b1);
      b.setLendToId(p1);
      manager.saveObject(b);
     
      b.setLendToId(null);
      manager.saveObject(b);
     
      b.setLendToId(p2);
      b.setAuthorId(new UUID[] {p1});
      manager.saveObject(b);
View Full Code Here

Examples of de.mhus.lib.adb.DbManager.saveObject()

      b.setLendToId(null);
      manager.saveObject(b);
     
      b.setLendToId(p2);
      b.setAuthorId(new UUID[] {p1});
      manager.saveObject(b);

      Book copy = (Book) manager.getObject(Book.class, b.getId());
      assertEquals(copy.getAuthorId()[0],p1) ;

     
View Full Code Here

Examples of de.mhus.lib.adb.DbManager.saveObject()

      assertEquals(1,retRel.size());
      assertEquals(b.getId(), retRel.get(0).getId());

      retRel.add(manager.getObject(Book.class, b2));
     
      manager.saveObject(rel);
     
      rel.getLendTo().reset();
      retRel = rel.getLendTo().getRelations();
      assertNotNull(retRel);
      assertEquals(2,retRel.size());
View Full Code Here

Examples of de.mhus.lib.adb.DbManager.saveObject()

      assertEquals(2,retRel.size());
     
      b = manager.getObject(Book.class, b1);
      assertNotNull(b.getLendToId());
      b.getLendTo().setRelation(null);
      manager.saveObject(b);
      assertNull(b.getLendToId());
      b.getLendTo().setRelation(p);
      manager.saveObject(b);
      assertNotNull(b.getLendToId());
     
View Full Code Here

Examples of de.mhus.lib.adb.DbManager.saveObject()

      assertNotNull(b.getLendToId());
      b.getLendTo().setRelation(null);
      manager.saveObject(b);
      assertNull(b.getLendToId());
      b.getLendTo().setRelation(p);
      manager.saveObject(b);
      assertNotNull(b.getLendToId());
     
     
      // remove book
     
View Full Code Here

Examples of de.mhus.lib.adb.model.Table.saveObject()

    try {
      // prepare object
      schema.doPreSave(c,object,con,this);
     
      //save object
      c.saveObject(con,object);
    } catch (Throwable t) {
      throw new MException(registryName,t);
    }
   
    if (myCon != null) {
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.