Examples of save()


Examples of com.caucho.server.session.SessionImpl.save()

  void saveSession()
  {
    SessionImpl session = _session;
    if (session != null)
      session.save();
  }

  //
  // security
  //
View Full Code Here

Examples of com.cburch.logisim.file.Loader.save()

 
  private static boolean doSave(Project proj, File f) {
    Loader loader = proj.getLogisimFile().getLoader();
    Tool oldTool = proj.getTool();
    proj.setTool(null);
    boolean ret = loader.save(proj.getLogisimFile(), f);
    if (ret) {
      AppPreferences.updateRecentFile(f);
      proj.setFileAsClean();
    }
    proj.setTool(oldTool);
View Full Code Here

Examples of com.charitas.dao.ProductDAO.save()

            prod1.setCategory(cat1);
            prod1.setDescription("tes prod");
            prod1.setExpiredDate(cal.getTime());
            prod1.setName("permen");
            prod1.setPrice(7500);
            productDAO.save(prod1);
                   
            Product product = new Product();
            List<Product> allData = productDAO.findAll();
           
            for(int i = 0; i < allData.size(); i++ ){
View Full Code Here

Examples of com.charitas.dao.impl.ProductDAOImpl.save()

            prod1.setCategory(cat1);
            prod1.setDescription("tes prod");
            prod1.setExpiredDate(cal.getTime());
            prod1.setName("permen");
            prod1.setPrice(7500);
            productDAO.save(prod1);
                   
            Product product = new Product();
            List<Product> allData = productDAO.findAll();
           
            for(int i = 0; i < allData.size(); i++ ){
View Full Code Here

Examples of com.cloud.bridge.persist.dao.MHostDao.save()

    if(mhost == null) {
      mhost = new MHost();
      mhost.setHostKey(hostKey);
      mhost.setHost(host);
      mhost.setLastHeartbeatTime(DateHelper.currentGMTTime());
      mhostDao.save(mhost);
    } else {
      mhost.setHost(host);
      mhostDao.update(mhost);
    }
  }
View Full Code Here

Examples of com.cloud.bridge.persist.dao.SAclDao.save()

        S3AccessControlList acl = request.getAcl();
       
        if ( null != cannedAccessPolicy )
           setCannedAccessControls( cannedAccessPolicy, "SBucket", sbucket.getId(), sbucket );
        else if (null != acl)
           aclDao.save"SBucket", sbucket.getId(), acl );
        else setSingleAcl( "SBucket", sbucket.getId(), SAcl.PERMISSION_FULL );
     
        // explicitly commit the transaction
        PersistContext.commitTransaction();
        success = true;       
View Full Code Here

Examples of com.cloud.bridge.persist.dao.SBucketDao.save()

        sbucket.setName(request.getBucketName());
        sbucket.setCreateTime(DateHelper.currentGMTTime());
        sbucket.setOwnerCanonicalId( UserContext.current().getCanonicalUserId());
        sbucket.setShost(shostTuple.getFirst());
        shostTuple.getFirst().getBuckets().add(sbucket);
        bucketDao.save(sbucket);

        S3AccessControlList acl = request.getAcl();
       
        if ( null != cannedAccessPolicy )
           setCannedAccessControls( cannedAccessPolicy, "SBucket", sbucket.getId(), sbucket );
View Full Code Here

Examples of com.cloud.bridge.persist.dao.SMetaDao.save()

    if (dotPos >= 0) suffix = nameKey.substring(dotPos);
    if ( suffix != null )
       item.setStoredPath(String.valueOf(item.getId()) + suffix);
    else item.setStoredPath(String.valueOf(item.getId()));
   
    metaDao.save("SObjectItem", item.getId(), meta);
   
   
    // [D] Are we setting an ACL along with the object
    //  -> the ACL is ALWAYS set on a particular instance of the object (i.e., a version)
    if ( null != cannedAccessPolicy )
View Full Code Here

Examples of com.cloud.storage.template.TemplateLocation.save()

                    tmplName);

            TemplateLocation loc = new TemplateLocation(_storage, templatePath);
            loc.create(1, true, tmplName);
            loc.addFormat(info);
            loc.save();

            return new CreatePrivateTemplateAnswer(cmd, true, "", tmplPath,
                    info.virtualSize, info.size, tmplName, info.format);
        } catch (ConfigurationException e) {
            return new CreatePrivateTemplateAnswer(cmd, false, e.getMessage());
View Full Code Here

Examples of com.dbxml.db.admin.AdminConfig.save()

         case ACTION_DETACH:
            try {
               AdminConfig cfg = Admin.getInstance().getAdminConfig();
               cfg.removeDriverConfig(label);
               cfg.save();
               return REMOVE_SELF;
            }
            catch ( Exception e ) {
               Admin.getInstance().addMessage(e.getMessage());
            }
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.