com.atlassian.jira.util.ofbiz
Class GenericValueUtils

java.lang.Object
  extended by com.atlassian.jira.util.ofbiz.GenericValueUtils

public class GenericValueUtils
extends Object


Constructor Summary
GenericValueUtils()
           
 
Method Summary
static String getCommaSeparatedList(Collection<org.ofbiz.core.entity.GenericValue> genericValues, String key)
          Returns a String containing a comma and space (for display) separated list of the key property values in the given collection of GenericValues.
static Long[] transformToLongIds(Collection<org.ofbiz.core.entity.GenericValue> genericValues)
           
static List<Long> transformToLongIdsList(Collection<org.ofbiz.core.entity.GenericValue> genericValues)
           
static String[] transformToStringIds(Collection<org.ofbiz.core.entity.GenericValue> genericValues)
           
static List<String> transformToStringIdsList(Collection<org.ofbiz.core.entity.GenericValue> genericValues)
           
static String[] transformToStrings(Collection<org.ofbiz.core.entity.GenericValue> genericValues, String fieldName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericValueUtils

public GenericValueUtils()
Method Detail

transformToLongIds

public static Long[] transformToLongIds(Collection<org.ofbiz.core.entity.GenericValue> genericValues)

transformToLongIdsList

public static List<Long> transformToLongIdsList(Collection<org.ofbiz.core.entity.GenericValue> genericValues)

transformToStrings

public static String[] transformToStrings(Collection<org.ofbiz.core.entity.GenericValue> genericValues,
                                          String fieldName)

transformToStringIds

public static String[] transformToStringIds(Collection<org.ofbiz.core.entity.GenericValue> genericValues)

transformToStringIdsList

public static List<String> transformToStringIdsList(Collection<org.ofbiz.core.entity.GenericValue> genericValues)

getCommaSeparatedList

public static String getCommaSeparatedList(Collection<org.ofbiz.core.entity.GenericValue> genericValues,
                                           String key)
Returns a String containing a comma and space (for display) separated list of the key property values in the given collection of GenericValues.

Parameters:
genericValues - Collection of GenericValue objects.
key - We pull this property out of each GV for our return values.
Returns:
a String containing a comma separated list of the key property values in the given collection of GenericValues.
Since:
v3.13


Copyright © 2002-2012 Atlassian. All Rights Reserved.