Class SetUserData
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetUserData
A Data Access Object to write cross-applicaton User data.
- Since:
- 1.0
- Version:
- 9.0
- 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
delete
(int id) Removes a User Data entry from the database.void
update
(AirlineInformation info) Updates Airline Information in the database.void
Writes a new UserData entry to the database.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
-
SetUserData
Initialize the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Writes a new UserData entry to the database.- Parameters:
usr
- the UserData object- Throws:
DAOException
- if a JDBC error occurs
-
delete
Removes a User Data entry from the database.- Parameters:
id
- the user's database ID- Throws:
DAOException
- if a JDBC error occurs
-
update
Updates Airline Information in the database. This cannot update the airline code or domain name.- Parameters:
info
- the Airline Information bean- Throws:
DAOException
- if a JDBC error occurs
-