【Java开源代码栏目提醒】:网学会员为需要Java开源代码的朋友们搜集整理了TransactionIF.java相关资料,希望对各位网友有所帮助!
/* -*- mode: Java; fill-column: 72 -*-
* The contents of this file are subject to the ClickBlocks Public
* License Version 1.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.clickblocks.org
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied, including, but not limited to, the implied warranties of
* merchantability, fitness for a particular purpose and
* non-infringement. See the License for the specific language
* governing rights and limitations under the License.
*
* ClickBlocks, the ClickBlocks logo and combinations thereof are
* trademarks of ClickBlocks, LLC in the United States and other
* countries.
*
* The Initial Developer of the Original Code is ClickBlocks, LLC.
* Portions created by ClickBlocks, LLC are Copyright (C) 2000.
* All Rights Reserved.
*
*/
/*
* $Log: TransactionIF.java,v $
* Revision 1.4 2000/12/03 14:53:07 mgrand
* spell checked
*
* Revision 1.3 2000/11/14 12:25:42 mgrand
* Moved to clickblocks packages.
*
* Revision 1.2 2000/10/30 11:52:09 mgrand
* Converted packages names to clickblocks
*
* Revision 1.1.1.1 2000/10/30 01:37:41 mgrand
* reestablished local repository
*/
package org.clickblocks.persistence;
import org.clickblocks.util.CBSystemException;
/**
* Objects that manage transactions for an object that
* implements the <code>PersistenceManagerIF</code> interface.
*
* @stereotype thing
* @author Mark Grand */
public interface TransactionIF {
/**
* @label Sends-to-listeners-when-committed
* @directed
* @clientCardinality 1
* @supplierCardinality 0..1
*/
/*#TransactionCommittedEvent lnkTransactionCommittedEvent;*/
/**
* Commit this transaction.
* @exception CBSystemException
* If the commit operation encounters an error.
* @exception IllegalStateException
* If this object's <code>commit</code> or
* <code>abort</code> methods have been called
* previously.
*/
public void commit() throws CBSystemException;
/**
* Abort this transaction.
* @exception CBSystemException
* If the abort operation encounters an error.
* @exception IllegalStateException
* If this object's <code>commit</code> or
* <code>abort</code> methods have been called
* previously.
*/
public void abort() throws CBSystemException;
/**
* This method returns false before this transaction is
* committed or aborted; true after.
*/
public boolean isDone() ;
/**
* This method registers
* <code>TransactionCommittedListener</code> objects to
* receive a <code>TransactionCommittedEvent</code> when
* this transaction is committed.
*/
public void addTransactionCommittedListener(
TransactionCommittedListener listener);
/**
* This method unregisters
* <code>TransactionCommittedListener</code> objects to
* receive a <code>TransactionCommittedEvent</code> when
* this transaction is committed.
*/
public void removeTransactionCommittedListener(
TransactionCommittedListener listener);
} // interface TransactionIF
// LocalWords: TransactionIF java clickblocks PersistenceManagerIF
// LocalWords: clientCardinality supplierCardinality CBSystemException
// LocalWords: TransactionCommittedEvent lnkTransactionCommittedEvent
// LocalWords: IllegalStateException TransactionCommittedListener
上一篇:
TransactionHistoryManager.java
下一篇:
第1章 现在完成时和现在完成进行时