Examples of persist()


Examples of net.fortytwo.twitlogic.persistence.PersistenceContext.persist()

                        = new PersistenceContext(c);

                PlacePersistenceHelper ph = new PlacePersistenceHelper(pc, client, false);
                for (String id : ids) {
                    Place p = new Place(id);
                    Feature f = pc.persist(p);
                    ph.submit(p, f);
                    c.commit();
                }
            } finally {
                c.rollback();
View Full Code Here

Examples of net.lightbody.bmp.proxy.selenium.KeyStoreManager.persist()

          // see https://github.com/webmetrics/browsermob-proxy/issues/105
            String escapedHost = host.replace('*', '_');
           
            KeyStoreManager keyStoreManager = Utils.getKeyStoreManager(escapedHost);
            keyStoreManager.getKeyStore().deleteEntry(KeyStoreManager._caPrivKeyAlias);
            keyStoreManager.persist();
            listener.setKeystore(new File("seleniumSslSupport" + File.separator + escapedHost + File.separator + "cybervillainsCA.jks").getAbsolutePath());
           
            return keyStoreManager.getCertificateByAlias(escapedHost);
        } catch (Exception e) {
            throw new RuntimeException(e);
View Full Code Here

Examples of net.sf.myway.hibernate.HibernateUtil.persist()

          }
        }
        monitor.worked(2);
        monitor.setTaskName(Messages.NewRegionWizard_SaveRegion);
        final HibernateUtil con = HibernateActivator.getDefault().getConnection();
        con.persist(r);
      }
    });
  }

  /**
 
View Full Code Here

Examples of net.sf.nfp.mini.dao.PeriodDAO.persist()

        left -= line.length();
        for (int i = 0; i < fields.length; ++i)
          fields[i] = grabField(line);
        if (!fields[0].equals(currentPeriod)) {
          if (period != null)
            periodDAO.persist(period);
          period = new Period();
          currentPeriod = fields[0];
        }
        Observation observation = new Observation(
            parseCSVDate(fields[2]),
View Full Code Here

Examples of net.xoetrope.optional.data.pojo.XPersistentPojoModel.persist()

  public void persistSelectedPojo()
  {
    XPersistentPojoModel pm = getListSelectedModel();
    // persist the POJO stored in the underlying list
    if ( pm != null ) {
      pm.persist();
      // merge the POJO stored in the selection model node
      if ( selectionModel != null )
        selectionModel.merge();
    }
  }
View Full Code Here

Examples of opennlp.maxent.io.GISModelWriter.persist()

          model = null;
        }
       
        File outputFile = new File(modelFileName);
        GISModelWriter writer =  new SuffixSensitiveGISModelWriter(model, outputFile);
        writer.persist();
      } catch (Exception e) {
        System.out.print("Unable to create model due to exception: ");
        System.out.println(e);
        e.printStackTrace();
      }
View Full Code Here

Examples of opennlp.maxent.io.SuffixSensitiveGISModelWriter.persist()

          model = null;
        }
       
        File outputFile = new File(modelFileName);
        GISModelWriter writer =  new SuffixSensitiveGISModelWriter(model, outputFile);
        writer.persist();
      } catch (Exception e) {
        System.out.print("Unable to create model due to exception: ");
        System.out.println(e);
        e.printStackTrace();
      }
View Full Code Here

Examples of opennlp.model.AbstractModelWriter.persist()

      } else {
        throw new RuntimeException("Unknown model type: " + type);
      }

      writer.persist();


    } catch (Exception e) {
      System.out.print("Unable to create model due to exception: ");
      System.out.println(e);
View Full Code Here

Examples of opennlp.model.GenericModelWriter.persist()

      @Override
      public void write(int b) throws IOException {
        out.write(b);
      }
    }));
    modelWriter.persist();
  }

  /**
   * Checks if the expected outcomes are all contained as outcomes in the given model.
   *
 
View Full Code Here

Examples of opennlp.tools.ml.model.GenericModelWriter.persist()

      @Override
      public void write(int b) throws IOException {
        out.write(b);
      }
    }));
    modelWriter.persist();
  }

  /**
   * Checks if the expected outcomes are all contained as outcomes in the given model.
   *
 
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.