Ejemplo n.º 1
0
 /**
  * convert the String value to Object according to its data type.
  *
  * @param inputValue
  * @param type
  * @return
  * @throws DataException
  */
 private static Object convertToValue(Object inputValue, Class typeClass) throws DataException {
   try {
     return DataTypeUtil.convert(inputValue, typeClass);
   } catch (Exception ex) {
     throw new DataException(
         ResourceConstants.CANNOT_CONVERT_PARAMETER_TYPE,
         ex,
         new Object[] {inputValue, typeClass});
   }
 }