Class InstructionBusy
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.academy.InstructionBusy
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,InstructorBean
,CalendarEntry
,IDBean
,TimeSpan
,ViewEntry
,Cacheable
A bean to block off a Flight Academy Instructor's time.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Comapres two sessions by comparing their start times.Returns any comments associated with this entry.getDate()
Returns this entry's date for ordering in the Calendar.The end date/time of this span.int
Returns the Instructor database ID.Returns the CSS row class name if displayed in a view table.The start date/time of this span.void
setComments
(String txt) Updates the remarks for this busy time.void
setEndTime
(Instant dt) Updates the end time for this busy period.void
setStartTime
(Instant dt) Updates the start time for this busy period.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, equals, getHexID, getID, hashCode, setID, validateID, validateID
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.deltava.beans.TimeSpan
getDuration, hasTimes
-
Constructor Details
-
InstructionBusy
public InstructionBusy(int instructorID) Initializes the bean.- Parameters:
instructorID
- the Instructor's database ID- Throws:
IllegalArgumentException
- if instructorID is zero or negative
-
-
Method Details
-
getComments
-
getStartTime
Description copied from interface:TimeSpan
The start date/time of this span.- Specified by:
getStartTime
in interfaceTimeSpan
- Returns:
- the start date/time
-
getEndTime
Description copied from interface:TimeSpan
The end date/time of this span.- Specified by:
getEndTime
in interfaceTimeSpan
- Returns:
- the end date/time
-
getDate
Description copied from interface:CalendarEntry
Returns this entry's date for ordering in the Calendar.- Specified by:
getDate
in interfaceCalendarEntry
- Returns:
- the date/time
-
getInstructorID
public int getInstructorID()Returns the Instructor database ID.- Specified by:
getInstructorID
in interfaceInstructorBean
- Returns:
- the Instructor's database ID
-
setStartTime
Updates the start time for this busy period.- Parameters:
dt
- the start date/time- See Also:
-
setEndTime
Updates the end time for this busy period.- Parameters:
dt
- the end date/time- Throws:
IllegalArgumentException
- if dt is before startDate- See Also:
-
setComments
Updates the remarks for this busy time.- Parameters:
txt
- the comments- See Also:
-
getRowClassName
Returns the CSS row class name if displayed in a view table.- Specified by:
getRowClassName
in interfaceViewEntry
- Returns:
- the CSS class name
-
compareTo
Comapres two sessions by comparing their start times.- Specified by:
compareTo
in interfaceComparable<Object>
- Overrides:
compareTo
in classDatabaseBean
- See Also:
-