Class DerbyConfig

java.lang.Object
be.gaudry.dao.edu.derby.DerbyConfig
All Implemented Interfaces:
IConfigDao

public class DerbyConfig extends Object implements IConfigDao
Since:
1.0 May 28, 2008, 1.0
Version:
%I%, %G%
Author:
Steph GAUDRY
  • Constructor Details

    • DerbyConfig

      public DerbyConfig()
  • Method Details

    • delete

      public boolean delete()
      Specified by:
      delete in interface IConfigDao
    • reset

      public boolean reset()
      Specified by:
      reset in interface IConfigDao
    • update

      public boolean update()
      Description copied from interface: IConfigDao
      Updates the DAO schema if needed and sets the new DAO version number
      Specified by:
      update in interface IConfigDao
      Returns:
      true if the update has been full performed, false otherwise
    • updateExists

      public boolean updateExists()
      Description copied from interface: IConfigDao
      Reads the DAO version to know if an update is available or not.
      Specified by:
      updateExists in interface IConfigDao
      Returns:
      true if a DAO update is available, false otherwise
    • isAuthenticationFree

      public boolean isAuthenticationFree()
      Description copied from interface: IConfigDao
      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.
      Specified by:
      isAuthenticationFree in interface IConfigDao
      Returns:
      true if no authentication is needed
    • login

      public boolean login(LoginBean loginBean)
      Description copied from interface: IConfigDao
      Tries to authenticate with the persistent layer informations. This implementation should call IConfigDao.isAuthenticationFree() before.
      Specified by:
      login in interface IConfigDao
      Parameters:
      loginBean - information needed to login
      Returns:
      true if the authentication has succeeded