Examples of commit()


Examples of org.apache.maven.archiva.transaction.FileTransaction.commit()

        if ( !dryrun )
        {
            try
            {
                transaction.commit();
            }
            catch ( TransactionException e )
            {
                throw new ArtifactConversionException( Messages.getString( "transaction.failure", e.getMessage() ), e ); //$NON-NLS-1$
            }

Examples of org.apache.maven.index.context.IndexingContext.commit()

                                nexusIndexer.deleteArtifactFromIndex( ac, context );
                                nexusIndexer.addArtifactToIndex( ac, context );
                            }

                            context.updateTimestamp();
                            context.commit();


                        }
                        else
                        {

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

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

    public void testCreateDU() {
        ConfStoreConnection conn = cf.getConnection();

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

        Implementation impl = OJB.getInstance();
        TransactionExt tx  = (TransactionExt)impl.newTransaction();

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

    /**
     * The main entry point for this sample application.
     *
 

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

            tx.begin();

            conn.makePersistent(product);

            tx.commit();
        }
        catch (LockingException ex)
        {
            if (tx.isInProgress())
            {

Examples of org.apache.ojb.otm.states.State.commit()

                    }
                    else if (state.needsDelete())
                    {
                        _pb.delete(entry.cacheObject);
                    }
                    entry.state = state.commit();
                }
                connMan.executeBatch();
            }
            finally
            {

Examples of org.apache.openejb.core.transaction.TransactionPolicy.commit()

                instanceManager.discardInstance(callContext, bean);
                throw e;
            } finally {
                callContext.setCurrentOperation(orginalOperation);
                callContext.setCurrentAllowedStates(originalAllowedStates);
                txPolicy.commit();
            }

        }
    }

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

    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;
    }

    protected Properties getProperties() {

Examples of org.apache.openjpa.kernel.StoreManager.commit()

                for(Exception e : errors) {
                    // TODO add error handling.
                    e.printStackTrace();
                }
            }
            storeManager.commit();
            storeManager.releaseConnection();
        }
        return errors;
    }

Examples of org.apache.openjpa.persistence.OpenJPAEntityManager.commit()

            h4.setStringField("h4");
            pc.getHelpers().put("h4", h4);
            assertTrue(pc.getHelpers().containsKey("h4"));
            assertEquals(h4, pc.getHelpers().get("h4"));
            assertEquals(3, pc.getHelpers().size());
            pm.commit();
            assertEquals(3, pc.getHelpers().size());
            assertFalse(pc.getHelpers().containsKey("h1"));
            assertNull(pc.getHelpers().get("h1"));
            assertEquals("h2", ((HelperPC) pc.getHelpers().get("h2")).
                    getStringField());
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.