Interface FieldDao
- All Known Implementing Classes:
FieldDaoImpl
public interface FieldDao
DAO to facilitate interaction with Broadleaf fields.
- Author:
- Andre Azzolini (apazzolini)
-
Method Summary
Modifier and TypeMethodDescriptionreadFieldByAbbreviation(String abbreviation) Given an abbreviation, returns the Field object that maps to this abbreviation.readFieldsByEntityType(FieldEntity entityType) Finds all fields based on the entity type.Persist an instance to the data layer.
-
Method Details
-
readFieldByAbbreviation
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
-
readAllSkuFields
-
readFieldsByEntityType
Finds all fields based on the entity type.- Parameters:
entityType-- Returns:
-
save
Persist an instance to the data layer.- Parameters:
field- the instance to persist- Returns:
- the instance after it has been persisted
-