Videoautomat

videoautomat
Class LoggableImpl

java.lang.Object
  extended by videoautomat.LoggableImpl
All Implemented Interfaces:
Serializable

public class LoggableImpl
extends Object
implements Serializable

This class implements Loggable to achieve the logging of LogEntryVideo.

See Also:
Serialized Form

Constructor Summary
LoggableImpl(String user_ID, String video, boolean rented)
          Constructs a new LoggableImpl, that will log LogEntryVideos.
 
Method Summary
 LogEntry getLogData()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggableImpl

public LoggableImpl(String user_ID,
                    String video,
                    boolean rented)
Constructs a new LoggableImpl, that will log LogEntryVideos.

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

getLogData

public LogEntry getLogData()
Returns:
a LogEntryVideo describing the event.
See Also:
log.Loggable#getLogData()

Videoautomat