Class SetPartner
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetPartner
A Data Access Object to write virtual airline Partner information to the database.
- Since:
- 10.3
- Version:
- 10.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
delete
(int id) Deletes a Partner from the database.void
refer
(int id) Increments the refer count for a particular Partner.void
write
(PartnerInfo pi) Updates a Partner record in 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
-
SetPartner
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Updates a Partner record in the database.- Parameters:
pi
- the PartnerInfo bean- Throws:
DAOException
- if a JDBC error occurs
-
refer
Increments the refer count for a particular Partner.- Parameters:
id
- the Partner database ID- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes a Partner from the database.- Parameters:
id
- the Partner database ID- Throws:
DAOException
- if a JDBC error occurs
-