@Repository(value="blCustomFieldDao") public class CustomFieldDaoImpl extends Object implements CustomFieldDao
| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
protected com.broadleafcommerce.enterprise.common.extension.customfield.CustomFieldQueryExtensionManager |
extensionManager |
| Constructor and Description |
|---|
CustomFieldDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected List<CustomField> |
filterResults(List<CustomField> results) |
protected List<String> |
getEntityTypeLookups(String targetEntityName) |
List<AllowedEnumValue> |
readAllowedValuesForCustomField(CustomField customField)
Returns the allowedEnumValues for the given custom field
|
Boolean |
readIsMultiValueByPropertyName(String propertyName,
String targetEntityName)
Returns whether the associated CustomField is marked as allowMultiValueSelect
|
List<CustomField> |
retrieveAll()
Returns all known
CustomFields |
List<CustomField> |
retrieveByFriendlyName(String friendlyName,
String targetEntityName)
Get a list of custom fields for the given friendly name and target entity
|
CustomField |
retrieveById(Long id)
Get the custom field via its primary key value
|
List<CustomField> |
retrieveByName(String propertyName,
String friendlyName,
String targetEntityName)
Get a list of custom fields via the attribute name.
|
List<CustomField> |
retrieveByPropertyName(String propertyName,
String targetEntityName)
Get a list of custom fields for the given property name and target entity
|
List<CustomField> |
retrieveByTargetEntityName(String targetEntityName)
Get a list of custom fields via the target entity name.
|
CustomField |
save(CustomField customField)
Persists the given customField and returns the persisted version
|
protected javax.persistence.EntityManager em
protected com.broadleafcommerce.enterprise.common.extension.customfield.CustomFieldQueryExtensionManager extensionManager
public CustomField retrieveById(Long id)
CustomFieldDaoretrieveById in interface CustomFieldDaoid - the primary key valuepublic CustomField save(CustomField customField)
CustomFieldDaosave in interface CustomFieldDaopublic List<AllowedEnumValue> readAllowedValuesForCustomField(CustomField customField)
CustomFieldDaoreadAllowedValuesForCustomField in interface CustomFieldDaopublic List<CustomField> retrieveAll()
CustomFieldDaoCustomFieldsretrieveAll in interface CustomFieldDaoCustomFieldspublic List<CustomField> retrieveByTargetEntityName(String targetEntityName)
CustomFieldDaoretrieveByTargetEntityName in interface CustomFieldDaotargetEntityName - the entity type that contains the attribute map for the custom fields.public List<CustomField> retrieveByName(String propertyName, String friendlyName, String targetEntityName)
CustomFieldDaoretrieveByName in interface CustomFieldDaopropertyName - the attribute name for a custom fieldfriendlyName - the user visible name for the fieldtargetEntityName - the entity type that contains the attribute map for the custom fields.public List<CustomField> retrieveByFriendlyName(String friendlyName, String targetEntityName)
CustomFieldDaoretrieveByFriendlyName in interface CustomFieldDaofriendlyName - the friendly name of the custom field to retrievetargetEntityName - the target entity for the custom field to retrievepublic List<CustomField> retrieveByPropertyName(String propertyName, String targetEntityName)
CustomFieldDaoretrieveByPropertyName in interface CustomFieldDaopropertyName - the property name of the custom field to retreivetargetEntityName - the target entity for the custom field to retrievepublic Boolean readIsMultiValueByPropertyName(String propertyName, String targetEntityName)
CustomFieldDaoreadIsMultiValueByPropertyName in interface CustomFieldDaoprotected List<CustomField> filterResults(List<CustomField> results)
Copyright © 2020. All rights reserved.