openfuture.bugbase.model
Class TransactionResult

java.lang.Object
  |
  +--openfuture.bugbase.model.TransactionResult
All Implemented Interfaces:
java.io.Serializable

public class TransactionResult
extends java.lang.Object
implements java.io.Serializable

result container of a transaction.

Version:
$Revision: 1.3 $
Author:
Wolfgang Reissenberger
See Also:
Created: Tue May 02 22:31:40 2000, Serialized Form

Field Summary
static int FAILURE
           
static int SUCCESS
           
 
Constructor Summary
TransactionResult()
          Empty Constructor, equivalent to new TransactionResult(SUCCESS, new LinkedList(), new LinkedList()).
TransactionResult(int status, java.util.LinkedList output, java.util.LinkedList warnings)
          Complete Constructor.
TransactionResult(java.util.LinkedList output)
          Constructor, equivalent to new TransactionResult(SUCCESS, output, new LinkedList()).
TransactionResult(java.util.LinkedList output, java.util.LinkedList warnings)
          Constructor, equivalent to new TransactionResult(SUCCESS, output, warnings).
 
Method Summary
 void addOutput(java.lang.String text)
          Add an output line of the transaction
 void addWarning(java.lang.String text)
          Add an warning line of the transaction
 java.util.LinkedList getOutput()
          Get the value of output.
 int getStatus()
          Get the value of status.
 java.util.LinkedList getWarnings()
          Get the value of warnings.
 void setOutput(java.util.LinkedList v)
          Set the value of output.
 void setStatus(int v)
          Set the value of status.
 void setWarnings(java.util.LinkedList v)
          Set the value of warnings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCESS

public static final int SUCCESS

FAILURE

public static final int FAILURE
Constructor Detail

TransactionResult

public TransactionResult(int status,
                         java.util.LinkedList output,
                         java.util.LinkedList warnings)
Complete Constructor.
Parameters:
status - status of the transaction
output - output text of the transaction
warnings - warning text of the transaction

TransactionResult

public TransactionResult()
Empty Constructor, equivalent to new TransactionResult(SUCCESS, new LinkedList(), new LinkedList()).

TransactionResult

public TransactionResult(java.util.LinkedList output)
Constructor, equivalent to new TransactionResult(SUCCESS, output, new LinkedList()).
Parameters:
output - output text of the transaction

TransactionResult

public TransactionResult(java.util.LinkedList output,
                         java.util.LinkedList warnings)
Constructor, equivalent to new TransactionResult(SUCCESS, output, warnings).
Parameters:
output - output text of the transaction
warnings - warning text of the transaction
Method Detail

getStatus

public int getStatus()
Get the value of status.
Returns:
Value of status.

setStatus

public void setStatus(int v)
Set the value of status.
Parameters:
v - Value to assign to status.

getOutput

public java.util.LinkedList getOutput()
Get the value of output.
Returns:
Value of output.

setOutput

public void setOutput(java.util.LinkedList v)
Set the value of output.
Parameters:
v - Value to assign to output.

addOutput

public void addOutput(java.lang.String text)
Add an output line of the transaction
Parameters:
text - output line of the transaction

getWarnings

public java.util.LinkedList getWarnings()
Get the value of warnings.
Returns:
Value of warnings.

setWarnings

public void setWarnings(java.util.LinkedList v)
Set the value of warnings.
Parameters:
v - Value to assign to warnings.

addWarning

public void addWarning(java.lang.String text)
Add an warning line of the transaction
Parameters:
text - warning line of the transaction


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