Examples of store()


Examples of org.objectstyle.woenvironment.plist.ToHellWithProperties.store()

    }

    File file = getBuildPropertiesFile();
    FileOutputStream fos = new FileOutputStream(file);
    try {
      properties.store(fos, null);
    }
    finally {
      fos.close();
    }
View Full Code Here

Examples of org.ofbiz.base.util.collections.FlexibleProperties.store()

        }

        try {
            properties.setProperty(name, value);
            FileOutputStream propFile = new FileOutputStream(resource);
            properties.store(propFile,            
            "##############################################################################\n"
            +"# Licensed to the Apache Software Foundation (ASF) under one                   \n"
            +"# or more contributor license agreements.  See the NOTICE file                 \n"
            +"# distributed with this work for additional information                        \n"
            +"# regarding copyright ownership.  The ASF licenses this file                   \n"
View Full Code Here

Examples of org.ofbiz.entity.Delegator.store()

        // clear the info and store it
        creditCard.set("cardNumber", "0000000000000000"); // set so it doesn't blow up in UIs
        creditCard.set("expireDate", "01/1970"); // same here
        try {
            delegator.store(creditCard);
        } catch (GenericEntityException e) {
            Debug.logError(e, module);
            return ServiceUtil.returnError(e.getMessage());
        }
View Full Code Here

Examples of org.ofbiz.entity.GenericDelegator.store()

                        rtSeg.set("actualStartDate", pkgInfo.get("shippedDate"));
                        rtSeg.set("billingWeight", pkgInfo.get("billingWeight"));
                        rtSeg.set("actualCost", pkgInfo.get("shippingTotal"));
                        rtSeg.set("trackingIdNumber", pkgInfo.get("trackingNumber"));
                        try {
                            delegator.store(rtSeg);
                        } catch (GenericEntityException e) {
                            Debug.logError(e, module);
                            return ServiceUtil.returnError(e.getMessage());
                        }
                    }
View Full Code Here

Examples of org.ofbiz.entity.GenericValue.store()

                                UtilMisc.toMap("orderId", genericResult.getString("orderId"),
                                        "shipGroupSeqId", genericResult.getString("shipGroupSeqId"),
                                        "orderItemSeqId", genericResult.getString("orderItemSeqId"),
                                        "inventoryItemId", genericResult.getString("inventoryItemId")));
                        orderItemShipGrpInvRes.set("promisedDatetime", currentDate);
                        orderItemShipGrpInvRes.store();
                        // TODO: set the reservation
                        break;
                    } else {
                        quantityNotAvailableRem = quantityNotAvailableRem.subtract(remainingQty);
                        remainingQty = BigDecimal.ZERO;
View Full Code Here

Examples of org.ofbiz.entity.datasource.GenericHelper.store()

            if (testMode) {
                updatedEntity = this.findOne(value.getEntityName(), value.getPrimaryKey(), false);
            }

            int retVal = helper.store(value);
            if (doCacheClear) {
                ecaRunner.evalRules(EntityEcaHandler.EV_CACHE_CLEAR, EntityEcaHandler.OP_STORE, value, false);
                this.clearCacheLine(value);
            }
View Full Code Here

Examples of org.olat.core.util.SortedProperties.store()

      // create necessary directories
      File directory = newPropertiesFile.getParentFile();
      if (!directory.exists()) directory.mkdirs();
      // write to file file now
      fileStream = new FileOutputStream(newPropertiesFile);
      newProperties.store(fileStream, null);
      fileStream.flush();
    } catch (FileNotFoundException e) {
      throw new OLATRuntimeException("Could not create new language file::" + newPropertiesFile.getAbsolutePath(), e);
    } catch (IOException e) {
      throw new OLATRuntimeException("Could not create new language file::" + newPropertiesFile.getAbsolutePath()
View Full Code Here

Examples of org.omnaest.i18nbinder.internal.XLSFile.store()

                                                                         this.useJavaStyleUnicodeEscaping );
       
        //
        File file = new File( this.xlsOutputDirectory, this.xlsFileName );
        xlsFile.setFile( file );
        xlsFile.store();
       
      }
      else
      {
        this.getLog().error( "No xls file name specified. Please provide a file name for the xls file which should be created." );
View Full Code Here

Examples of org.omnaest.utils.propertyfile.PropertyFile.store()

      //
      propertyFileName = tableRow.get( 0 ).replaceAll( Pattern.quote( "{locale}" ), "" );
      propertyFile = new PropertyFile( propertyFileName );
      propertyFile.load();
      propertyFile.getPropertyFileContent().getPropertyMap().remove( propertyKey );
      propertyFile.store();
     
      //
      propertyFileName = tableRow.get( 0 ).replaceAll( Pattern.quote( "{locale}" ), "de_DE" );
      propertyFile = new PropertyFile( propertyFileName );
      propertyFile.load();
View Full Code Here

Examples of org.openengsb.labs.paxexam.karaf.container.internal.KarafPropertiesFile.store()

        KarafPropertiesFile karafPropertiesFile = new KarafPropertiesFile(karafHome, Constants.FEATURES_CFG_LOCATION);
        karafPropertiesFile.load();
        String finalFilePath = ",file:" + featuresXmlFile.toString().replaceAll("\\\\", "/").replaceAll(" ", "%20");
        karafPropertiesFile.extend("featuresRepositories", finalFilePath);
        karafPropertiesFile.extend("featuresBoot", ",exam");
        karafPropertiesFile.store();
    }

    protected String getJunitVersion() {
        return getNamedVersion("junit.version");
    }
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.