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
 void addSandBoxItem(SandBox sbox, SandBoxOperationType operationType, SandBoxItemType itemType, String description, Long temporaryId, Long originalId)
           
 SandBoxItem retrieveById(Long id)
           
 SandBoxItem retrieveBySandboxAndOriginalItemId(SandBox sandBox, SandBoxItemType type, Long originalItemId)
           
 SandBoxItem retrieveBySandboxAndTemporaryItemId(SandBox sandBox, SandBoxItemType type, Long tempItemId)
           
 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

retrieveBySandboxAndOriginalItemId

public SandBoxItem retrieveBySandboxAndOriginalItemId(SandBox sandBox,
                                                      SandBoxItemType type,
                                                      Long originalItemId)
Specified by:
retrieveBySandboxAndOriginalItemId in interface SandBoxItemDao

retrieveBySandboxAndTemporaryItemId

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

addSandBoxItem

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

updateSandBoxItem

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


Copyright © 2012. All Rights Reserved.