I'm trying to retrieve a Clob field from an Oracle Database in a Java Spring project, but I'm having issues.
First, I made a query using a Spring object called SqlRowSet:
String query = sqlQueries.getProperty("THE_QUERY");
SqlRowSet rs = select.queryForRowSet(query, new HashMap<String, Object>());
After that I iterate over the object and start getting the information from the fields:
while (rs.next()) {
String name = rs.getString("name");
}
When I get the results of the query, I get sometihng like this:
name=javax.sql.rowset.serial.SerialClob@435dc43
I tried several things, but I'm not able to get the information from the field, which is an String on the end (not sure why the database creators used clob as the data type).
Do someone know how to get this information?