Class SetLibrary
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetLibrary
A Data Access Object to write and update Fleet/Document Library metadata.
- Since:
- 1.0
- Version:
- 10.2
- 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
(LibraryEntry entry) Deletes a Library Entry from the database.void
Logs a file downlaod.void
Writes a File Library entry to the database.void
Writes an Installer to the Fleet Library.void
Writes a Manual to the Document Library.void
write
(Newsletter nws) Writes a Newsletter to the Document Library.void
Writes a Video Library 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
-
SetLibrary
Initialize the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
download
Logs a file downlaod.- Parameters:
fName
- the download file namepilotID
- the Database ID of the user downloading the file- Throws:
DAOException
- if a JDBC error occurs
-
write
Writes a Manual to the Document Library. This handles INSERT and UPDATE operations.- Parameters:
m
- the Manual metadataisNew
- if we are performing an INSERT instead of an UPDATE- Throws:
DAOException
- if a JDBC error occurs
-
write
Writes a Newsletter to the Document Library. This handles INSERT and UPDATE operations.- Parameters:
nws
- the Newsletter metadata- Throws:
DAOException
- if a JDBC error occurs
-
write
Writes an Installer to the Fleet Library. This handles INSERT and UPDATE operations.- Parameters:
i
- the Installer metadata- Throws:
DAOException
- if a JDBC error occurs
-
write
Writes a File Library entry to the database. This handles INSERT and UPDATE operations.- Parameters:
e
- the Library entry- Throws:
DAOException
- if a JDBC error occurs
-
write
Writes a Video Library entry to the database. This handles INSERT and UPDATE operations.- Parameters:
v
- the Library entry- Throws:
DAOException
- if a JDBC error occurs
-
delete
Deletes a Library Entry from the database.- Parameters:
entry
- the Library entry- Throws:
DAOException
- if a JDBC error occursIllegalArgumentException
- if an unknown LibraryEntry subclass is passed
-