Examples of save()


Examples of edu.stanford.smi.protege.model.Project.save()

       
        // check completeness
        if (currentProject.hasCompleteSources()) {
          ArrayList errors = new ArrayList();
            currentProject.setIsReadonly(false);
            currentProject.save(errors);
            if(!errors.isEmpty())
              throw new IOntologyException("problem saving "+getURI(),getException(errors));      
        }
       
        // save included projects
View Full Code Here

Examples of edu.uci.ics.jung.io.GraphMLFile.save()

    for (Iterator edges = g.getEdges().iterator(); edges.hasNext();) {
      Edge e = (Edge) edges.next();
      e.removeUserDatum(SERVICE_LIST);
    }

    writer.save(g, System.getProperty("user.home")
        + File.separator
        + "convertGraph.xml");
  }
}
View Full Code Here

Examples of edu.wpi.cs.wpisuitetng.database.Data.save()

  @Test
  public void testDBSession() throws WPISuiteException
  {
    Data db = DataStore.getDataStore();
    User[] arr = new User[1];
    db.save(new User("andrew", "ahurle", "p", 0));
    User me = db.retrieve(User.class, "username", "ahurle").toArray(arr)[0];
    User me2 = db.retrieve(User.class, "username", "ahurle").toArray(arr)[0];
    db.delete(me);
    System.out.println("equal: " + (me == me2));
    assertEquals(me, me2);
View Full Code Here

Examples of edu.wpi.cs.wpisuitetng.database.DataStore.save()

   
    // add the test user to the database
    DataStore db = DataStore.getDataStore();
    String hashedPassword = new Sha256Password().generateHash("jayms");
    this.u = new User("Tyler", "twack", hashedPassword, 5);
    db.save(this.u);
  }
 
  @After
  /**
   * Ensure the Sessions are cleared after each Test.
View Full Code Here

Examples of engine.parameters.AbstractParam.save()

  public static void saveChannel(Writer w, Channel c) throws IOException {
    w.write(c.getClass().getName() + "\n");
    for (int i = 0; i < c.m_LocalParameters.size(); i++) {
      AbstractParam param = c.m_LocalParameters.get(i);
      w.write(param.getName().replace(' ', '_') + " ");
      param.save(w);
    }
    w.write("endparameters\n");
  }

  public static Channel loadChannel(Scanner s) {
View Full Code Here

Examples of entity.ImageItem.save()

      String line = null;
      String[] itemData = null;
      while ((line = br.readLine()) != null) {
        itemData = line.split(",");
        ImageItem anItem = new ImageItem(itemData[0],itemData[1]);
        anItem.save();
        }     
    } catch (FileNotFoundException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    } catch (IOException e) {
View Full Code Here

Examples of es.iiia.shapegrammar.model.ShapeGrammarModel.save()

    if (modelBounds.getMinY() < 0) {
      wholeModel.translate(0, -modelBounds.getMinY());
    }
   
    grammar.setCurrentFileName(fileName);
    grammar.save();
  }

 
  private boolean CheckStartShape() {
    if (ShapeGrammarModel.ACTIVE_SHAPE_GRAMMAR.getStartShape() == null) {
View Full Code Here

Examples of es.ipsa.atril.doc.user.Document.save()

    for (Document d : getDocument().children())
      if (d.type().name().equals("IncomingDeposits"))
        return d.id();
    Dms oDms = oSes.getDms();
    Document oDoc = oDms.newDocument(oDms.getDocumentType("IncomingDeposits"), getDocument());
    oDoc.save("");
    oSes.commit();
    return oDoc.id();
  }
 
  public BillNotes billnotes(AtrilSession oSes) {
View Full Code Here

Examples of es.ipsa.atril.doc.user.DocumentType.save()

        } catch (InstantiationException e) {
        oChildType.setItem(false);
      } catch (IllegalAccessException e) {
        oChildType.setItem(false);
      }
        oChildType.save();
      }
      oParentType = oChildType;
    }
  }
View Full Code Here

Examples of es.ipsa.atril.doc.volumes.Volume.save()

    if (getVolume(oSes)==null) {
      Log.out.debug("Getting default volume");
      Volume oVol = DAO.defaultVolume(oSes.getDms().getVolumeManager());
      if (oVol==null) throw new DmsException("No default volume is set");
      oVol.addDocument(getDocument());
      oVol.save();
      Log.out.debug("Added Ticket "+getDocument().id()+" to Volume "+oVol.name());
    }
  }

  public void save(AtrilSession oSes, String sUserUuid, boolean bProcess, boolean bHasMistakes)
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.