Class SetChart
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetChart
A Data Access Object to write Approach Charts.
- Since:
- 1.0
- 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 an Approach Chart from the Database.void
Updates an Approach Chart's usage counter.void
Saves an approach chart image.void
Updates an Approach Chart's metadata.void
Adds or updates an Approach Chart 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
-
SetChart
Initializes the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Adds or updates an Approach Chart to the database.- Parameters:
c
- the Chart bean- Throws:
DAOException
- if a JDBC error occurs
-
update
Updates an Approach Chart's metadata.- Parameters:
c
- the Approach Chart- Throws:
DAOException
- if a JDBC error occurs
-
save
Saves an approach chart image.- Parameters:
c
- the Chart- Throws:
IllegalStateException
- if the Chart is not loadedDAOException
- if a JDBC error occurs
-
logUse
Updates an Approach Chart's usage counter.- Parameters:
c
- the Approach Chart- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes an Approach Chart from the Database.- Parameters:
id
- the Chart database ID- Throws:
DAOException
- if a JDBC error occurs
-