Examples of save()


Examples of org.spoutcraft.client.controls.SimpleKeyBindingManager.save()

    if (item != null && item instanceof KeyBindingItem) {
      binding = (KeyBindingItem) item;
    }
    if (sh != null) {
      man.unregisterShortcut(sh.getShortcut());
      man.save();
    } else if (binding != null) {
      man.unregisterControl(binding.getBinding());
      man.save();
      model.refresh();
    } else {
View Full Code Here

Examples of org.springframework.data.couchbase.core.CouchbaseTemplate.save()

  }

  private void populateTestData(final CouchbaseClient client) {
    CouchbaseTemplate template = new CouchbaseTemplate(client);
    for (int i = 0; i < 100; i++) {
      template.save(new User("testuser-" + i, "uname-" + i));
    }
  }

  private void createAndWaitForDesignDocs(final CouchbaseClient client) {
    DesignDocument designDoc = new DesignDocument("user");
View Full Code Here

Examples of org.springframework.data.gemfire.repository.sample.PersonRepository.save()

  @Test
  public void testRepositoryCreated() {
    PersonRepository repo = ctx.getBean(PersonRepository.class);
    Person dave = new Person(1L, "Dave", "Mathhews");
    repo.save(dave);
    Person saved = repo.findOne(1L);
    assertEquals("Dave", saved.getFirstname());
  }

  @AfterClass
View Full Code Here

Examples of org.springframework.data.neo4j.repositories.PersonRepository.save()

        startJavaBasedAppCtx();
        GraphDatabaseService graphDatabaseService = appCtx.getBean(GraphDatabaseService.class);
        PersonRepository personRepository = appCtx.getBean(PersonRepository.class);
        try (Transaction tx = graphDatabaseService.beginTx()) {
            Person person = new Person("Howdy",50);
            personRepository.save(person);
            assertNotNull(person.getId());
            tx.success();
        }
    }
View Full Code Here

Examples of org.springframework.data.neo4j.support.Neo4jTemplate.save()

            if (car != null) {
                delete = true;
                assertEquals(Volvo.class, car.getClass());
            } else {
                Transaction tx = template.getGraphDatabase().beginTx();
                Volvo volvo = template.save(new Volvo());
                assertEquals(1, volvo.id.intValue());
                tx.success();
                tx.close();
            }
        } catch (Exception e) {
View Full Code Here

Examples of org.springframework.orm.hibernate3.HibernateTemplate.save()

        return ht;
    }

    protected Serializable save(String entityName, Object obj) {
        HibernateTemplate ht = findHibernateTemplate();
        Serializable save = ht.save(entityName, obj);
        ht.flush();
        return save;
    }

    protected void saveOrUpdate(String entityName, Object obj) {
View Full Code Here

Examples of org.springframework.richclient.settings.Settings.save()

    parentElement.appendChild(childElement);

    TestableXmlSettingsReaderWriter readerWriter = new TestableXmlSettingsReaderWriter();
    RootXmlSettings parentSettings = new RootXmlSettings(doc, readerWriter);
    Settings childSettings = parentSettings.getSettings("child-settings");
    childSettings.save();

    assertEquals(parentSettings, readerWriter.lastWritten);
  }
   
    public void testChildSettings() throws ParserConfigurationException, FactoryConfigurationError, SAXException, IOException {
View Full Code Here

Examples of org.springframework.samples.mvc31.crudcontroller.AccountController.save()

    mgr.saveOrUpdate(account);
    replay(mgr);

    AccountController contrlr = new AccountController(mgr);
   
    String view = contrlr.save(account, result);
   
    assertEquals("redirect:accounts", view);
    verify(mgr);
}
View Full Code Here

Examples of org.springframework.xd.analytics.metrics.core.CounterRepository.save()

    String myCounterName = "myCounter";
    String yourCounterName = "yourCounter";

    // Create and save a Counter named 'myCounter'
    Counter c1 = new Counter(myCounterName);
    Counter myCounter = repo.save(c1);
    assertThat(myCounter.getName(), is(notNullValue()));
    // Create and save a Counter named 'yourCounter'
    Counter c2 = new Counter(yourCounterName);
    Counter yourCounter = repo.save(c2);
    assertThat(yourCounter.getName(), is(notNullValue()));
View Full Code Here

Examples of org.springframework.xd.analytics.metrics.core.GaugeRepository.save()

    String myGaugeName = "myGauge";
    String yourGaugeName = "yourGauge";

    // Create and save a Gauge named 'myGauge'
    Gauge g1 = new Gauge(myGaugeName);
    Gauge myGauge = repo.save(g1);
    assertThat(myGauge.getName(), is(notNullValue()));
    // Create and save a Gauge named 'yourGauge'
    Gauge g2 = new Gauge(yourGaugeName);
    Gauge yourGauge = repo.save(g2);
    assertThat(yourGauge.getName(), is(notNullValue()));
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.