org.broadleafcommerce.openadmin.server.dao
Class SandBoxItemDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.openadmin.server.dao.SandBoxItemDaoImpl
All Implemented Interfaces:
SandBoxItemDao

@Repository(value="blSandBoxItemDao")
public class SandBoxItemDaoImpl
extends Object
implements SandBoxItemDao


Field Summary
protected  javax.persistence.EntityManager em
           
protected  EntityConfiguration entityConfiguration
           
protected  org.springframework.orm.jpa.JpaTransactionManager manager
           
 
Constructor Summary
SandBoxItemDaoImpl()
           
 
Method Summary
 SandBoxItem addSandBoxItem(Long sbox, SandBoxOperationType operationType, SandBoxItemType itemType, String description, Long temporaryId, Long originalId)
           
 SandBoxItem addSandBoxItem(Long sbox, SandBoxOperationType operationType, SandBoxItemType itemType, String description, String groupDescription, Long temporaryId, Long originalId)
           
 void delete(SandBoxItem sandBoxItem)
           
 List<SandBoxItem> retrieveByGroupName(Long sandBoxId, String groupName)
           
 SandBoxItem retrieveById(Long id)
           
 SandBoxItem retrieveBySandboxAndTemporaryItemId(Long sandBoxId, SandBoxItemType type, Long tempItemId)
           
 List<SandBoxItem> retrieveSandBoxItemsByTypeForSandbox(Long sandBox, SandBoxItemType itemType)
           
 List<SandBoxItem> retrieveSandBoxItemsByTypesForSandbox(Long sandBox, List<SandBoxItemType> sandBoxItemTypes)
           
 List<SandBoxItem> retrieveSandBoxItemsForSandbox(Long sandBox)
           
 SandBoxItem updateSandBoxItem(SandBoxItem sandBoxItem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

em

protected javax.persistence.EntityManager em

entityConfiguration

protected EntityConfiguration entityConfiguration

manager

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

SandBoxItemDaoImpl

public SandBoxItemDaoImpl()
Method Detail

retrieveById

public SandBoxItem retrieveById(Long id)
Specified by:
retrieveById in interface SandBoxItemDao

retrieveBySandboxAndTemporaryItemId

public SandBoxItem retrieveBySandboxAndTemporaryItemId(Long sandBoxId,
                                                       SandBoxItemType type,
                                                       Long tempItemId)
Specified by:
retrieveBySandboxAndTemporaryItemId in interface SandBoxItemDao

retrieveByGroupName

public List<SandBoxItem> retrieveByGroupName(Long sandBoxId,
                                             String groupName)
Specified by:
retrieveByGroupName in interface SandBoxItemDao

addSandBoxItem

public SandBoxItem addSandBoxItem(Long sbox,
                                  SandBoxOperationType operationType,
                                  SandBoxItemType itemType,
                                  String description,
                                  Long temporaryId,
                                  Long originalId)
Specified by:
addSandBoxItem in interface SandBoxItemDao

addSandBoxItem

public SandBoxItem addSandBoxItem(Long sbox,
                                  SandBoxOperationType operationType,
                                  SandBoxItemType itemType,
                                  String description,
                                  String groupDescription,
                                  Long temporaryId,
                                  Long originalId)
Specified by:
addSandBoxItem in interface SandBoxItemDao

updateSandBoxItem

public SandBoxItem updateSandBoxItem(SandBoxItem sandBoxItem)
Specified by:
updateSandBoxItem in interface SandBoxItemDao

retrieveSandBoxItemsForSandbox

public List<SandBoxItem> retrieveSandBoxItemsForSandbox(Long sandBox)
Specified by:
retrieveSandBoxItemsForSandbox in interface SandBoxItemDao

retrieveSandBoxItemsByTypeForSandbox

public List<SandBoxItem> retrieveSandBoxItemsByTypeForSandbox(Long sandBox,
                                                              SandBoxItemType itemType)
Specified by:
retrieveSandBoxItemsByTypeForSandbox in interface SandBoxItemDao

retrieveSandBoxItemsByTypesForSandbox

public List<SandBoxItem> retrieveSandBoxItemsByTypesForSandbox(Long sandBox,
                                                               List<SandBoxItemType> sandBoxItemTypes)
Specified by:
retrieveSandBoxItemsByTypesForSandbox in interface SandBoxItemDao

delete

public void delete(SandBoxItem sandBoxItem)
Specified by:
delete in interface SandBoxItemDao


Copyright © 2013. All Rights Reserved.