org.broadleafcommerce.core.search.dao
Class FieldDaoImpl
java.lang.Object
org.broadleafcommerce.core.search.dao.FieldDaoImpl
- All Implemented Interfaces:
- FieldDao
@Repository(value="blFieldDao")
public class FieldDaoImpl
- extends Object
- implements FieldDao
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
em
protected javax.persistence.EntityManager em
entityConfiguration
protected EntityConfiguration entityConfiguration
FieldDaoImpl
public FieldDaoImpl()
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 © 2013. All Rights Reserved.