pt.moredata.dataentry
Class DataEntryLog

java.lang.Object
  extended bypt.moredata.dataentry.DataEntryLog
All Implemented Interfaces:
java.io.Serializable

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

A class for recording information about some command response. This class is used with JspDataEntryController servlet to keep track of dataentry error messages. Company MoreData

Version:
$Revision: 1.5 $
Author:
ndorotea
See Also:
Serialized Form

Constructor Summary
DataEntryLog()
           
 
Method Summary
 void addLogEntry(LogEntry logEntry)
          Add a new log entry to this DataEntryLog.
 LogEntry getLastErrorLog()
          Return the last log that was added to this DataEntryLog for a command that had give an error.
 LogEntry getLastLog()
          Return the last log that was added to this DataEntryLog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataEntryLog

public DataEntryLog()
Method Detail

addLogEntry

public void addLogEntry(LogEntry logEntry)
Add a new log entry to this DataEntryLog. If this DataEntryLog has more than LOG_SIZE entrys, the older entry is deleted before adding the new one.

Parameters:
logEntry - The LogEntry to be added.

getLastLog

public LogEntry getLastLog()
Return the last log that was added to this DataEntryLog.

Returns:
The last log that was added to this DataEntryLog or null if no log is found.

getLastErrorLog

public LogEntry getLastErrorLog()
Return the last log that was added to this DataEntryLog for a command that had give an error.