transaction.java
来自「提供ESB 应用mule源代码 提供ESB 应用mule源代码」· Java 代码 · 共 83 行
JAVA
83 行
/* * $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 + =
减小字号Ctrl + -
显示快捷键?