Package be.gaudry.dao.edu
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 TypeMethodDescriptionbooleandelete()booleanAllows to know that the authentication is not used.booleanTries to authenticate with the persistent layer informations.booleanreset()booleanupdate()Updates the DAO schema if needed and sets the new DAO version numberbooleanReads 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:
trueif a DAO update is available,falseotherwise- Since:
- 1.1 (Apr 9, 2009)
-
update
boolean update()Updates the DAO schema if needed and sets the new DAO version number- Returns:
trueif the update has been full performed,falseotherwise- Since:
- 1.1 (Apr 9, 2009)
-
login
Tries to authenticate with the persistent layer informations. This implementation should callisAuthenticationFree()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)
-