@Internal public class

GenericValueUtils

extends Object
java.lang.Object
   ↳ com.atlassian.jira.util.ofbiz.GenericValueUtils

This class is deprecated.
Use API methods that don't require GenericValues instead, or copy/paste these methods as we intend to pull this out of the API. Since v6.1.

@Internal

This class is an internal implementation detail and will change without notice.

Clients that depend on @Internal classes and interfaces can not expect to be compatible with any version other than the version they were compiled against (even minor version and milestone releases may break binary compatibility with respect to @Internal elements).

Class Overview

Only included in APi because it was required by some implementations in order to compile.

Summary

Public Constructors
GenericValueUtils()
Public Methods
static String getCommaSeparatedList(Collection<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<GenericValue> genericValues)
static List<Long> transformToLongIdsList(Collection<GenericValue> genericValues)
static String[] transformToStringIds(Collection<GenericValue> genericValues)
static List<String> transformToStringIdsList(Collection<GenericValue> genericValues)
static String[] transformToStrings(Collection<GenericValue> genericValues, String fieldName)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GenericValueUtils ()

Public Methods

public static String getCommaSeparatedList (Collection<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 org.ofbiz.core.entity.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.

public static Long[] transformToLongIds (Collection<GenericValue> genericValues)

public static List<Long> transformToLongIdsList (Collection<GenericValue> genericValues)

public static String[] transformToStringIds (Collection<GenericValue> genericValues)

public static List<String> transformToStringIdsList (Collection<GenericValue> genericValues)

public static String[] transformToStrings (Collection<GenericValue> genericValues, String fieldName)