Package org.enhydra.jdbc.standard

Examples of org.enhydra.jdbc.standard.StandardXAStatefulConnection


    /**
     * Prepares to perform a commit.
     */
    public int prepare(Xid xid) throws XAException {
        StandardXAStatefulConnection stateCon = checkPreparedState (xid);// do generic state checking etc.
        ConnectionExtensions con
                = (ConnectionExtensions)stateCon.con;      // get the InstantDB connection
        int status = con.prepare();              // prepare to commit
        if (status == XA_RDONLY) {              // if transaction didn't update the database
            xaDataSource.freeConnection (xid, false);      // free the connection
View Full Code Here

TOP

Related Classes of org.enhydra.jdbc.standard.StandardXAStatefulConnection

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.