public class ScheduleException extends Entity
| Modifier and Type | Class and Description |
|---|---|
static class |
ScheduleException.ExemplarServiceDescriptor
Represents a desire about what service should be like on a particular day.
|
Entity.Loader<E extends Entity>, Entity.Writer<E extends Entity>| Modifier and Type | Field and Description |
|---|---|
List<String> |
addedService |
List<String> |
customSchedule
A custom schedule.
|
List<LocalDate> |
dates
The dates of this service exception
|
ScheduleException.ExemplarServiceDescriptor |
exemplar
If non-null, run service that would ordinarily run on this day of the week.
|
String |
name
The name of this exception, for instance "Presidents' Day" or "Early Subway Shutdowns"
|
List<String> |
removedService |
DOUBLE_MISSING, id, INT_MISSING| Constructor and Description |
|---|
ScheduleException() |
| Modifier and Type | Method and Description |
|---|---|
static ScheduleException.ExemplarServiceDescriptor |
exemplarFromInt(int value) |
boolean |
serviceRunsOn(Calendar calendar) |
void |
setStatementParameters(PreparedStatement statement,
boolean setDefaultId)
This method should be overridden by each Entity subtybe to handle setting parameters for a prepared statement
created from the entity table constants defined in
Table. |
getId, getSequenceNumber, human, setDoubleParameter, setIntParameterpublic ScheduleException.ExemplarServiceDescriptor exemplar
public String name
public void setStatementParameters(PreparedStatement statement, boolean setDefaultId) throws SQLException
EntityTable.setStatementParameters in class EntitySQLExceptionpublic boolean serviceRunsOn(Calendar calendar)
public static ScheduleException.ExemplarServiceDescriptor exemplarFromInt(int value)
Copyright © 2019. All rights reserved.