Class SetEquipmentType

java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.SetEquipmentType

public class SetEquipmentType extends DAO
A Data Access Object to write Equipment Profiles.
Since:
1.0
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetEquipmentType

      public SetEquipmentType(Connection c)
      Initialze the Data Access Object.
      Parameters:
      c - the JDBC connection to use
  • Method Details

    • create

      public void create(EquipmentType eq) throws DAOException
      Writes a new Equipment Type profile to the database.
      Parameters:
      eq - the EquipmentType bean
      Throws:
      DAOException - if a JDBC error occurs
    • update

      public void update(EquipmentType eq, String newName) throws DAOException
      Updates an existing Equipment Type profile in the database.
      Parameters:
      eq - the EquipmentType bean
      newName - the new equipment type name, or null if the same
      Throws:
      DAOException - if a JDBC error occurs