Interface CustomFieldDao
- All Known Implementing Classes:
CustomFieldDaoImpl
public interface CustomFieldDao
Data Access Object for retrieving information regarding custom fields.
- Author:
- Jeff Fischer
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionreadAllowedValuesForCustomField(CustomField customField) Returns the allowedEnumValues for the given custom fieldreadIsMultiValueByPropertyName(String propertyName, String targetEntityName) Returns whether the associated CustomField is marked as allowMultiValueSelectReturns all knownCustomFieldsretrieveByFriendlyName(String friendlyName, String targetEntityName) Get a list of custom fields for the given friendly name and target entityretrieveById(Long id) Get the custom field via its primary key valueretrieveByName(String propertyName, String friendlyName, String targetEntityName) Get a list of custom fields via the attribute name.retrieveByPropertyName(String propertyName, String targetEntityName) Get a list of custom fields for the given property name and target entityretrieveByTargetEntityName(String targetEntityName) Get a list of custom fields via the target entity name.save(CustomField customField) Persists the given customField and returns the persisted version
-
Method Details
-
retrieveById
Get the custom field via its primary key value- Parameters:
id- the primary key value- Returns:
- the custom field instance
-
retrieveByTargetEntityName
Get a list of custom fields via the target entity name. The target entity is the fully qualified class name of the entity type that contains the attribute map for list of returned custom fields.- Parameters:
targetEntityName- the entity type that contains the attribute map for the custom fields.- Returns:
- the custom field instances that are related to the target entity type.
-
retrieveByName
Get a list of custom fields via the attribute name.- Parameters:
propertyName- the property name for a custom fieldfriendlyName- the user visible name for the fieldtargetEntityName- the entity type that contains the attribute map for the custom fields.- Returns:
- the custom field instances
-
retrieveByFriendlyName
Get a list of custom fields for the given friendly name and target entity- Parameters:
friendlyName- the friendly name of the custom field to retrievetargetEntityName- the target entity for the custom field to retrieve- Returns:
-
retrieveByPropertyName
Get a list of custom fields for the given property name and target entity- Parameters:
propertyName- the property name of the custom field to retreivetargetEntityName- the target entity for the custom field to retrieve- Returns:
-
retrieveAll
List<CustomField> retrieveAll()Returns all knownCustomFields- Returns:
- all known
CustomFields
-
save
Persists the given customField and returns the persisted version- Parameters:
customField-- Returns:
- the persisted version
-
readAllowedValuesForCustomField
Returns the allowedEnumValues for the given custom field- Parameters:
customField-- Returns:
-
readIsMultiValueByPropertyName
Returns whether the associated CustomField is marked as allowMultiValueSelect- Parameters:
propertyName-targetEntityName-- Returns:
-