I am working on Oracle 11g Enterprises Edition database. We have to get the data from database tables. Database tables have one of these types of columns :
- TIMESTAMPLTZ
- TIMESTAMPTZ
All other data types and their values are successfully fetched.
We are using apache meta-modal
to parse the database tables and generating CSV using it.
When we are using this method on rows :
row.getValues()[indexColumn]
BUT this code does not fetch the value of column for the given row, it returning oracle.sql.TIMESTAMPLTZ@70156e7b object as string. We need its value.
Casting it to TIMESTAMPLTZ, throwing exception of cast. OR also columnValue.timestampValue() not making any sense.
How can I get the value for column type TIMESTAMPLTZ using Apache meta-model in formatted way?