issrg.SAWS
Class RecordStatus

java.lang.Object
  extended by issrg.SAWS.RecordStatus
All Implemented Interfaces:
java.io.Serializable

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

This is the class to represent the status of a record when it's sent to SAWS Server.

Version:
0.1, Jan. 2007
Author:
E. Silva
See Also:
Serialized Form

Constructor Summary
RecordStatus()
          Default constructor of the class.
RecordStatus(int status, int description)
          Contructor of the class.
 
Method Summary
 int getDescription()
          Method to get the description of the status of the record.
 int getStatus()
          Method that returns the status of the record.
 void setDescription(int description)
          Method that defines the description of the status.
 void setStatus(int status)
          Methods that defines the value for the status of the record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordStatus

public RecordStatus()
Default constructor of the class.


RecordStatus

public RecordStatus(int status,
                    int description)
Contructor of the class.

Parameters:
status - the status of the record.
description - the description of the record status.
Method Detail

getStatus

public int getStatus()
Method that returns the status of the record.

Returns:
An int that indicates if the record has been added to the log file (status = 0), or not (status = -1);

setStatus

public void setStatus(int status)
Methods that defines the value for the status of the record.

Parameters:
status - The value for the status: 0 if the success or -1 for fail.

getDescription

public int getDescription()
Method to get the description of the status of the record.

Returns:
the sequence number of the record if it has been added to the log file; or an error number if the record hasn't been added.

setDescription

public void setDescription(int description)
Method that defines the description of the status.

Parameters:
description - The sequence number of the record if it has been added to the log file; or an error code, otherwise.