@Repository(value="blSandBoxDao") public class SandBoxDaoImpl extends Object implements SandBoxDao
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
sandBoxEntityManager |
protected org.springframework.orm.jpa.JpaTransactionManager |
transactionManager |
| Constructor and Description |
|---|
SandBoxDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
SandBox |
createDefaultSandBox() |
SandBox |
createSandBox(String sandBoxName,
SandBoxType sandBoxType) |
SandBox |
createUserSandBox(Long authorId,
SandBox approvalSandBox) |
SandBox |
persist(SandBox entity) |
SandBox |
retrieve(Long id) |
List<SandBox> |
retrieveAllSandBoxes() |
List<SandBox> |
retrieveAllUserSandBoxes(Long authorId)
Reads all SandBoxes that are of type
SandBoxType.USER and belong to the given
user. |
Map<Long,String> |
retrieveAuthorNamesForSandBoxes(Set<Long> sandBoxIds) |
SandBox |
retrieveNamedSandBox(SandBoxType sandboxType,
String sandboxName) |
List<SandBox> |
retrieveSandBoxesByType(SandBoxType sandboxType) |
List<SandBox> |
retrieveSandBoxesForAuthor(Long authorId) |
SandBox |
retrieveUserSandBoxForParent(Long authorId,
Long parentSandBoxId) |
protected javax.persistence.EntityManager sandBoxEntityManager
protected org.springframework.orm.jpa.JpaTransactionManager transactionManager
public SandBox retrieve(Long id)
retrieve in interface SandBoxDaopublic List<SandBox> retrieveAllSandBoxes()
retrieveAllSandBoxes in interface SandBoxDaopublic List<SandBox> retrieveSandBoxesByType(SandBoxType sandboxType)
retrieveSandBoxesByType in interface SandBoxDaopublic List<SandBox> retrieveAllUserSandBoxes(Long authorId)
SandBoxDaoSandBoxType.USER and belong to the given
user.retrieveAllUserSandBoxes in interface SandBoxDaopublic SandBox retrieveUserSandBoxForParent(Long authorId, Long parentSandBoxId)
retrieveUserSandBoxForParent in interface SandBoxDaopublic SandBox retrieveNamedSandBox(SandBoxType sandboxType, String sandboxName)
retrieveNamedSandBox in interface SandBoxDaopublic Map<Long,String> retrieveAuthorNamesForSandBoxes(Set<Long> sandBoxIds)
retrieveAuthorNamesForSandBoxes in interface SandBoxDaopublic List<SandBox> retrieveSandBoxesForAuthor(Long authorId)
retrieveSandBoxesForAuthor in interface SandBoxDaopublic SandBox persist(SandBox entity)
persist in interface SandBoxDaopublic SandBox createSandBox(String sandBoxName, SandBoxType sandBoxType)
createSandBox in interface SandBoxDaopublic SandBox createUserSandBox(Long authorId, SandBox approvalSandBox)
createUserSandBox in interface SandBoxDaopublic SandBox createDefaultSandBox()
createDefaultSandBox in interface SandBoxDaoCopyright © 2014. All rights reserved.