⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 transaction.java

📁 提供ESB 应用mule源代码 提供ESB 应用mule源代码
💻 JAVA
字号:
/* * $Id: Transaction.java 10559 2008-01-28 13:57:24Z akuzmin $ * -------------------------------------------------------------------------------------- * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com * * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */package org.mule.api.transaction;public interface Transaction{    int STATUS_ACTIVE = 0;    int STATUS_MARKED_ROLLBACK = 1;    int STATUS_PREPARED = 2;    int STATUS_COMMITTED = 3;    int STATUS_ROLLEDBACK = 4;    int STATUS_UNKNOWN = 5;    int STATUS_NO_TRANSACTION = 6;    int STATUS_PREPARING = 7;    int STATUS_COMMITTING = 8;    int STATUS_ROLLING_BACK = 9;    /**     * Begin the transaction.     *      * @throws TransactionException     */    void begin() throws TransactionException;    /**     * Commit the transaction     *      * @throws TransactionException     */    void commit() throws TransactionException;    /**     * Rollback the transaction     *      * @throws TransactionException     */    void rollback() throws TransactionException;    int getStatus() throws TransactionException;    boolean isBegun() throws TransactionException;    boolean isRolledBack() throws TransactionException;    boolean isCommitted() throws TransactionException;    Object getResource(Object key);    boolean hasResource(Object key);    void bindResource(Object key, Object resource) throws TransactionException;    void setRollbackOnly() throws TransactionException;    boolean isRollbackOnly() throws TransactionException;    boolean isXA();    /**     * Resume the XA transaction     *     * @throws TransactionException if any error     */    void resume() throws TransactionException;    /**     * Suspend the XA transaction     *     * @return     * @throws TransactionException if any error     */    javax.transaction.Transaction suspend() throws TransactionException;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -