Package org.enhydra.instantdb.jdbc

Examples of org.enhydra.instantdb.jdbc.ConnectionExtensions.prepare()


     */
    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
        } // if
        return status;
    }
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.