Videoautomat

videoautomat
Class LogEntryVideo

java.lang.Object
  |
  +--log.LogEntry
        |
        +--videoautomat.LogEntryVideo
All Implemented Interfaces:
Serializable

public class LogEntryVideo
extends log.LogEntry

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

See Also:
Serialized Form

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()
Overrides:
toString in class log.LogEntry
Returns:
a String representing whether who has rented or who gave back which video.
See Also:
Object.toString()

getLogDate

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

Videoautomat