I get the results of the query to the database in the form of a ResultSet object. A field in a database of different types, and obviously I don't know what the query will be executed and what the ResultSet will be passed to my function.
Regardless of the data type of the column in the ResultSet, this information can be obtained as a string or a number, or date. To do this, use the methods getString(int), getInt(int), etc.
How to know what type of data is in that column, and depending on it to use different methods to get the data?