org.broadleafcommerce.core.content.dao
Class ContentDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.common.util.dao.BatchRetrieveDao
      extended by org.broadleafcommerce.core.content.dao.ContentDaoImpl
All Implemented Interfaces:
ContentDao

@Repository(value="blContentDao")
public class ContentDaoImpl
extends BatchRetrieveDao
implements ContentDao

Author:
btaylor

Field Summary
protected  javax.persistence.EntityManager em
           
protected  EntityConfiguration entityConfiguration
           
 
Constructor Summary
ContentDaoImpl()
           
 
Method Summary
 void delete(Content content)
           
 void delete(List<Content> contentList)
           
 List<Content> readAllContent()
           
 List<Content> readContentAwaitingApproval()
           
 Content readContentById(Integer id)
           
 List<Content> readContentByIdsAndSandbox(List<Integer> ids, String sandbox)
           
 List<Content> readContentBySandbox(String sandbox)
           
 List<Content> readContentBySandboxAndType(String sandbox, String contentType)
           
 List<Content> readContentSpecified(String sandbox, String contentType, Date displayDate)
           
 List<Content> readStagedContent()
           
 Content saveContent(Content content)
           
 List<Content> saveContent(List<Content> contentList)
           
 
Methods inherited from class org.broadleafcommerce.common.util.dao.BatchRetrieveDao
batchExecuteReadQuery, getInClauseBatchSize, setInClauseBatchSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entityConfiguration

protected EntityConfiguration entityConfiguration

em

protected javax.persistence.EntityManager em
Constructor Detail

ContentDaoImpl

public ContentDaoImpl()
Method Detail

delete

public void delete(Content content)
Specified by:
delete in interface ContentDao

delete

public void delete(List<Content> contentList)
Specified by:
delete in interface ContentDao

readContentAwaitingApproval

public List<Content> readContentAwaitingApproval()
Specified by:
readContentAwaitingApproval in interface ContentDao

readContentById

public Content readContentById(Integer id)
Specified by:
readContentById in interface ContentDao

readContentByIdsAndSandbox

public List<Content> readContentByIdsAndSandbox(List<Integer> ids,
                                                String sandbox)
Specified by:
readContentByIdsAndSandbox in interface ContentDao

readContentBySandbox

public List<Content> readContentBySandbox(String sandbox)
Specified by:
readContentBySandbox in interface ContentDao

readContentBySandboxAndType

public List<Content> readContentBySandboxAndType(String sandbox,
                                                 String contentType)
Specified by:
readContentBySandboxAndType in interface ContentDao

readContentSpecified

public List<Content> readContentSpecified(String sandbox,
                                          String contentType,
                                          Date displayDate)
Specified by:
readContentSpecified in interface ContentDao

saveContent

public Content saveContent(Content content)
Specified by:
saveContent in interface ContentDao

saveContent

public List<Content> saveContent(List<Content> contentList)
Specified by:
saveContent in interface ContentDao

readStagedContent

public List<Content> readStagedContent()
Specified by:
readStagedContent in interface ContentDao

readAllContent

public List<Content> readAllContent()
Specified by:
readAllContent in interface ContentDao


Copyright © 2012. All Rights Reserved.