Class IndexFieldDaoImpl
java.lang.Object
org.broadleafcommerce.core.search.dao.IndexFieldDaoImpl
- All Implemented Interfaces:
IndexFieldDao
@Repository("blIndexFieldDao")
public class IndexFieldDaoImpl
extends Object
implements IndexFieldDao
- Author:
- Nick Crum (ncrum)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected jakarta.persistence.EntityManagerprotected EntityConfiguration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIndexFieldTypes(FieldType facetFieldType) getIndexFieldTypesByAbbreviation(String abbreviation) getIndexFieldTypesByAbbreviationAndEntityType(String abbreviation, FieldEntity entityType) readAllIndexFieldsByFieldId(Long fieldId) Finds all of theIndexFields associated with the given field parameter, or null if non exists.readFieldsByEntityType(FieldEntity entityType) Finds all of theIndexFields based on the entity type.readIndexFieldByAbbreviation(String abbreviation) readIndexFieldByAbbreviationAndEntityType(String abbreviation, FieldEntity entityType) readIndexFieldByFieldId(Long fieldId) Returns the IndexField instance associated with the given field parameter, or null if non exists.readIndexFieldForField(Field field) Returns the IndexField instance associated with the given field parameter, or null if non exists.readSearchableFieldsByEntityType(FieldEntity entityType) Reads all of theIndexFields that are searchable on the entity type
-
Field Details
-
em
protected jakarta.persistence.EntityManager em -
entityConfiguration
-
-
Constructor Details
-
IndexFieldDaoImpl
public IndexFieldDaoImpl()
-
-
Method Details
-
readIndexFieldForField
Description copied from interface:IndexFieldDaoReturns the IndexField instance associated with the given field parameter, or null if non exists.- Specified by:
readIndexFieldForFieldin interfaceIndexFieldDao- Parameters:
field- the Field we are looking for the IndexField for- Returns:
- a IndexField instance for the given field
-
readIndexFieldByFieldId
Description copied from interface:IndexFieldDaoReturns the IndexField instance associated with the given field parameter, or null if non exists.- Specified by:
readIndexFieldByFieldIdin interfaceIndexFieldDao- Parameters:
fieldId- the Field we are looking for the IndexField for- Returns:
- a IndexField instance for the given field
-
readAllIndexFieldsByFieldId
Description copied from interface:IndexFieldDaoFinds all of theIndexFields associated with the given field parameter, or null if non exists.- Specified by:
readAllIndexFieldsByFieldIdin interfaceIndexFieldDao- Parameters:
fieldId- the Field we are looking for the IndexField for- Returns:
-
readFieldsByEntityType
Description copied from interface:IndexFieldDaoFinds all of theIndexFields based on the entity type.- Specified by:
readFieldsByEntityTypein interfaceIndexFieldDao- Returns:
-
readSearchableFieldsByEntityType
Description copied from interface:IndexFieldDaoReads all of theIndexFields that are searchable on the entity type- Specified by:
readSearchableFieldsByEntityTypein interfaceIndexFieldDao- Returns:
-
getIndexFieldTypesByAbbreviation
- Specified by:
getIndexFieldTypesByAbbreviationin interfaceIndexFieldDao
-
getIndexFieldTypesByAbbreviationAndEntityType
public List<IndexFieldType> getIndexFieldTypesByAbbreviationAndEntityType(String abbreviation, FieldEntity entityType) - Specified by:
getIndexFieldTypesByAbbreviationAndEntityTypein interfaceIndexFieldDao
-
getIndexFieldTypesByAbbreviationOrPropertyName
- Specified by:
getIndexFieldTypesByAbbreviationOrPropertyNamein interfaceIndexFieldDao
-
getIndexFieldTypes
- Specified by:
getIndexFieldTypesin interfaceIndexFieldDao
-
readIndexFieldByAbbreviation
- Specified by:
readIndexFieldByAbbreviationin interfaceIndexFieldDao
-
readIndexFieldByAbbreviationAndEntityType
public IndexField readIndexFieldByAbbreviationAndEntityType(String abbreviation, FieldEntity entityType) - Specified by:
readIndexFieldByAbbreviationAndEntityTypein interfaceIndexFieldDao
-