Examples of save()


Examples of org.graylog2.restclient.models.accounts.LdapSettings.save()

            return badRequest(views.html.system.ldap.index.render(currentUser(), breadcrumbs(), form));
        }
        final LdapSettingsRequest formValue = form.get();
        try {
            final LdapSettings settings = ldapSettingsService.create(formValue);
            if (settings.save()) {
                flash("success", "LDAP settings updated");
            } else {
                flash("error", "Unable to update LDAP settings!");
            }
        } catch (RuntimeException e) {
View Full Code Here

Examples of org.growersnation.site.service.mongo.DefaultSoilDataService.save()

    SoilDataRepository soilDataRepository = new MongoSoilDataRepository(db);
    DefaultSoilDataService soilDataService = new DefaultSoilDataService(soilDataRepository);
    SoilDataReadService soilDataReadService = new MongoSoilDataReadService(db);

    SoilData soilData = SoilDataFaker.createValidSoilData();
    String objectId = soilDataService.save(soilData);

    // When
    long count = soilDataReadService.getNewestSoilDataCount();

    // Then
View Full Code Here

Examples of org.gudy.azureus2.core3.download.DownloadManagerState.save()

      state.setMapAttribute( DownloadManagerState.AT_FILE_DOWNLOADED, details );

      if ( persist ){
       
        state.save();
      }
  }

  public void
  saveState()
View Full Code Here

Examples of org.gudy.azureus2.plugins.PluginConfig.save()

        modBlockButton.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event e) {
                try {
                    PluginConfig config = Plugin.getPluginInterface().getPluginconfig();
                    config.setPluginParameter("Stuffer_Block_Mods",modBlockButton.getSelection());
                    config.save();

                } catch (PluginException e1) {
                    e1.printStackTrace();
                }
            }
View Full Code Here

Examples of org.guvnor.common.services.project.service.POMService.save()

        throw new IllegalArgumentException("Unable to find project " + projectUri);
      }
     
      POM pom = pomService.load(project.getPomXMLPath());
      pom.getGav().setVersion(version);
      pomService.save(project.getPomXMLPath(), pom, null, "Update project version during release");
      executionResults.setData("GAV", pom.getGav().toString());
    }

    return executionResults;
  }
View Full Code Here

Examples of org.hibernate.Session.save()

      beginTransaction();
      if(journal.getStatus()==DiaryBean.STATUS_NORMAL){
        journal.getCatalog().incArticleCount(1);
        journal.getOwner().getCount().incArticleCount(1);
      }
      ssn.save(journal)
      if(journal.getCatalog().getType()==CatalogBean.TYPE_GENERAL){
        //ֻ�й��������е��ռDzſ������ñ�ǩ
        List tags = journal.getKeywords();
        if(tags!=null && tags.size()>0){
          int tag_count = 0;
View Full Code Here

Examples of org.hibernate.classic.Session.save()

    estado.setDescripcion(descripcionEstado);
    estado.setTipoItem(savedTipoItem);
   
    Session session = HibernateUtil.getSessionFactory().getCurrentSession();
    session.beginTransaction();
    session.save(estado);
    session.getTransaction().commit()
  }

  public void eliminarEstadoTipoItem(Estado savedEstado, TipoItem savedTipoItem){
 
View Full Code Here

Examples of org.hibernate.search.FullTextSession.save()

    FullTextSession s = Search.getFullTextSession( openSession() );

    Transaction tx = s.beginTransaction();
    Person person = new Person();
    person.setName( "Jon Doe" );
    s.save( person );
    tx.commit();

    tx = s.beginTransaction();
    QueryParser parser = new QueryParser( "name", new StandardAnalyzer() );
    Query query = parser.parse( "name:foo" );
View Full Code Here

Examples of org.hsqldb.persist.HsqlDatabaseProperties.save()

                        session.database.getProperties();

                    p.setDatabaseProperty(property,
                                          value.toString().toLowerCase());
                    p.setDatabaseVariables();
                    p.save();

                    return Result.updateZeroResult;
                } catch (HsqlException e) {
                    return Result.newErrorResult(e, sql);
                }
View Full Code Here

Examples of org.hsqldb.persist.HsqlProperties.save()

                sStatement.execute("SET WRITE_DELAY " + writeDelay);
                sStatement.execute("SHUTDOWN");
                cConnection.close();
                props.load();
                props.setProperty("hsqldb.cache_scale", "" + cacheScale);
                props.save();

                cConnection = dataSource.getConnection(user, password);
                sStatement  = cConnection.createStatement();
            }
        } catch (Exception e) {
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.