Class SetEvent
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetEvent
A Data Access Object to write 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 TypeMethodDescriptionvoid
Deletes an Online Event.void
Deletes an Online Event flight route.void
Deletes an Online Event pilot signup.void
deleteBanner
(int id) Deletes an Online Event banner image from the database.void
Saves a Flight Route to the database.void
Writes a Signup to the database.void
Toggles the availability of an Event flight route.void
Writes an Online Event to the database.void
Writes Online Event feedback to the database.void
writeBanner
(Event e) Updates an Online Event banner image.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
-
SetEvent
Initialize the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Writes an Online Event to the database. This handles INSERTs and UPDATEs.- Parameters:
e
- the Online Event- Throws:
DAOException
- if a JDBC error occurs
-
signup
Writes a Signup to the database.- Parameters:
s
- the Signup bean- Throws:
DAOException
- if a JDBC error occurs
-
save
Saves a Flight Route to the database. This can handle create and update operations.- Parameters:
r
- the Route bean- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes an Online Event.- Parameters:
e
- the Event bean- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes an Online Event pilot signup.- Parameters:
s
- the Signup bean- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes an Online Event flight route.- Parameters:
r
- the Route bean- Throws:
DAOException
- if a JDBC error occurs
-
deleteBanner
Deletes an Online Event banner image from the database.- Parameters:
id
- the Event database ID- Throws:
DAOException
- if a JDBC error occurs
-
writeBanner
Updates an Online Event banner image.- Parameters:
e
- the Event bean- Throws:
DAOException
- if a JDBC error occurs
-
toggle
Toggles the availability of an Event flight route.- Parameters:
r
- the Route bean- Throws:
DAOException
- if a JDBC error occurs
-
write
Writes Online Event feedback to the database.- Parameters:
f
- a Feedback bean- Throws:
DAOException
- if a JDBC error occurs
-