@Repository public class AdminDaoImpl extends Object implements AdminDao
Constructor and Description |
---|
AdminDaoImpl() |
Modifier and Type | Method and Description |
---|---|
void |
deleteHomeScreenById(long homeScreenId) |
void |
deleteToolById(Long toolId) |
List<HomeScreen> |
getAllHomeScreens() |
List<Tool> |
getAllTools() |
javax.persistence.EntityManager |
getEntityManager()
Gets the reference to the
EntityManager . |
HomeScreen |
getHomeScreenByAlias(String alias) |
HomeScreen |
getHomeScreenById(long homeScreenId) |
Tool |
getToolById(long toolId) |
Long |
saveHomeScreen(HomeScreen homeScreen) |
Long |
saveTool(Tool tool) |
void |
setEntityManager(javax.persistence.EntityManager entityManager)
Sets the reference to the
EntityManager . |
public AdminDaoImpl()
public List<HomeScreen> getAllHomeScreens()
getAllHomeScreens
in interface AdminDao
public HomeScreen getHomeScreenById(long homeScreenId)
getHomeScreenById
in interface AdminDao
homeScreenId
- the id of the home screen to retrievepublic HomeScreen getHomeScreenByAlias(String alias)
getHomeScreenByAlias
in interface AdminDao
alias
- the alias of the home screenpublic Long saveHomeScreen(HomeScreen homeScreen)
saveHomeScreen
in interface AdminDao
homeScreen
- the HomeScreen to savepublic void deleteHomeScreenById(long homeScreenId)
deleteHomeScreenById
in interface AdminDao
homeScreenId
- the id of the home screen to deletepublic List<Tool> getAllTools()
getAllTools
in interface AdminDao
public Tool getToolById(long toolId)
getToolById
in interface AdminDao
toolId
- the id of the tool to retrievepublic void deleteToolById(Long toolId)
deleteToolById
in interface AdminDao
toolId
- the id of the tool to deletepublic javax.persistence.EntityManager getEntityManager()
EntityManager
.EntityManager
.public void setEntityManager(javax.persistence.EntityManager entityManager)
EntityManager
.entityManager
- The reference to the EntityManager
.Copyright © 2011-2013 The Kuali Foundation. All Rights Reserved.