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 IAdminRoleDAO
role
- The role objectpublic AdminRole load(String strRoleKey)
load
in interface IAdminRoleDAO
strRoleKey
- The identifier of AdminRolepublic void delete(String strRoleKey)
delete
in interface IAdminRoleDAO
strRoleKey
- The role keypublic void store(String strRoleKey, AdminRole role)
store
in interface IAdminRoleDAO
strRoleKey
- the key of the role to modifyrole
- The reference of role to be the new onepublic Collection<AdminRole> selectRoleList()
selectRoleList
in interface IAdminRoleDAO
public boolean checkExistRole(String strRoleKey)
checkExistRole
in interface IAdminRoleDAO
strRoleKey
- the role keyCopyright © 2020 City of Paris. All rights reserved.