Examples of begin()


Examples of org.apache.jetspeed.components.persistence.store.Transaction.begin()

    protected void prepareTransaction( PersistenceStore store )
    {
        Transaction tx = store.getTransaction();
        if (!tx.isOpen())
        {
            tx.begin();
        }
    }

    protected PersistenceStore getPersistenceStore()
    {
View Full Code Here

Examples of org.apache.juddi.util.jdbc.Transaction.begin()

    if (connection != null)
    {
      try
      {
        // begin a new transaction
        txn.begin(connection);

        FindTModelByNameQuery.select(name,keysIn,null,connection);
        FindTModelByNameQuery.select(name,null,null,connection);

        // commit the transaction
View Full Code Here

Examples of org.apache.log4j.joran.action.Action.begin()

      Action action = (Action) i.next();

      // now let us invoke the action. We catch and report any eventual
      // exceptions
      try {
        action.begin(ec, tagName, atts);
      } catch( ActionException ae) {
        switch(ae.getSkipCode()) {
        case ActionException.SKIP_CHILDREN:
          skip = (Pattern) pattern.clone();
          break;
View Full Code Here

Examples of org.apache.marmotta.ldcache.api.LDCachingConnection.begin()

        Date now = new Date();

        try {
            LDCachingConnection con = backend.getCacheConnection(resource.stringValue());
            try {
                con.begin();

                CacheEntry entry = con.getCacheEntry(resource);
                if(entry.getExpiryDate().getTime() > now.getTime()) {
                    entry.setExpiryDate(now);
View Full Code Here

Examples of org.apache.marmotta.ldcache.backend.kiwi.sail.LDCachingKiWiSailConnection.begin()

     */
    @Override
    public CloseableIteration<CacheEntry, RepositoryException> listExpiredEntries()  throws RepositoryException {
        try {
            final LDCachingKiWiSailConnection sailConnection = sail.getConnection();
            sailConnection.begin();

            return new ExceptionConvertingIteration<CacheEntry, RepositoryException>(sailConnection.listExpired()) {
                @Override
                protected RepositoryException convert(Exception e) {
                    return new RepositoryException(e);
View Full Code Here

Examples of org.apache.niolex.commons.test.StopWatch.begin()

            s.stop();
        }
        w.done();
        w.print();
        // --
        w.begin(true);
        for (int i = 0; i < 1000; ++i) {
            TIntCharMap primary = new TIntCharHashMap();
            Stop s = w.start();
            for (int j = 0; j < 10000; ++j) {
                primary.put(j, (char)((j % 2) + '0'));
View Full Code Here

Examples of org.apache.ode.store.ConfStoreConnection.begin()

        hsqlds.getConnection().createStatement().execute("SHUTDOWN");
    }

    public void testEmpty() {
        ConfStoreConnection conn = cf.getConnection();
        conn.begin();
        assertEquals(0, conn.getDeploymentUnits().size());
        assertNull(conn.getDeploymentUnit("foobar"));
        conn.commit();
        conn.close();
    }
View Full Code Here

Examples of org.apache.ojb.odmg.TransactionExt.begin()

    public static void persistChanges(Product product)
    {
        Implementation impl = OJB.getInstance();
        TransactionExt tx  = (TransactionExt)impl.newTransaction();

        tx.begin();
        tx.markDirty(product);
        tx.commit();
    }

    /**
 
View Full Code Here

Examples of org.apache.ojb.otm.core.Transaction.begin()

        try
        {
            conn = kit.acquireConnection(PersistenceBrokerFactory.getDefaultKey());
            tx   = kit.getTransaction(conn);

            tx.begin();

            conn.makePersistent(product);

            tx.commit();
        }
View Full Code Here

Examples of org.apache.openjpa.kernel.Broker.begin()

        }
    }

    protected Object persist(Object ob) {
        Broker broker = getBrokerFactory().newBroker();
        broker.begin();
        broker.persist(ob, null);
        Object id = broker.getObjectId(ob);
        broker.commit();
        broker.close();
        return id;
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.