videoautomat
Class LoggableImpl
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggableImpl
public LoggableImpl(String user_ID,
String video,
boolean rented)
- Constructs a new
LoggableImpl
, that will log LogEntryVideo
s.
- Parameters:
user_ID
- the ID of the relevant uservideo
- the name of the relevant videorented
- true if this Loggable
should log a rent event, otherwise false
getLogData
public LogEntry getLogData()
- Returns:
- a
LogEntryVideo
describing the event. - See Also:
log.Loggable#getLogData()