private static String getValue ( Enum < ? > value ) { try { Method m = value . getClass ( ) . getDeclaredMethod ( "value" ) ; return ( String ) m . invoke ( value ) ; } catch ( NoSuchMethodException ex ) { } catch ( IllegalAccessException ex ) { } catch ( InvocationTargetException ex ) { } return value . toString ( ) ; }
Intuit data enumerations have a value property which should be used in queries instead of enum names .