Class FieldDaoImpl
java.lang.Object
org.broadleafcommerce.core.search.dao.FieldDaoImpl
- All Implemented Interfaces:
FieldDao
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.persistence.EntityManagerprotected org.broadleafcommerce.common.persistence.EntityConfiguration -
Constructor Summary
Constructors -
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.
-
Field Details
-
em
protected jakarta.persistence.EntityManager em -
entityConfiguration
protected org.broadleafcommerce.common.persistence.EntityConfiguration entityConfiguration
-
-
Constructor Details
-
FieldDaoImpl
public FieldDaoImpl()
-
-
Method Details
-
readFieldByAbbreviation
Description copied from interface:FieldDaoGiven 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:
readFieldByAbbreviationin interfaceFieldDao- Returns:
- the Field that has this abbreviation
-
readAllProductFields
- Specified by:
readAllProductFieldsin interfaceFieldDao
-
readAllSkuFields
- Specified by:
readAllSkuFieldsin interfaceFieldDao
-
readFieldsByEntityType
Description copied from interface:FieldDaoFinds all fields based on the entity type.- Specified by:
readFieldsByEntityTypein interfaceFieldDao- Returns:
-
save
Description copied from interface:FieldDaoPersist an instance to the data layer.
-