java.lang.Object | |
↳ | com.atlassian.jira.util.JiraEntityUtils |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GENERIC_VALUE_TO_ID_TRANSFORMER | Transformer for turning GenericValue objects into thier Long ids. | ||||||||||
GV_TO_ID_TRANSFORMER |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Convert any list of entities into a sequenced hash map with two fields.
| |||||||||||
Creates a new collection of IDs from given collection of generic values.
| |||||||||||
This method is deprecated.
please use
updateDependentEntitiesCheckId(org.ofbiz.core.entity.GenericValue, java.util.Collection, String, String) instead,
as it compares ids rather than org.ofbiz.core.entity.GenericValue GenericValues
| |||||||||||
Slightly changed from
updateDependentEntities(org.ofbiz.core.entity.GenericValue, java.util.Collection, String, String)
to cope with GV components that have different representation of null and empty strings (eg. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Transformer for turning GenericValue objects into thier Long ids.
Use with collect(java.util.Collection, org.apache.commons.collections.Transformer)
etc.
Convert any list of entities into a sequenced hash map with two fields.
This is most useful for creating ordered maps used to create select boxes in the web interface. (ie createEntityMap(entities, "id", "name") to create an id to name map.
entities | list of org.ofbiz.core.entity.GenericValue GenericValues |
---|---|
key | the element to use as the key |
value | the element to use as the value |
Creates a new collection of IDs from given collection of generic values.
genericValues | a collection of generic values [GenericValue] |
---|
This method is deprecated.
please use updateDependentEntitiesCheckId(org.ofbiz.core.entity.GenericValue, java.util.Collection, String, String)
instead,
as it compares ids rather than org.ofbiz.core.entity.GenericValue GenericValues
Update the dependent entities of this issue (for example versions, fix versions or components)
issue | The issue to update entities for |
---|---|
newEntities | The list of new dependent entities |
relationType | The dependency (association) type to look at, from IssueRelationConstants |
changeItemField | The fieldname of the change items generated |
GenericEntityException | If something real bad happens |
---|
Slightly changed from updateDependentEntities(org.ofbiz.core.entity.GenericValue, java.util.Collection, String, String)
to cope with GV components that have different representation of null and empty strings (eg. Oracle) - JRA-12130
Update the dependent entities of this issue (for example versions, fix versions or components)
issue | The issue to update entities for |
---|---|
newEntities | The list of new dependent entities (GenericValue's) |
relationType | The dependency (association) type to look at, from IssueRelationConstants |
changeItemField | The fieldname of the change items generated |
change items
or an empty list if nothing was changedGenericEntityException | If something real bad happens |
---|