org.broadleafcommerce.core.search.dao
Class FieldDaoImpl

java.lang.Object
  extended by org.broadleafcommerce.core.search.dao.FieldDaoImpl
All Implemented Interfaces:
FieldDao

@Repository(value="blFieldDao")
public class FieldDaoImpl
extends Object
implements FieldDao


Field Summary
protected  javax.persistence.EntityManager em
           
protected  EntityConfiguration entityConfiguration
           
 
Constructor Summary
FieldDaoImpl()
           
 
Method Summary
 List<Field> readAllProductFields()
          Reads all Field objects that are set to searchable.
 Field readFieldByAbbreviation(String abbreviation)
          Given an abbreviation, returns the Field object that maps to this abbreviation.
 
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

FieldDaoImpl

public FieldDaoImpl()
Method Detail

readFieldByAbbreviation

public Field readFieldByAbbreviation(String abbreviation)
Description copied from interface: FieldDao
Given an abbreviation, returns the Field object that maps to this abbreviation. Note that the default Broadleaf implementation of Field will enforce a uniqueness constraint on the abbreviation field and this method will reliably return one field

Specified by:
readFieldByAbbreviation in interface FieldDao
Returns:
the Field that has this abbreviation

readAllProductFields

public List<Field> readAllProductFields()
Description copied from interface: FieldDao
Reads all Field objects that are set to searchable. This is typically used to build an index for searching. Note that the default Broadleaf implementation returns only fields that have a FieldEntity equal to PRODUCT

Specified by:
readAllProductFields in interface FieldDao
Returns:
the product Fields


Copyright © 2012. All Rights Reserved.