Examples of save()


Examples of org.apache.sling.jcr.resource.JcrModifiablePropertyMap.save()

        final Map<String, Object> currentlyStored = this.initialSet();
        currentlyStored.put("something", "Another value");
        currentlyStored.put("string", "overwrite");
        assertContains(pvm, currentlyStored);

        pvm.save();
        assertContains(pvm, currentlyStored);

        final PersistableValueMap pvm2 = new JcrModifiablePropertyMap(this.rootNode);
        assertContains(pvm2, currentlyStored);
    }
View Full Code Here

Examples of org.apache.soap.transport.TransportMessage.save()

                        System.out.println("Message contained '" + body + "'");

                    TransportMessage tmsg =
                        new TransportMessage(body, new SOAPContext(), new Hashtable());
                    setOutGoingHeaders(msg, tmsg);
                    tmsg.save();

                    TransportMessage response = HTTPUtils.post(getServiceURL(msg), tmsg, 30000, null, 0);
                    payload = IOUtils.getStringFromReader(response.getEnvelopeReader());
                    if (verbose)
                        System.out.println("HTTP RESPONSE IS: '" + payload + "'");
View Full Code Here

Examples of org.apache.struts.apps.mailreader.dao.UserDatabase.save()

        final String LOG_DATABASE_SAVE_ERROR =
                " Unexpected error when saving User: ";

        try {
            UserDatabase database = doGetUserDatabase();
            database.save();
        } catch (Exception e) {
            String message = LOG_DATABASE_SAVE_ERROR + user.getUsername();
            log.error(message, e);
            throw new ServletException(message, e);
        }
View Full Code Here

Examples of org.apache.tez.dag.utils.Graph.save()

    try {
      LOG.info("Generating DAG graphviz file"
          + ", dagId=" + dagId.toString()
          + ", filePath=" + outputFile);
      graph.save(outputFile);
    } catch (Exception e) {
      LOG.warn("Error occurred when trying to save graph structure"
          + " for dag " + dagId.toString(), e);
    }
  }
View Full Code Here

Examples of org.apache.tools.ant.types.selectors.modifiedselector.PropertiesfileCache.save()

        PropertiesfileCache cache = new PropertiesfileCache();
        cache.setCachefile(cachefile);

        cache.put("key", "value");
        cache.save();

        assertTrue("Cachefile not created.", cachefile.exists());

        cache.delete();
        assertFalse("Cachefile not deleted.", cachefile.exists());
View Full Code Here

Examples of org.apache.torque.ForeignKeySchemaData.save()

    public void testSetAndSaveModifiedReferencedObject() throws Exception
    {
        ForeignKeySchemaData.clearTablesInDatabase();
        ForeignKeySchemaData testData
                = ForeignKeySchemaData.getDefaultTestData();
        testData.save();

        OIntegerPk oIntegerPk = testData.getOIntegerPkList().get(2);
        oIntegerPk.setName("modified");
        List<NullableOIntegerFk> fkList = new ArrayList<NullableOIntegerFk>();
        fkList.add(testData.getNullableOIntegerFkList().get(1));
View Full Code Here

Examples of org.apache.torque.PkSchemaData.save()

     */
    public void testDeleteByObjectWithoutPk() throws Exception
    {
        PkSchemaData.clearTablesInDatabase();
        PkSchemaData testData = PkSchemaData.getDefaultTestData();
        testData.save();

        Nopk toDelete = testData.getNopkList().get(1);

        // check that isDeleted() is false before deletion
        assertFalse(toDelete.isDeleted());
View Full Code Here

Examples of org.apache.torque.test.A.save()

        criteria.add(APeer.A_ID, (Long) null, Criteria.NOT_EQUAL);
        APeer.doDelete(criteria);

        A a = new A();
        a.setName("has Single ' Quote");
        a.save();
    }


    /**
     * check that blob cloumns can be read and written correctly
View Full Code Here

Examples of org.apache.torque.test.Author.save()

        // insert books and authors
        for (int i = 1; i <= 10; i++)
        {
            Author author = new Author();
            author.setName("Author " + i);
            author.save();
            assertTrue("authorId should not be 0 after insert",
                    author.getAuthorId() != 0);

            for (int j = 1; j <= 10; j++)
            {
View Full Code Here

Examples of org.apache.torque.test.BitTest.save()

        // insert Data
        BitTest bitTest = new BitTest();
        bitTest.setId("t1");
        bitTest.setBitValue(true);
        bitTest.save();
        bitTest = new BitTest();
        bitTest.setId("f1");
        bitTest.setBitValue(false);
        bitTest.save();
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.