com.atlassian.greenhopper.util
Class GenericValueUtils

java.lang.Object
  extended by com.atlassian.greenhopper.util.GenericValueUtils

public class GenericValueUtils
extends java.lang.Object


Constructor Summary
GenericValueUtils()
           
 
Method Summary
static java.lang.Long getLong(org.ofbiz.core.entity.GenericValue gv, java.lang.String fieldName)
          Read the given field from the GenericValue and convert it to Long, if possible.
 
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

getLong

public static java.lang.Long getLong(org.ofbiz.core.entity.GenericValue gv,
                                     java.lang.String fieldName)
Read the given field from the GenericValue and convert it to Long, if possible. Valid field types are Long, Integer and String.

Parameters:
gv - : The GenericValue object
fieldName - : The name of the field
Returns:
the Long value of the field, or null if the field can't be converted to Long.


Copyright © 2007-2011 Atlassian. All Rights Reserved.