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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
delete()
boolean
Allows to know that the authentication is not used.boolean
Tries to authenticate with the persistent layer informations.boolean
reset()
boolean
update()
Updates the DAO schema if needed and sets the new DAO version numberboolean
Reads 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:
delete
in interfaceIConfigDao
-
reset
public boolean reset()- Specified by:
reset
in interfaceIConfigDao
-
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 interfaceIConfigDao
- 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 interfaceIConfigDao
- 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 interfaceIConfigDao
- Returns:
- true if no authentication is needed
-
login
Description copied from interface:IConfigDao
Tries to authenticate with the persistent layer informations. This implementation should callIConfigDao.isAuthenticationFree()
before.- Specified by:
login
in interfaceIConfigDao
- Parameters:
loginBean
- information needed to login- Returns:
- true if the authentication has succeeded
-