code: private Object getColumnValue(String table, String column, String data, int type, boolean epochDateFormat) throws MPXJException
     {
        try
        {
           Object value = null;
  
           switch (type)
           {
              case Types.BIT:
              {
                 value = DatatypeConverter.parseBoolean(data);
                 break;
              }
  
              case Types.VARCHAR:
              case Types.LONGVARCHAR:
              {
                 value = DatatypeConverter.parseString(data);
                 break;
              }
  
              case Types.TIME:
              {
                 value = DatatypeConverter.parseBasicTime(data);
                 break;
              }
  
              case Types.TIMESTAMP:
              {
                 if (epochDateFormat)
                 {
                    value = DatatypeConverter.parseEpochTimestamp(data);
                 }
                 else
                 {
                    value = DatatypeConverter.parseBasicTimestamp(data);
                 }
                 break;
              }
  
              case Types.DOUBLE:
              {
                 value = DatatypeConverter.parseDouble(data);
                 break;
              }
  
              case Types.INTEGER:
              {
                 value = DatatypeConverter.parseInteger(data);
                 break;
              }
  
              default:
              {
                 throw new IllegalArgumentException("Unsupported SQL type: " + type);
              }
           }
  
           return value;
        }
  
        catch (Exception ex)
        {
           throw new MPXJException("Failed to parse " + table + "." + column + " (data=" + data + ", type=" + type + ")", ex);
        }
     }
docs: Maps the text representation of column data to Java types.
  
  @param table table name
  @param column column name
  @param data text representation of column data
  @param type column data type
  @param epochDateFormat true if date is represented as an offset from an epoch
  @return Java representation of column data
  @throws MPXJException