Class FieldDaoImpl

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

@Repository("blFieldDao") public class FieldDaoImpl extends Object implements FieldDao
  • Field Details

    • em

      protected jakarta.persistence.EntityManager em
    • entityConfiguration

      protected EntityConfiguration entityConfiguration
  • Constructor Details

    • FieldDaoImpl

      public FieldDaoImpl()
  • Method Details

    • 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()
      Specified by:
      readAllProductFields in interface FieldDao
    • readAllSkuFields

      public List<Field> readAllSkuFields()
      Specified by:
      readAllSkuFields in interface FieldDao
    • readFieldsByEntityType

      public List<Field> readFieldsByEntityType(FieldEntity entityType)
      Description copied from interface: FieldDao
      Finds all fields based on the entity type.
      Specified by:
      readFieldsByEntityType in interface FieldDao
      Returns:
    • save

      public Field save(Field field)
      Description copied from interface: FieldDao
      Persist an instance to the data layer.
      Specified by:
      save in interface FieldDao
      Parameters:
      field - the instance to persist
      Returns:
      the instance after it has been persisted