@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 SandBoxDao
public List<SandBox> retrieveAllSandBoxes()
retrieveAllSandBoxes
in interface SandBoxDao
public List<SandBox> retrieveSandBoxesByType(SandBoxType sandboxType)
retrieveSandBoxesByType
in interface SandBoxDao
public List<SandBox> retrieveAllUserSandBoxes(Long authorId)
SandBoxDao
SandBoxType.USER
and belong to the given
user.retrieveAllUserSandBoxes
in interface SandBoxDao
public SandBox retrieveUserSandBoxForParent(Long authorId, Long parentSandBoxId)
retrieveUserSandBoxForParent
in interface SandBoxDao
public SandBox retrieveNamedSandBox(SandBoxType sandboxType, String sandboxName)
retrieveNamedSandBox
in interface SandBoxDao
public Map<Long,String> retrieveAuthorNamesForSandBoxes(Set<Long> sandBoxIds)
retrieveAuthorNamesForSandBoxes
in interface SandBoxDao
public List<SandBox> retrieveSandBoxesForAuthor(Long authorId)
retrieveSandBoxesForAuthor
in interface SandBoxDao
public SandBox persist(SandBox entity)
persist
in interface SandBoxDao
public SandBox createSandBox(String sandBoxName, SandBoxType sandBoxType)
createSandBox
in interface SandBoxDao
public SandBox createUserSandBox(Long authorId, SandBox approvalSandBox)
createUserSandBox
in interface SandBoxDao
public SandBox createDefaultSandBox()
createDefaultSandBox
in interface SandBoxDao
Copyright © 2014. All rights reserved.