org.broadleafcommerce.cms.structure.dao
Class StructuredContentDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.cms.structure.dao.StructuredContentDaoImpl
All Implemented Interfaces:
StructuredContentDao

@Repository(value="blStructuredContentDao")
public class StructuredContentDaoImpl
extends java.lang.Object
implements StructuredContentDao

Created by bpolster.


Field Summary
protected  javax.persistence.EntityManager em
           
protected  EntityConfiguration entityConfiguration
           
 
Constructor Summary
StructuredContentDaoImpl()
           
 
Method Summary
 StructuredContent addOrUpdateContentItem(StructuredContent content)
           
 void delete(StructuredContent content)
           
 void detach(StructuredContent sc)
           
 java.util.List<StructuredContent> findActiveStructuredContentByNameAndType(SandBox sandBox, StructuredContentType type, java.lang.String name, Locale locale)
           
 java.util.List<StructuredContent> findActiveStructuredContentByType(SandBox sandBox, StructuredContentType type, Locale locale)
           
 StructuredContent findStructuredContentById(java.lang.Long contentId)
           
 StructuredContentType findStructuredContentTypeById(java.lang.Long contentTypeId)
           
 StructuredContentType findStructuredContentTypeByName(java.lang.String name)
           
 java.util.Map<java.lang.String,StructuredContentField> readFieldsForStructuredContentItem(StructuredContent sc)
           
 java.util.List<StructuredContentType> retrieveAllStructuredContentTypes()
           
 
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
Constructor Detail

StructuredContentDaoImpl

public StructuredContentDaoImpl()
Method Detail

findStructuredContentById

public StructuredContent findStructuredContentById(java.lang.Long contentId)
Specified by:
findStructuredContentById in interface StructuredContentDao

findStructuredContentTypeById

public StructuredContentType findStructuredContentTypeById(java.lang.Long contentTypeId)
Specified by:
findStructuredContentTypeById in interface StructuredContentDao

retrieveAllStructuredContentTypes

public java.util.List<StructuredContentType> retrieveAllStructuredContentTypes()
Specified by:
retrieveAllStructuredContentTypes in interface StructuredContentDao

readFieldsForStructuredContentItem

public java.util.Map<java.lang.String,StructuredContentField> readFieldsForStructuredContentItem(StructuredContent sc)
Specified by:
readFieldsForStructuredContentItem in interface StructuredContentDao

addOrUpdateContentItem

public StructuredContent addOrUpdateContentItem(StructuredContent content)
Specified by:
addOrUpdateContentItem in interface StructuredContentDao

delete

public void delete(StructuredContent content)
Specified by:
delete in interface StructuredContentDao

findActiveStructuredContentByType

public java.util.List<StructuredContent> findActiveStructuredContentByType(SandBox sandBox,
                                                                           StructuredContentType type,
                                                                           Locale locale)
Specified by:
findActiveStructuredContentByType in interface StructuredContentDao

findActiveStructuredContentByNameAndType

public java.util.List<StructuredContent> findActiveStructuredContentByNameAndType(SandBox sandBox,
                                                                                  StructuredContentType type,
                                                                                  java.lang.String name,
                                                                                  Locale locale)
Specified by:
findActiveStructuredContentByNameAndType in interface StructuredContentDao

findStructuredContentTypeByName

public StructuredContentType findStructuredContentTypeByName(java.lang.String name)
Specified by:
findStructuredContentTypeByName in interface StructuredContentDao

detach

public void detach(StructuredContent sc)
Specified by:
detach in interface StructuredContentDao


Copyright © 2011. All Rights Reserved.