Code example for ResultSet

Methods: getObjectgetTimestamp

0
        static { 
            UTC.setTimeInMillis(0);
        } 
 
        protected Object getColumnValue(ResultSet rs, int index) throws SQLException {
            Object obj = rs.getObject(index);
            if (obj != null && obj instanceof java.sql.Timestamp) {
                // Timestamp is invalid, force timezone to utc 
                obj = rs.getTimestamp(index, UTC);
            } else { 
                obj = super.getColumnValue(rs, index);
            } 
 
            return obj;
        } 
    } 
 
    static class ReportStatement implements PreparedStatementCreator { 
        private String m_sql;
        private Timestamp m_from;
Connect your IDE to all the code out there  Get Codota for Java