@Entity
public class CalendarDate
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
CalendarDate(int configRev,
GtfsCalendarDate gtfsCalendarDate,
java.text.DateFormat dateFormat)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addService()
Returns true if for this calendar date should add this service.
|
static int |
deleteFromRev(org.hibernate.Session session,
int configRev)
Deletes rev from the CalendarDates table
|
boolean |
equals(java.lang.Object obj)
Needed because have a composite ID for Hibernate storage
|
static java.util.List<CalendarDate> |
getCalendarDates(org.hibernate.Session session,
int configRev)
Returns List of Agency objects for the specified database revision.
|
int |
getConfigRev() |
java.util.Date |
getDate()
The epoch start time of midnight, the beginning of the day.
|
java.lang.String |
getExceptionType()
Note that is probably more clear to use addService() since
that way don't need to know what valid values of exception_type
are in GTFS.
|
java.lang.String |
getServiceId() |
long |
getTime()
The epoch start time of midnight, the beginning of the day.
|
int |
hashCode()
Needed because have a composite ID for Hibernate storage
|
java.lang.String |
toString() |
public CalendarDate(int configRev,
GtfsCalendarDate gtfsCalendarDate,
java.text.DateFormat dateFormat)
configRev - gtfsCalendarDate - dateFormat - public static int deleteFromRev(org.hibernate.Session session,
int configRev)
throws org.hibernate.HibernateException
session - configRev - org.hibernate.HibernateExceptionpublic static java.util.List<CalendarDate> getCalendarDates(org.hibernate.Session session, int configRev) throws org.hibernate.HibernateException
session - configRev - org.hibernate.HibernateExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int getConfigRev()
public java.lang.String getServiceId()
public java.util.Date getDate()
public long getTime()
public java.lang.String getExceptionType()
public boolean addService()