Interface FieldDao

All Known Implementing Classes:
FieldDaoImpl

public interface FieldDao
DAO to facilitate interaction with Broadleaf fields.
Author:
Andre Azzolini (apazzolini)
  • Method Details

    • readFieldByAbbreviation

      Field readFieldByAbbreviation(String abbreviation)
      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
      Parameters:
      abbreviation -
      Returns:
      the Field that has this abbreviation
    • readAllProductFields

      List<Field> readAllProductFields()
    • readAllSkuFields

      List<Field> readAllSkuFields()
    • readFieldsByEntityType

      List<Field> readFieldsByEntityType(FieldEntity entityType)
      Finds all fields based on the entity type.
      Parameters:
      entityType -
      Returns:
    • save

      Field save(Field field)
      Persist an instance to the data layer.
      Parameters:
      field - the instance to persist
      Returns:
      the instance after it has been persisted