String getQuery ( String key ) { String res = this . adapter . getSqlText ( key ) ; if ( res == null ) { throw new DatabaseException ( "Query " + key + " does not exist" ) ; } return res ; }
Gets the interpolated text of a query from cache . If key does not exist an exception is thrown .