private void setKunderaQueryTypeObject ( ) { try { if ( isSelectStatement ( ) ) { this . setSelectStatement ( ( SelectStatement ) ( this . getJpqlExpression ( ) . getQueryStatement ( ) ) ) ; } else if ( isUpdateStatement ( ) ) { this . setUpdateStatement ( ( UpdateStatement ) ( this . getJpqlExpression ( ) . getQueryStatement ( ) ) ) ; } else if ( isDeleteStatement ( ) ) { this . setDeleteStatement ( ( DeleteStatement ) ( this . getJpqlExpression ( ) . getQueryStatement ( ) ) ) ; } } catch ( ClassCastException cce ) { throw new JPQLParseException ( "Bad query format : " + cce . getMessage ( ) ) ; } }
Sets the kundera query type object .