private boolean isCountQuery ( ) { if ( getKunderaQuery ( ) . getSelectStatement ( ) != null ) { final Expression selectClause = getKunderaQuery ( ) . getSelectStatement ( ) . getSelectClause ( ) ; if ( selectClause instanceof SelectClause ) { final Expression expression = ( ( SelectClause ) selectClause ) . getSelectExpression ( ) ; return expression instanceof CountFunction ; } } return false ; }
Checks if is count query .