Examples of commitAndDiscard()


Examples of org.conserve.connection.ConnectionWrapper.commitAndDiscard()

  {
    ConnectionWrapper cw = getConnectionWrapper();
    try
    {
      persist.getTableManager().renameColumns(klass, cw);
      cw.commitAndDiscard();
    }
    catch (Exception e)
    {
      // cancel the operation
      cw.rollbackAndDiscard();
View Full Code Here

Examples of org.conserve.connection.ConnectionWrapper.commitAndDiscard()

      throw new SQLException(e);
    }
    finally
    {
      sourceCw.commitAndDiscard();
      targetCw.commitAndDiscard();
    }
  }

  /**
   * Copy the external protection entry for currentObject from source to
View Full Code Here

Examples of org.conserve.connection.ConnectionWrapper.commitAndDiscard()

    {
      SimplestObject so = new SimplestObject();
      so.setFoo((double) x);
      persist.saveObject(cw, so);
    }
    cw.commitAndDiscard();
    // make sure the right number of objects are returned
    long count = persist.getCount(new SimplestObject());
    assertEquals(200L, count);
    // select half of the objects
    SimplestObject selectObject = new SimplestObject();
View Full Code Here

Examples of org.conserve.connection.ConnectionWrapper.commitAndDiscard()

    {
      SimplestObject so = new SimplestObject();
      so.setFoo((double) x);
      persist.saveObject(cw, so);
    }
    cw.commitAndDiscard();
    // make sure all entries have been added
    List<SimplestObject> list = persist.getObjectsMatching(new SimplestObject());
    assertEquals(200, list.size());
    // select using sorting
    SimplestObject orderObject = new SimplestObject();
View Full Code Here

Examples of org.conserve.connection.ConnectionWrapper.commitAndDiscard()

      so.setFoo((double) x);
      ComplexObject co = new ComplexObject();
      co.setSimplestObject(so);
      persist.saveObject(cw, co);
    }
    cw.commitAndDiscard();
    // make sure all entries have been added
    List<ComplexObject> list = persist.getObjectsMatching(new ComplexObject());
    assertEquals(200, list.size());
    // select using sorting
    SimplestObject simpleObject = new SimplestObject();
View Full Code Here

Examples of org.conserve.connection.ConnectionWrapper.commitAndDiscard()

    {
      SimplestObject so = new SimplestObject();
      so.setFoo((double) x);
      persist.saveObject(cw, so);
    }
    cw.commitAndDiscard();
    // make sure all entries have been added
    List<SimplestObject> list = persist.getObjectsMatching(new SimplestObject());
    assertEquals(200, list.size());
    // select using sorting
    SimplestObject orderObject = new SimplestObject();
View Full Code Here

Examples of org.conserve.connection.ConnectionWrapper.commitAndDiscard()

    {
      SimplestObject so = new SimplestObject();
      so.setFoo((double) x);
      persist.saveObject(cw, so);
    }
    cw.commitAndDiscard();
    persist.close();
    persist = new PersistenceManager(driver, database, login, password);
    // construct a query that returns the objects with where foo is 3,66 and
    // 99
    SimplestObject different = new SimplestObject(100.0);
View Full Code Here

Examples of org.conserve.connection.ConnectionWrapper.commitAndDiscard()

        }
      }

      // commit, return connection to pool
      cw.commitAndDiscard();
    }
    catch (SQLException e)
    {
      cw.rollbackAndDiscard();
      throw 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.