Package be.gaudry.dao.edu.derby
Class DerbyConfig
java.lang.Object
be.gaudry.dao.edu.derby.DerbyConfig
- All Implemented Interfaces:
IConfigDao
- Since:
- 1.0 May 28, 2008, 1.0
- Version:
- %I%, %G%
- Author:
- Steph GAUDRY
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
DerbyConfig
public DerbyConfig()
-
-
Method Details
-
delete
public boolean delete()- Specified by:
deletein interfaceIConfigDao
-
reset
public boolean reset()- Specified by:
resetin interfaceIConfigDao
-
update
public boolean update()Description copied from interface:IConfigDaoUpdates the DAO schema if needed and sets the new DAO version number- Specified by:
updatein interfaceIConfigDao- Returns:
trueif the update has been full performed,falseotherwise
-
updateExists
public boolean updateExists()Description copied from interface:IConfigDaoReads the DAO version to know if an update is available or not.- Specified by:
updateExistsin interfaceIConfigDao- Returns:
trueif a DAO update is available,falseotherwise
-
isAuthenticationFree
public boolean isAuthenticationFree()Description copied from interface:IConfigDaoAllows 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:
isAuthenticationFreein interfaceIConfigDao- Returns:
- true if no authentication is needed
-
login
Description copied from interface:IConfigDaoTries to authenticate with the persistent layer informations. This implementation should callIConfigDao.isAuthenticationFree()before.- Specified by:
loginin interfaceIConfigDao- Parameters:
loginBean- information needed to login- Returns:
- true if the authentication has succeeded
-