Interface JpaAttributeService
- All Known Implementing Classes:
JpaAttributeServiceImpl
public interface JpaAttributeService
-
Method Summary
Modifier and TypeMethodDescriptioncreate(String name, AttributeTypeName type, UUID dataSetListId) create(String name, AttributeTypeName type, UUID dataSetListId, UUID typeDataSetListId, List<String> listValues) createListValue(String text, UUID attributeId) createListValueWithoutCommitting(String text, UUID attributeId) createWithoutCommitting(String name, AttributeTypeName type, UUID dataSetListId) getAttributeKeyByKeyAndDataSetListIdAndDataSetIdAndAttributeId(String key, UUID dataSetListId, UUID datasetId, UUID attributeId) getAttributeKeysByDatasetListId(UUID dataSetListId) getAttrKeyBySourceIdAndDataSetListId(UUID sourceId, UUID dataSetListId) getByDataSetListId(UUID dataSetListId) getByDataSetListIdIn(Collection<UUID> dataSetListIds) getByNameAndDataSetListId(String name, UUID dataSetListId) getBySourceIdAndDataSetListId(UUID sourceId, UUID dataSetListId) getListValueByAttributeIdAndValue(UUID attributeId, String value) getListValueById(UUID id) getListValueBySourceIdAndAttrId(UUID sourceId, UUID attributeId) getListValuesByAttributeId(UUID attributeId) voidmergeListValues(UUID sourceAttributeId, UUID targetAttributeId) Merge values from the source ListValue to the right ListValue.mergeListValuesAndGetListValueReference(UUID sourceAttrId, UUID targetAttrId, ListValueEntity sourceListValue) Merge values from the source ListValue to the target ListValue.voidvoidvoidreplicateAttributeKey(UUID id, String key, UUID attribute, UUID dataSet, UUID dataSetList, UUID sourceId) replicateListValue(UUID id, String text, UUID attributeId, UUID sourceId) voidsave(AbstractObjectWrapper attribute) voidsetPosition(UUID attributeId, Integer position) voidsetReferencedDataSetList(UUID attributeId, UUID dataSetListId)
-
Method Details
-
create
-
create
-
createWithoutCommitting
-
replicate
Attribute replicate(UUID id, String name, AttributeTypeName type, UUID dataSetListId, UUID sourceId) throws DataSetServiceException - Throws:
DataSetServiceException
-
createListValue
-
createListValueWithoutCommitting
-
replicateListValue
ListValue replicateListValue(UUID id, String text, UUID attributeId, UUID sourceId) throws DataSetServiceException - Throws:
DataSetServiceException
-
setReferencedDataSetList
-
remove
-
save
-
removeAttributeKey
-
replicateAttributeKey
AttributeKey replicateAttributeKey(UUID id, String key, UUID attribute, UUID dataSet, UUID dataSetList, UUID sourceId) throws DataSetServiceException - Throws:
DataSetServiceException
-
getById
-
getAttributeKeyById
-
getAttributeKeysByDatasetListId
-
removeListValuesByAttributeId
-
getListValueById
-
getListValueByAttributeIdAndValue
-
getListValuesByAttributeId
-
setPosition
-
getByNameAndDataSetListId
-
getByDataSetListId
-
getByDataSetListIdIn
-
getBySourceIdAndDataSetListId
-
getAttrKeyBySourceIdAndDataSetListId
-
getAttributeKeyByKeyAndDataSetListIdAndDataSetIdAndAttributeId
AttributeKey getAttributeKeyByKeyAndDataSetListIdAndDataSetIdAndAttributeId(String key, UUID dataSetListId, UUID datasetId, UUID attributeId) -
getListValueBySourceIdAndAttrId
-
getFoundedAttributeKeyIdAndDatasetIdUpdate
Map<UUID,AttributeKeyIdsDbUpdate> getFoundedAttributeKeyIdAndDatasetIdUpdate() -
mergeListValuesAndGetListValueReference
UUID mergeListValuesAndGetListValueReference(UUID sourceAttrId, UUID targetAttrId, @Nullable ListValueEntity sourceListValue) Merge values from the source ListValue to the target ListValue.- Parameters:
sourceAttrId- source attribute idtargetAttrId- target attribute idsourceListValue- value in source ListValue- Returns:
- Returns the Id of the ListValue from the result list whose value matches the sourceListValue. If sourceListValue is null return null
-
mergeListValues
Merge values from the source ListValue to the right ListValue.- Parameters:
sourceAttributeId- source Attribute IdtargetAttributeId- target Attribute Id
-