All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.jhonyscamacho.finaluser.persistence.RoleGroupDAO Maven / Gradle / Ivy

The newest version!
package com.github.jhonyscamacho.finaluser.persistence;

import java.util.List;

import javax.ejb.Local;

import com.github.jhonyscamacho.finaluser.domain.RoleGroup;
import com.github.jhonyscamacho.persistence.generic.GenericDAO;

/**
 * EJB service that defines the RoleGroup data access object. This service was
 * designed to be used in login implementations.
 * 
 * @see RoleGroup
 * 
 * @author Jhonathan Camacho
 *
 */
@Local
public interface RoleGroupDAO extends GenericDAO {

	/**
	 * Find all persisted rolegroup.
	 * 
	 * @return a list with all rolegroups persisted in the database.
	 */
	public List findAll();

	/**
	 * Find a persisted rolegroup by it's name.
	 * 
	 * @param name
	 *            the name of the rolegroup.
	 * @return the rolegroup that have the name passed by parameter or null
	 *         otherwise.
	 */
	public T findByName(String name);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy