openfuture.bugbase.model
Interface Transaction

All Known Subinterfaces:
VersionUpdate

public interface Transaction

Interface defining version updates of the persistency layer.

Created: Mon May 01 21:58:38 2000

Version:
$Revision: 1.5 $
Author:
Wolfgang Reissenberger

Method Summary
 TransactionResult cleanup()
          This method will be executed after a successful execution of execute().
 TransactionResult execute()
          Core execution of the transaction.
 java.lang.String getDescription()
          Description for this version update.
 TransactionResult rollback()
          This method will be executed after a unsuccessful execution of execute().
 TransactionResult setup()
          Setup before the transaction core is executed.
 

Method Detail

setup

public TransactionResult setup()
                        throws I18NException
Setup before the transaction core is executed.
Returns:
result of the task
Throws:
I18NException - if an error occurs

execute

public TransactionResult execute()
                          throws I18NException
Core execution of the transaction.
Returns:
result of the task
Throws:
I18NException - if an error occurs

cleanup

public TransactionResult cleanup()
                          throws I18NException
This method will be executed after a successful execution of execute().
Returns:
result of the task
Throws:
I18NException - if an error occurs

rollback

public TransactionResult rollback()
                           throws I18NException
This method will be executed after a unsuccessful execution of execute().
Returns:
result of the task
Throws:
I18NException - if an error occurs

getDescription

public java.lang.String getDescription()
Description for this version update.
Returns:
description text


Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.