org.broadleafcommerce.common.sandbox.dao
Class SandBoxDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.common.sandbox.dao.SandBoxDaoImpl
All Implemented Interfaces:
SandBoxDao

@Repository(value="blSandBoxDao")
public class SandBoxDaoImpl
extends Object
implements SandBoxDao


Field Summary
protected  javax.persistence.EntityManager sandBoxEntityManager
           
protected  org.springframework.orm.jpa.JpaTransactionManager transactionManager
           
 
Constructor Summary
SandBoxDaoImpl()
           
 
Method Summary
 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()
           
 Map<Long,String> retrieveAuthorNamesForSandBoxes(Set<Long> sandBoxIds)
           
 SandBox retrieveNamedSandBox(SandBoxType sandboxType, String sandboxName)
           
 SandBox retrieveSandBoxByType(SandBoxType sandboxType)
           
 List<SandBox> retrieveSandBoxesByType(SandBoxType sandboxType)
           
 List<SandBox> retrieveSandBoxesForAuthor(Long authorId)
           
 SandBox retrieveUserSandBoxForParent(Long authorId, Long parentSandBoxId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sandBoxEntityManager

protected javax.persistence.EntityManager sandBoxEntityManager

transactionManager

protected org.springframework.orm.jpa.JpaTransactionManager transactionManager
Constructor Detail

SandBoxDaoImpl

public SandBoxDaoImpl()
Method Detail

retrieve

public SandBox retrieve(Long id)
Specified by:
retrieve in interface SandBoxDao

retrieveAllSandBoxes

public List<SandBox> retrieveAllSandBoxes()
Specified by:
retrieveAllSandBoxes in interface SandBoxDao

retrieveSandBoxesByType

public List<SandBox> retrieveSandBoxesByType(SandBoxType sandboxType)
Specified by:
retrieveSandBoxesByType in interface SandBoxDao

retrieveUserSandBoxForParent

public SandBox retrieveUserSandBoxForParent(Long authorId,
                                            Long parentSandBoxId)
Specified by:
retrieveUserSandBoxForParent in interface SandBoxDao

retrieveSandBoxByType

public SandBox retrieveSandBoxByType(SandBoxType sandboxType)
Specified by:
retrieveSandBoxByType in interface SandBoxDao

retrieveNamedSandBox

public SandBox retrieveNamedSandBox(SandBoxType sandboxType,
                                    String sandboxName)
Specified by:
retrieveNamedSandBox in interface SandBoxDao

retrieveAuthorNamesForSandBoxes

public Map<Long,String> retrieveAuthorNamesForSandBoxes(Set<Long> sandBoxIds)
Specified by:
retrieveAuthorNamesForSandBoxes in interface SandBoxDao

retrieveSandBoxesForAuthor

public List<SandBox> retrieveSandBoxesForAuthor(Long authorId)
Specified by:
retrieveSandBoxesForAuthor in interface SandBoxDao

persist

public SandBox persist(SandBox entity)
Specified by:
persist in interface SandBoxDao

createSandBox

public SandBox createSandBox(String sandBoxName,
                             SandBoxType sandBoxType)
Specified by:
createSandBox in interface SandBoxDao

createUserSandBox

public SandBox createUserSandBox(Long authorId,
                                 SandBox approvalSandBox)
Specified by:
createUserSandBox in interface SandBoxDao

createDefaultSandBox

public SandBox createDefaultSandBox()
Specified by:
createDefaultSandBox in interface SandBoxDao


Copyright © 2013. All Rights Reserved.