Class GetEvent
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetEvent
A Data Access Object to load Online Event data.
- Since:
- 1.0
- Version:
- 11.6
- Author:
- Luke
-
Field Summary
Fields inherited from class org.deltava.dao.DAO
_queryMax, _queryStart, _queryTimeout, WGS84_SRID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget
(int id) Returns a particular Online Event.Returns all future Online Events with signups that are available for assignment.Returns all Online Events within a certain date range.Returns all Online Events.Returns all future Online Events that have not been canceled.getMyEventIDs
(int userID) Returns the events which a user has signed up for or participated in.getPossibleEvents
(FlightReport fr, String airlineCode) Returns possible Online Events for a particular flight.getPossibleEvents
(RoutePair rp, OnlineNetwork net, Instant dt, String airlineCode) Returns possible Online Events within a given time period.Returns all Online Events with ACARS-logged flights.Returns Online Events with user feedback.boolean
Returns whether there are any active Online Events schedule.Methods inherited from class org.deltava.dao.DAO
commitTransaction, createTimestamp, executeIDs, executeUpdate, executeUpdate, expandDate, formatDBName, formatLocation, getNewID, getQueryCount, prepare, prepareWithoutLimits, rollbackTransaction, setQueryMax, setQueryStart, setQueryTimeout, startTransaction, toID, toID, toInstant
-
Constructor Details
-
GetEvent
Initailize the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
getFutureEvents
Returns all future Online Events that have not been canceled.- Returns:
- a List of Event beans
- Throws:
DAOException
- if a JDBC error occurs
-
getAssignableEvents
Returns all future Online Events with signups that are available for assignment.- Returns:
- a List of Event beans
- Throws:
DAOException
- if a JDBC error occurs
-
getPossibleEvents
public List<Event> getPossibleEvents(RoutePair rp, OnlineNetwork net, Instant dt, String airlineCode) throws DAOException Returns possible Online Events within a given time period.- Parameters:
rp
- the RoutePairnet
- the OnlineNetworkdt
- the start date/timeairlineCode
- the airline code- Returns:
- a List of Events
- Throws:
DAOException
- if a JDBC error occurs
-
getWithFeedback
Returns Online Events with user feedback.- Returns:
- a List of Events
- Throws:
DAOException
- if a JDBC error occurs
-
getPossibleEvents
Returns possible Online Events for a particular flight. For non-FDR flight reports, this will select an Event that started prior to the submission date and ended less than 2 days before the submission date.- Parameters:
fr
- the FlightReportairlineCode
- the Airline Code- Returns:
- a List of Events
- Throws:
DAOException
- if a JDBC error occurs
-
getEventCalendar
Returns all Online Events within a certain date range.- Parameters:
dr
- the DateRange- Returns:
- a List of Event beans
- Throws:
DAOException
- if a JDBC error occurs
-
hasFutureEvents
Returns whether there are any active Online Events schedule.- Returns:
- TRUE if at least one Event is scheduled, otherwise FALSE
- Throws:
DAOException
- if a JDBC error occurs
-
getEvents
Returns all Online Events.- Returns:
- a List of Event beans
- Throws:
DAOException
- if a JDBC error occurs
-
getWithACARS
Returns all Online Events with ACARS-logged flights.- Returns:
- a Collection of Event beans
- Throws:
DAOException
- if a JDBC error occurs
-
get
Returns a particular Online Event.- Parameters:
id
- the Online Event database ID- Returns:
- the Online Event bean, or null if not found
- Throws:
DAOException
- if a JDBC error occurs
-
getMyEventIDs
Returns the events which a user has signed up for or participated in.- Parameters:
userID
- the user's database ID- Returns:
- a Collection of Event IDs
- Throws:
DAOException
- if a JDBC error occurs
-