Class SetEquipmentType
java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetEquipmentType
A Data Access Object to write Equipment Profiles.
- 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
create
(EquipmentType eq) Writes a new Equipment Type profile to the database.void
update
(EquipmentType eq, String newName) Updates an existing Equipment Type profile 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
-
SetEquipmentType
Initialze the Data Access Object.- Parameters:
c
- the JDBC connection to use
-
-
Method Details
-
create
Writes a new Equipment Type profile to the database.- Parameters:
eq
- the EquipmentType bean- Throws:
DAOException
- if a JDBC error occurs
-
update
Updates an existing Equipment Type profile in the database.- Parameters:
eq
- the EquipmentType beannewName
- the new equipment type name, or null if the same- Throws:
DAOException
- if a JDBC error occurs
-