org.bibalex.daf.installer
Class OperationInfo
java.lang.Object
org.bibalex.daf.installer.OperationInfo
public class OperationInfo
- extends java.lang.Object
Copyright (c) 2006-2007 by Bibliotheca Alexandrina
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
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
|
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 |
isValid
private boolean isValid
result
private java.lang.Object result
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.
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.