Subversion Repositories SmartDukaan

Rev

Rev 23781 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.repository.dtr;

import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
import com.spice.profitmandi.dao.entity.dtr.Role;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

@Repository
public interface RoleRepository {
        public void persist(Role role);
        public Role selectById(int id) throws ProfitMandiBusinessException;
        public Role selectByName(String name) throws ProfitMandiBusinessException;

    public List<Role> selectByIds(Set<Integer> ids) throws ProfitMandiBusinessException;
        public List<Role> selectAll();
        public boolean isExistByName(String name);
        public void deleteById(int id) throws ProfitMandiBusinessException;
        public List<Integer> selectByNames(Set<String> names);
}