package org.ovirt.engine.core.dao;
import java.util.List;
import org.ovirt.engine.core.common.businessentities.roles;
import org.ovirt.engine.core.compat.Guid;
/**
* <code>RoleDAO</code> defines a type for performing CRUD operations on instances of {@link roles}.
*
*
*/
public interface RoleDAO extends GenericDao<roles, Guid> {
/**
* Retrieves the role with the specified name.
*
* @param name
* the role name
* @return the role
*/
roles getByName(String name);
/**
* Retrieves all roles for the specified Ad element.
*
* @param id
* the Ad element
* @return the list of roles
*/
List<roles> getAllForAdElement(Guid id);
/**
* This seems to be a redundant method, but the stored procedure is different from the one for
* {@link #getAllForAdElement(Guid)}.
*
* @param id
* the Ad element
* @return the list of roles
*/
List<roles> getForAdElement(Guid id);
}