public class EagerLoadingOfBizCustomFieldPersister extends OfBizCustomFieldValuePersister
It therefore makes sense to eagerly loaded, reducing the number of database calls needed.
DEFAULT_VALUE_ISSUE_ID, DEFAULT_VALUE_TYPE, delegator, ENTITY_CUSTOMFIELD_ID, ENTITY_ISSUE_ID, ENTITY_PARENT_KEY, ENTITY_VALUE_TYPE, FIELD_TYPE_DATE, FIELD_TYPE_NUMBER, FIELD_TYPE_STRING, FIELD_TYPE_TEXT, TABLE_CUSTOMFIELD_VALUE
Constructor and Description |
---|
EagerLoadingOfBizCustomFieldPersister(OfBizDelegator delegator,
com.atlassian.core.util.Clock clock,
JiraProperties properties) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
void |
createValues(CustomField field,
Long issueId,
PersistenceFieldType persistenceFieldType,
Collection values) |
void |
createValues(CustomField field,
Long issueId,
PersistenceFieldType persistenceFieldType,
Collection values,
String parentKey) |
Map<Long,List<CustomFieldValue>> |
getValues(Set<Long> issueIds)
Return custom field values of given issues batch.
|
protected List<org.ofbiz.core.entity.GenericValue> |
getValuesForType(CustomField field,
Long issueId) |
protected List<org.ofbiz.core.entity.GenericValue> |
getValuesForTypeAndParent(CustomField field,
Long issueId,
String parentKey) |
Set |
removeAllValues(String customFieldId)
Called when removing a field.
|
Set<Long> |
removeValue(CustomField field,
Long issueId,
PersistenceFieldType persistenceFieldType,
Object value)
Removes a specific custom field value for the given custom field, from a given issue, of a particular type.
|
void |
updateValues(CustomField field,
Long issueId,
PersistenceFieldType persistenceFieldType,
Collection values) |
void |
updateValues(CustomField field,
Long issueId,
PersistenceFieldType persistenceFieldType,
Collection values,
String parentKey) |
getIssueIdsWithValue, getValues, getValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getValues
getIdentity
public EagerLoadingOfBizCustomFieldPersister(OfBizDelegator delegator, com.atlassian.core.util.Clock clock, JiraProperties properties)
public void createValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection values)
createValues
in interface CustomFieldValuePersister
createValues
in class OfBizCustomFieldValuePersister
public void createValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection values, String parentKey)
createValues
in interface CustomFieldValuePersister
createValues
in class OfBizCustomFieldValuePersister
public void updateValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection values)
updateValues
in interface CustomFieldValuePersister
updateValues
in class OfBizCustomFieldValuePersister
public void updateValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection values, String parentKey)
updateValues
in interface CustomFieldValuePersister
updateValues
in class OfBizCustomFieldValuePersister
public Set<Long> removeValue(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Object value)
CustomFieldValuePersister
removeValue
in interface CustomFieldValuePersister
removeValue
in class OfBizCustomFieldValuePersister
field
- the custom field.issueId
- the issue.persistenceFieldType
- the data type of the valuevalue
- the value to delete.public Set removeAllValues(String customFieldId)
CustomFieldValuePersister
removeAllValues
in interface CustomFieldValuePersister
removeAllValues
in class OfBizCustomFieldValuePersister
customFieldId
- the id of the custom fieldpublic Map<Long,List<CustomFieldValue>> getValues(Set<Long> issueIds)
CustomFieldValuePersister
getValues
in interface CustomFieldValuePersister
getValues
in class OfBizCustomFieldValuePersister
public void clearCache()
protected List<org.ofbiz.core.entity.GenericValue> getValuesForTypeAndParent(CustomField field, Long issueId, String parentKey)
getValuesForTypeAndParent
in class OfBizCustomFieldValuePersister
protected List<org.ofbiz.core.entity.GenericValue> getValuesForType(CustomField field, Long issueId)
getValuesForType
in class OfBizCustomFieldValuePersister
Copyright © 2002-2021 Atlassian. All Rights Reserved.