videoautomat
Class LoggableImpl
java.lang.Object
|
+--videoautomat.LoggableImpl
- All Implemented Interfaces:
- log.Loggable, Serializable
- public class LoggableImpl
- extends Object
- implements log.Loggable, 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 log.LogEntry getLogData()
- Specified by:
getLogData
in interface log.Loggable
- Returns:
- a
LogEntryVideo
describing the event. - See Also:
Loggable.getLogData()