com.atlassian.jira.issue.customfields.persistence
Class OfBizCustomFieldPersister
java.lang.Object
com.atlassian.jira.issue.customfields.persistence.OfBizCustomFieldPersister
- All Implemented Interfaces:
- CustomFieldPersister
- public class OfBizCustomFieldPersister
- extends java.lang.Object
- implements CustomFieldPersister
Method Summary |
void |
createValues(CustomField field,
java.lang.Long issueId,
java.lang.String defaultValueMarker,
PersistenceFieldType persistenceFieldType,
java.util.Collection values)
|
void |
createValues(CustomField field,
java.lang.Long issueId,
java.lang.String defaultValueMarker,
PersistenceFieldType persistenceFieldType,
java.util.Collection values,
java.lang.String parentKey)
|
java.util.List |
getDefaultValues(CustomField field,
PersistenceFieldType persistenceFieldType)
|
java.util.List |
getDefaultValuesForParent(CustomField field,
PersistenceFieldType persistenceFieldType,
java.lang.String parentKey)
|
java.util.Set |
getIssueIdsWithValue(CustomField field,
PersistenceFieldType persistenceFieldType,
java.lang.Object value)
Return a set of issue ids that have a certain value. |
java.util.List |
getSupportedDatabaseTypes()
|
java.util.List |
getValues(CustomField field,
java.lang.Long issueId,
java.lang.String type,
PersistenceFieldType persistenceFieldType)
|
java.util.List |
getValues(CustomField field,
java.lang.Long issueId,
java.lang.String type,
PersistenceFieldType persistenceFieldType,
java.lang.String parentKey)
|
void |
removeAllDefaultValues(CustomField field,
PersistenceFieldType persistenceFieldType)
|
java.util.Set |
removeAllValues(CustomField field)
called when removing a field. |
java.util.Set |
removeValue(CustomField field,
java.lang.Long issueId,
java.lang.String defaultValueMarker,
PersistenceFieldType persistenceFieldType,
java.lang.Object value)
|
void |
setDefaultValues(CustomField field,
PersistenceFieldType persistenceFieldType,
java.util.Collection values,
java.lang.String parentKey)
|
void |
updateValues(CustomField field,
java.lang.Long issueId,
java.lang.String defaultValueMarker,
PersistenceFieldType persistenceFieldType,
java.util.Collection values)
|
void |
updateValues(CustomField field,
java.lang.Long issueId,
java.lang.String defaultValueMarker,
PersistenceFieldType persistenceFieldType,
java.util.Collection values,
java.lang.String parentKey)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
delegator
protected final OfBizDelegator delegator
ENTITY_VALUE_TYPE
public static final java.lang.String ENTITY_VALUE_TYPE
- See Also:
- Constant Field Values
ENTITY_ISSUE_ID
protected static final java.lang.String ENTITY_ISSUE_ID
- See Also:
- Constant Field Values
ENTITY_CUSTOMFIELD_ID
protected static final java.lang.String ENTITY_CUSTOMFIELD_ID
- See Also:
- Constant Field Values
ENTITY_PARENT_KEY
protected static final java.lang.String ENTITY_PARENT_KEY
- See Also:
- Constant Field Values
DEFAULT_VALUE_TYPE
public static final java.lang.String DEFAULT_VALUE_TYPE
- See Also:
- Constant Field Values
FIELD_TYPE_STRING
public static final java.lang.String FIELD_TYPE_STRING
- See Also:
- Constant Field Values
FIELD_TYPE_TEXT
public static final java.lang.String FIELD_TYPE_TEXT
- See Also:
- Constant Field Values
FIELD_TYPE_DATE
public static final java.lang.String FIELD_TYPE_DATE
- See Also:
- Constant Field Values
FIELD_TYPE_NUMBER
public static final java.lang.String FIELD_TYPE_NUMBER
- See Also:
- Constant Field Values
TABLE_CUSTOMFIELD_VALUE
protected static final java.lang.String TABLE_CUSTOMFIELD_VALUE
- See Also:
- Constant Field Values
DEFAULT_VALUE_ISSUE_ID
public static final java.lang.Long DEFAULT_VALUE_ISSUE_ID
OfBizCustomFieldPersister
public OfBizCustomFieldPersister(OfBizDelegator delegator)
getValues
public java.util.List getValues(CustomField field,
java.lang.Long issueId,
java.lang.String type,
PersistenceFieldType persistenceFieldType)
- Specified by:
getValues
in interface CustomFieldPersister
getValues
public java.util.List getValues(CustomField field,
java.lang.Long issueId,
java.lang.String type,
PersistenceFieldType persistenceFieldType,
java.lang.String parentKey)
- Specified by:
getValues
in interface CustomFieldPersister
getIssueIdsWithValue
public java.util.Set getIssueIdsWithValue(CustomField field,
PersistenceFieldType persistenceFieldType,
java.lang.Object value)
- Description copied from interface:
CustomFieldPersister
- 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
- Specified by:
getIssueIdsWithValue
in interface CustomFieldPersister
getSupportedDatabaseTypes
public java.util.List getSupportedDatabaseTypes()
- Specified by:
getSupportedDatabaseTypes
in interface CustomFieldPersister
createValues
public void createValues(CustomField field,
java.lang.Long issueId,
java.lang.String defaultValueMarker,
PersistenceFieldType persistenceFieldType,
java.util.Collection values)
- Specified by:
createValues
in interface CustomFieldPersister
createValues
public void createValues(CustomField field,
java.lang.Long issueId,
java.lang.String defaultValueMarker,
PersistenceFieldType persistenceFieldType,
java.util.Collection values,
java.lang.String parentKey)
- Specified by:
createValues
in interface CustomFieldPersister
updateValues
public void updateValues(CustomField field,
java.lang.Long issueId,
java.lang.String defaultValueMarker,
PersistenceFieldType persistenceFieldType,
java.util.Collection values)
- Specified by:
updateValues
in interface CustomFieldPersister
updateValues
public void updateValues(CustomField field,
java.lang.Long issueId,
java.lang.String defaultValueMarker,
PersistenceFieldType persistenceFieldType,
java.util.Collection values,
java.lang.String parentKey)
- Specified by:
updateValues
in interface CustomFieldPersister
removeValue
public java.util.Set removeValue(CustomField field,
java.lang.Long issueId,
java.lang.String defaultValueMarker,
PersistenceFieldType persistenceFieldType,
java.lang.Object value)
- Specified by:
removeValue
in interface CustomFieldPersister
removeAllValues
public java.util.Set removeAllValues(CustomField field)
- Description copied from interface:
CustomFieldPersister
- called when removing a field.
return issue IDs affected.
- Specified by:
removeAllValues
in interface CustomFieldPersister
setDefaultValues
public void setDefaultValues(CustomField field,
PersistenceFieldType persistenceFieldType,
java.util.Collection values,
java.lang.String parentKey)
- Specified by:
setDefaultValues
in interface CustomFieldPersister
removeAllDefaultValues
public void removeAllDefaultValues(CustomField field,
PersistenceFieldType persistenceFieldType)
- Specified by:
removeAllDefaultValues
in interface CustomFieldPersister
getDefaultValues
public java.util.List getDefaultValues(CustomField field,
PersistenceFieldType persistenceFieldType)
- Specified by:
getDefaultValues
in interface CustomFieldPersister
getDefaultValuesForParent
public java.util.List getDefaultValuesForParent(CustomField field,
PersistenceFieldType persistenceFieldType,
java.lang.String parentKey)
- Specified by:
getDefaultValuesForParent
in interface CustomFieldPersister
Copyright © 2002-2005 Atlassian. All Rights Reserved.