Package org.apache.ojb.otm.transaction

Examples of org.apache.ojb.otm.transaction.TransactionFactory


    /**
     * Obtain an OTMConnection for the given persistence broker key
     */
    public OTMConnection acquireConnection(PBKey pbKey)
    {
        TransactionFactory txFactory = getTransactionFactory();
        return txFactory.acquireConnection(pbKey);
    }
View Full Code Here


     * Obtain the transaction which <code>conn</code> is currently
     * bound to.
     */
    public Transaction getTransaction(OTMConnection conn)
    {
        TransactionFactory txFactory = getTransactionFactory();
        Transaction tx = txFactory.getTransactionForConnection(conn);
        tx.setKit(this);
        return tx;
    }
View Full Code Here

    /**
     * Obtain an OTMConnection for the given persistence broker key
     */
    public OTMConnection acquireConnection(PBKey pbKey)
    {
        TransactionFactory txFactory = getTransactionFactory();
        return txFactory.acquireConnection(pbKey);
    }
View Full Code Here

     * Obtain the transaction which <code>conn</code> is currently
     * bound to.
     */
    public Transaction getTransaction(OTMConnection conn)
    {
        TransactionFactory txFactory = getTransactionFactory();
        Transaction tx = txFactory.getTransactionForConnection(conn);
        tx.setKit(this);
        return tx;
    }
View Full Code Here

TOP

Related Classes of org.apache.ojb.otm.transaction.TransactionFactory

Copyright © 2018 www.massapicom. 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.