org.bibalex.daf.handlers.dbhandler
Class OperationInfo

java.lang.Object
  extended by org.bibalex.daf.handlers.dbhandler.OperationInfo

public class OperationInfo
extends java.lang.Object

Encapsulates data about the result of a database operation.

Author:
shehab.kamal
Portions of this class are based in part on the work of Eng. Khaled.

Field Summary
private  boolean isValid
           
private  java.lang.Object result
           
 
Constructor Summary
OperationInfo()
          Creates a new invalid OperationInfo instance.
OperationInfo(boolean isValid, java.lang.Object result)
          Creates a new OperationInfo instance.
OperationInfo(OperationInfo toCopy)
          A copy constructor.
 
Method Summary
 boolean isValid()
          Determines whether the result is valid or not.
 java.lang.Object result()
          The result of the operation that has been performed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isValid

private boolean isValid

result

private java.lang.Object result
Constructor Detail

OperationInfo

public OperationInfo()
Creates a new invalid OperationInfo instance.


OperationInfo

public OperationInfo(boolean isValid,
                     java.lang.Object result)
Creates a new OperationInfo instance.

Parameters:
isValid - The validity of the operation.
result - The result from the operation.

OperationInfo

public OperationInfo(OperationInfo toCopy)
A copy constructor.

Parameters:
toCopy - The OperationInfo instance to be copied.
Method Detail

isValid

public boolean isValid()
Determines whether the result is valid or not.

Returns:
A boolean value indicating whether the the result can be used or not.

result

public java.lang.Object result()
The result of the operation that has been performed.

Returns:
An Object containing the result of the operation.