com.gisgraphy.dao

## Interface RoleDao

- All Superinterfaces:
    GenericDao<Role,Long>
  All Known Implementing Classes:
    RoleDaoHibernate

      public interface RoleDao
      extends GenericDao<Role,Long>

  Role Data Access Object (DAO) interface.
  Author:
    Matt Raible

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Role` | `getRoleByName(String rolename)` Gets role information based on rolename
    `void` | `removeRole(String rolename)` Removes a role from the database by name

    - ### Methods inherited from interface com.gisgraphy.dao.GenericDao

      `exists, get, getAll, remove, save`

- - ### Method Detail

    - #### getRoleByName

          Role getRoleByName(String rolename)

      Gets role information based on rolename
      Parameters:
        `rolename` - the rolename
      Returns:
        populated role object

    - #### removeRole

          void removeRole(String rolename)

      Removes a role from the database by name
      Parameters:
        `rolename` - the role's rolename

Copyright © 2015. All rights reserved.