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) |
static Integer |
getCacheSize(JiraProperties properties) |
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, removeDuplicateValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValuesgetIdentitypublic 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 CustomFieldValuePersistercreateValues in class OfBizCustomFieldValuePersisterpublic void createValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection values, String parentKey)
createValues in interface CustomFieldValuePersistercreateValues in class OfBizCustomFieldValuePersisterpublic void updateValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection values)
updateValues in interface CustomFieldValuePersisterupdateValues in class OfBizCustomFieldValuePersisterpublic void updateValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection values, String parentKey)
updateValues in interface CustomFieldValuePersisterupdateValues in class OfBizCustomFieldValuePersisterpublic Set<Long> removeValue(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Object value)
CustomFieldValuePersisterremoveValue in interface CustomFieldValuePersisterremoveValue in class OfBizCustomFieldValuePersisterfield - the custom field.issueId - the issue.persistenceFieldType - the data type of the valuevalue - the value to delete.public Set removeAllValues(String customFieldId)
CustomFieldValuePersisterremoveAllValues in interface CustomFieldValuePersisterremoveAllValues in class OfBizCustomFieldValuePersistercustomFieldId - the id of the custom fieldpublic Map<Long,List<CustomFieldValue>> getValues(Set<Long> issueIds)
CustomFieldValuePersistergetValues in interface CustomFieldValuePersistergetValues in class OfBizCustomFieldValuePersisterpublic void clearCache()
protected List<org.ofbiz.core.entity.GenericValue> getValuesForTypeAndParent(CustomField field, Long issueId, String parentKey)
getValuesForTypeAndParent in class OfBizCustomFieldValuePersisterprotected List<org.ofbiz.core.entity.GenericValue> getValuesForType(CustomField field, Long issueId)
getValuesForType in class OfBizCustomFieldValuePersisterpublic static Integer getCacheSize(JiraProperties properties)
Copyright © 2002-2023 Atlassian. All Rights Reserved.