public final class AdminRoleDAO extends Object implements IAdminRoleDAO
| Constructor and Description |
|---|
AdminRoleDAO() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkExistRole(String strRoleKey)
Check that the given key points to an existing role
|
void |
delete(String strRoleKey)
Delete a record from the table
|
void |
insert(AdminRole role)
Insert a new record in the table.
|
AdminRole |
load(String strRoleKey)
Load the data of AdminRole from the table
|
Collection<AdminRole> |
selectRoleList()
Load the list of roles
|
void |
store(String strRoleKey,
AdminRole role)
Update the record identified by the given role key with the given role in the table
|
public void insert(AdminRole role)
insert in interface IAdminRoleDAOrole - The role objectpublic AdminRole load(String strRoleKey)
load in interface IAdminRoleDAOstrRoleKey - The identifier of AdminRolepublic void delete(String strRoleKey)
delete in interface IAdminRoleDAOstrRoleKey - The role keypublic void store(String strRoleKey, AdminRole role)
store in interface IAdminRoleDAOstrRoleKey - the key of the role to modifyrole - The reference of role to be the new onepublic Collection<AdminRole> selectRoleList()
selectRoleList in interface IAdminRoleDAOpublic boolean checkExistRole(String strRoleKey)
checkExistRole in interface IAdminRoleDAOstrRoleKey - the role keyCopyright © 2020 City of Paris. All rights reserved.