INTERNAL:
Perform the work to execute the SQL call.
Return the row count of the number of rows effected by the SQL call.
/* Fix to allow executing non-selecting SQL in a UnitOfWork. - RB */
if (getSession().isUnitOfWork()) {
UnitOfWorkImpl unitOfWork = (UnitOfWorkImpl)getSession();
/* bug:4211104 for DataModifyQueries executed during an event, while transaction was started by the uow*/
if ( !unitOfWork.getCommitManager().isActive() && !unitOfWork.isInTransaction()) {
unitOfWork.beginEarlyTransaction();
}
unitOfWork.setWasNonObjectLevelModifyQueryExecuted(true);
}
return getQueryMechanism().executeNoSelect();