Class MenuSuperiorDaoImpl
Object
AbstractJPADao<MenuSuperior,Integer>
MenuSuperiorDaoImpl
- All Implemented Interfaces:
MenuSuperiorDao,Dao<MenuSuperior,Integer>
@Repository
public class MenuSuperiorDaoImpl
extends AbstractJPADao<MenuSuperior,Integer>
implements MenuSuperiorDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidList<MenuSuperior> findAllByType(TipoItemMenu tipo) List<MenuSuperior> findByType(int id, TipoItemMenu tipo) List<MenuSuperior> getAllItemsByActionAndType(Object acao, TipoItemMenu tipo) intgetChildrenAmountById(int id) List<MenuSuperior> getChildrenByParentId(int id) List<MenuSuperior> getChildrenByParentIdAndType(int id, TipoItemMenu tipo) MenuSuperiorgetItemByPath(String path) intgetLastOrdemByParentId(Integer parentId) List<MenuSuperior> Methods inherited from class AbstractJPADao
findById, getEntityManager, read, read, remove, removeById, save, setEntityManager, update
-
Constructor Details
-
MenuSuperiorDaoImpl
public MenuSuperiorDaoImpl()
-
-
Method Details
-
readOrdered
- Specified by:
readOrderedin interfaceMenuSuperiorDao
-
findAllByType
- Specified by:
findAllByTypein interfaceMenuSuperiorDao
-
getChildrenAmountById
public int getChildrenAmountById(int id) - Specified by:
getChildrenAmountByIdin interfaceMenuSuperiorDao
-
getChildrenByParentId
- Specified by:
getChildrenByParentIdin interfaceMenuSuperiorDao
-
getChildrenByParentIdAndType
- Specified by:
getChildrenByParentIdAndTypein interfaceMenuSuperiorDao
-
getAllItemsByActionAndType
- Specified by:
getAllItemsByActionAndTypein interfaceMenuSuperiorDao
-
findByType
- Specified by:
findByTypein interfaceMenuSuperiorDao
-
getItemByPath
- Specified by:
getItemByPathin interfaceMenuSuperiorDao
-
deleteMenusPadrao
@Transactional public void deleteMenusPadrao()- Specified by:
deleteMenusPadraoin interfaceMenuSuperiorDao
-
getLastOrdemByParentId
- Specified by:
getLastOrdemByParentIdin interfaceMenuSuperiorDao
-