Videoautomat

videoautomat
Class LogEntryVideo

java.lang.Object
  extended by LogEntry
      extended by videoautomat.LogEntryVideo

public class LogEntryVideo
extends LogEntry

This class implements a LogEntry that describes the rent or hand back of a video.


Constructor Summary
LogEntryVideo(String user_ID, String video, boolean rented)
          Constructs a new LogEntryVideo by the given params and the current date.
 
Method Summary
 Date getLogDate()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogEntryVideo

public LogEntryVideo(String user_ID,
                     String video,
                     boolean rented)
Constructs a new LogEntryVideo by the given params and the current date.

Parameters:
user_ID - the ID of the relevant user
video - the name of the relevant video
rented - choose true if this entry should log a rent event, otherwise false
Method Detail

toString

public String toString()
Returns:
a String representing whether who has rented or who gave back which video.
See Also:
Object.toString()

getLogDate

public Date getLogDate()
Returns:
the date of logging.
See Also:
log.LogEntry#getLogDate()

Videoautomat