public static String getSql ( Report report ) { String sql ; if ( report . getSql ( ) != null ) { sql = report . getSql ( ) ; } else { sql = report . getQuery ( ) . toString ( ) ; } return sql ; }
Get sql string from report object