Class Technician

java.lang.Object
domain.Staff
domain.Technician

public class Technician extends Staff
Represents a technician user in the system | Représente un utilisateur technicien dans le système.
Author:
FIGUEIRAS Jossua
  • Constructor Details

    • Technician

      public Technician(int id, String name, String firstname, String hash, String username, boolean available)
      Creates a Technician instance using explicit values | Crée une instance Technician à partir de valeurs explicites.
      Parameters:
      id - the unique identifier of the technician | l'identifiant unique du technicien
      name - the last name of the technician | le nom de famille du technicien
      firstname - the first name of the technician | le prénom du technicien
      hash - the hashed password | le mot de passe chiffré
      username - the login username | le nom d'utilisateur
      available - indicates if the technician account is active | indique si le compte du technicien est actif
    • Technician

      public Technician(ResultSet sqlResult)
      Creates a Technician instance from a SQL result set | Crée une instance Technician à partir d'un résultat SQL.
      Parameters:
      sqlResult - the SQL result set containing technician data | le résultat SQL contenant les données du technicien
  • Method Details

    • getTechncianById

      public static Technician getTechncianById(int id)
      Retrieves a Technician by its unique identifier | Récupère un technicien à partir de son identifiant unique.
      Parameters:
      id - the ID of the technician to retrieve | l'identifiant du technicien à récupérer
      Returns:
      the Technician instance if found and valid, or null if the staff member is not a technician | l'instance Technician si elle est trouvée et valide, ou null si le membre du personnel n'est pas un technicien