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 TypeMethodDescriptionintComapres 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.intReturns the Instructor database ID.Returns the CSS row class name if displayed in a view table.The start date/time of this span.voidsetComments(String txt) Updates the remarks for this busy time.voidsetEndTime(Instant dt) Updates the end time for this busy period.voidsetStartTime(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, validateIDMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:TimeSpanThe start date/time of this span.- Specified by:
getStartTimein interfaceTimeSpan- Returns:
- the start date/time
-
getEndTime
Description copied from interface:TimeSpanThe end date/time of this span.- Specified by:
getEndTimein interfaceTimeSpan- Returns:
- the end date/time
-
getDate
Description copied from interface:CalendarEntryReturns this entry's date for ordering in the Calendar.- Specified by:
getDatein interfaceCalendarEntry- Returns:
- the date/time
-
getInstructorID
public int getInstructorID()Returns the Instructor database ID.- Specified by:
getInstructorIDin 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:
getRowClassNamein interfaceViewEntry- Returns:
- the CSS class name
-
compareTo
Comapres two sessions by comparing their start times.- Specified by:
compareToin interfaceComparable<Object>- Overrides:
compareToin classDatabaseBean- See Also:
-