com.atlassian.jira.issue.customfields.persistence
Interface CustomFieldValuePersister

All Known Implementing Classes:
EagerLoadingOfBizCustomFieldPersister, OfBizCustomFieldValuePersister

public interface CustomFieldValuePersister


Method Summary
 void createValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection value)
           
 void createValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, Collection values, String parentKey)
           
 Set<Long> getIssueIdsWithValue(CustomField field, PersistenceFieldType persistenceFieldType, Object value)
          Return a set of issue ids that have a certain value.
 List getValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType)
           
 List getValues(CustomField field, Long issueId, PersistenceFieldType persistenceFieldType, String parentKey)
           
 Set removeAllValues(CustomField customField)
          Deprecated. Use removeAllValues(String) instead
 Set<Long> 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)
           
 

Method Detail

createValues

void createValues(CustomField field,
                  Long issueId,
                  PersistenceFieldType persistenceFieldType,
                  Collection value)

createValues

void createValues(CustomField field,
                  Long issueId,
                  PersistenceFieldType persistenceFieldType,
                  Collection values,
                  String parentKey)

updateValues

void updateValues(CustomField field,
                  Long issueId,
                  PersistenceFieldType persistenceFieldType,
                  Collection values)

updateValues

void updateValues(CustomField field,
                  Long issueId,
                  PersistenceFieldType persistenceFieldType,
                  Collection values,
                  String parentKey)

removeValue

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.

Parameters:
field - the custom field.
issueId - the issue.
persistenceFieldType - the data type of the value
value - the value to delete.
Returns:
returns the set of ids of issues that were affected for some reason (should be 1, just the given issue!).

getValues

List getValues(CustomField field,
               Long issueId,
               PersistenceFieldType persistenceFieldType)

getValues

List getValues(CustomField field,
               Long issueId,
               PersistenceFieldType persistenceFieldType,
               String parentKey)

getIssueIdsWithValue

Set<Long> getIssueIdsWithValue(CustomField field,
                               PersistenceFieldType persistenceFieldType,
                               Object value)
Return a set of issue ids that have a certain value. This is used when you need to do a global 'swap' of a certain custom field value.

Parameters:
field - CustomField
persistenceFieldType - PersistenceFieldType
value - Value object
Returns:
Set of Issue IDs

removeAllValues

Set<Long> removeAllValues(String customFieldId)
Called when removing a field. Removes all the customfield values linked to the customfield Id provided.

Parameters:
customFieldId - the id of the custom field
Returns:
issue IDs affected.

removeAllValues

Set removeAllValues(CustomField customField)
Deprecated. Use removeAllValues(String) instead

Parameters:
customField - the custom field
Returns:
issue IDs affected
See Also:
removeAllValues(String)


Copyright © 2002-2011 Atlassian. All Rights Reserved.