Examples of DBAction


Examples of net.sf.myway.hibernate.DBAction

        r.setParent((Region) f);
    }
    final HibernateUtil con = HibernateActivator.getDefault().getConnection();
    monitor.worked(2);
    monitor.setTaskName(Messages.NewRegionWizard_SaveRegion);
    con.runTransaction(new DBAction() {
      @Override
      public void run(final Session session) {
        // FIXME can be right
        final Region er = new Region();
        session.persist(er);
View Full Code Here

Examples of net.sf.myway.hibernate.DBAction

   * @see net.sf.myway.map.da.MapDA#save(net.sf.myway.map.da.entities.MapObject)
   */
  @Override
  public void save(final MapObject... object) {
    final HibernateUtil con = getCon();
    con.runTransaction(new DBAction() {
      @Override
      public void run(final Session session) {
        for (final MapObject obj : object)
          if (obj.getId() == null)
            session.persist(obj);
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.