Package org.springframework.jdbc.core.simple

Examples of org.springframework.jdbc.core.simple.SimpleJdbcInsert.execute()


          ltParams.addValue("plate_plateId", plate.getId())
                  .addValue("elementType", eType)
                  .addValue("elementPosition", pos)
                  .addValue("elementId", n.getId());

          eInsert.execute(ltParams);
          pos++;
        }
      }
    }   
View Full Code Here


      MapSqlParameterSource poParams = new MapSqlParameterSource();
      poParams.addValue("runQc_runQcId", runQC.getId())
              .addValue("containers_containerId", p.getSequencerPartitionContainer().getId())
              .addValue("partitionNumber", p.getPartitionNumber());
      try {
        pInsert.execute(poParams);
      }
      catch(DuplicateKeyException se) {
        //ignore
      }
    }
View Full Code Here

        MapSqlParameterSource esParams = new MapSqlParameterSource();
        esParams.addValue("elementId", d.getId())
            .addValue("pool_poolId", pool.getId())
            .addValue("elementType", d.getClass().getName());

        eInsert.execute(esParams);

        if (this.cascadeType != null) {
          if (this.cascadeType.equals(CascadeType.PERSIST)) {
            Store<? super Poolable> dao = daoLookup.lookup(d.getClass());
            if (dao != null) {
View Full Code Here

      for (Experiment e : pool.getExperiments()) {
        MapSqlParameterSource esParams = new MapSqlParameterSource();
        esParams.addValue("experiments_experimentId", e.getId())
            .addValue("pool_poolId", pool.getId());

        eInsert.execute(esParams);

        if (this.cascadeType != null) {
          if (this.cascadeType.equals(CascadeType.PERSIST)) {
            experimentDAO.save(e);
          }
View Full Code Here

      for (Group g : user.getGroups()) {
        MapSqlParameterSource ugParams = new MapSqlParameterSource();
        ugParams.addValue("users_userId", user.getUserId())
                .addValue("groups_groupId", g.getGroupId());

        eInsert.execute(ugParams);
      }
    }

    return user.getUserId();
  }
View Full Code Here

    MapSqlParameterSource poParams = new MapSqlParameterSource();
    poParams.addValue("overview_overviewId", overview.getOverviewId())
            .addValue("notes_noteId", noteId);

    try {
      pInsert.execute(poParams);
    }
    catch(DuplicateKeyException se) {
      //ignore
    }
    return note.getNoteId();
View Full Code Here

    MapSqlParameterSource poParams = new MapSqlParameterSource();
    poParams.addValue("kit_kitId", kit.getId())
            .addValue("notes_noteId", noteId);
    try {
      pInsert.execute(poParams);
    }
    catch(DuplicateKeyException se) {
      //ignore
    }
    return note.getNoteId();
View Full Code Here

    MapSqlParameterSource poParams = new MapSqlParameterSource();
    poParams.addValue("sample_sampleId", sample.getId())
            .addValue("notes_noteId", noteId);

    try {
      pInsert.execute(poParams);
    }
    catch(DuplicateKeyException se) {
      //ignore
    }
    return note.getNoteId();
View Full Code Here

    MapSqlParameterSource poParams = new MapSqlParameterSource();
    poParams.addValue("library_libraryId", library.getId())
            .addValue("notes_noteId", noteId);

    try {
      pInsert.execute(poParams);
    }
    catch(DuplicateKeyException se) {
      //ignore
    }
    return note.getNoteId();
View Full Code Here

    MapSqlParameterSource poParams = new MapSqlParameterSource();
    poParams.addValue("run_runId", run.getId())
            .addValue("notes_noteId", noteId);

    try {
      pInsert.execute(poParams);
    }
    catch(DuplicateKeyException se) {
      //ignore
    }
    return note.getNoteId();
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.