Class SetSignatureImage
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetSignatureImage
A Data Access Object to write Signature Images.
- 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
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
-
SetSignatureImage
Initialize the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
write
Writes a Signature Image to the Database. The image data should be contained within the Pilot bean.- Parameters:
p
- the Pilot containing the Signature imagex
- the Image width in pixelsy
- the Image height in pixelsext
- the Image extensionisApproved
- whether the signature has been approved by management- Throws:
DAOException
- if a JDBC error occurs- See Also:
-
delete
Removes a Signature Image from the database.- Parameters:
pilotID
- the Pilot ID- Throws:
DAOException
- if a JDBC error occurs
-