Interface IConfigDao

All Known Implementing Classes:
DerbyConfig

public interface IConfigDao
Defines the general contract of persistent layer configuration and management. Provided by the broldev.edu.dao project.
Since:
1.0 Oct 13, 2008, broldev.edu.dao 0.0.1-SNAPSHOT dependency
Version:
1.2 Oct 18, 2010
Author:
Steph GAUDRY
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
    Allows to know that the authentication is not used.
    boolean
    login​(LoginBean loginBean)
    Tries to authenticate with the persistent layer informations.
    boolean
     
    boolean
    Updates the DAO schema if needed and sets the new DAO version number
    boolean
    Reads the DAO version to know if an update is available or not.
  • Method Details

    • reset

      boolean reset()
    • delete

      boolean delete()
    • updateExists

      boolean updateExists()
      Reads the DAO version to know if an update is available or not.
      Returns:
      true if a DAO update is available, false otherwise
      Since:
      1.1 (Apr 9, 2009)
    • update

      boolean update()
      Updates the DAO schema if needed and sets the new DAO version number
      Returns:
      true if the update has been full performed, false otherwise
      Since:
      1.1 (Apr 9, 2009)
    • login

      boolean login(LoginBean loginBean)
      Tries to authenticate with the persistent layer informations. This implementation should call isAuthenticationFree() before.
      Parameters:
      loginBean - information needed to login
      Returns:
      true if the authentication has succeeded
      Since:
      1.2 (Oct 18, 2010)
    • isAuthenticationFree

      boolean isAuthenticationFree()
      Allows to know that the authentication is not used. If any problem occurs, or if an authenticated user is found, this will returns false to force authentication.
      Returns:
      true if no authentication is needed
      Since:
      1.2 (Oct 18, 2010)