/** * INTERNAL: * Prepare the receiver for execution in a session. */ protected void prepare() { super.prepare(); getQueryMechanism().prepareExecuteNoSelect(); }
/** * INTERNAL: * Prepare the receiver for execution in a session. */ protected void prepare() { super.prepare(); getQueryMechanism().prepareExecuteNoSelect(); }
/** * INTERNAL: * Prepare the receiver for execution in a session. */ protected void prepare() { super.prepare(); getQueryMechanism().prepareExecuteNoSelect(); }
/** * INTERNAL: * Perform the work to execute the SQL call. * Return the row count of the number of rows effected by the SQL call. */ public Object executeDatabaseQuery() throws DatabaseException { /* Fix to allow executing non-selecting SQL in a UnitOfWork. - RB */ if (this.session.isUnitOfWork()) { UnitOfWorkImpl unitOfWork = (UnitOfWorkImpl)this.session; /* 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(); }
/** * INTERNAL: * Perform the work to execute the SQL call. * Return the row count of the number of rows effected by the SQL call. */ public Object executeDatabaseQuery() throws DatabaseException { /* Fix to allow executing non-selecting SQL in a UnitOfWork. - RB */ if (this.session.isUnitOfWork()) { UnitOfWorkImpl unitOfWork = (UnitOfWorkImpl)this.session; /* 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(); }
/** * INTERNAL: * Perform the work to execute the SQL call. * Return the row count of the number of rows effected by the SQL call. */ public Object executeDatabaseQuery() throws DatabaseException { /* Fix to allow executing non-selecting SQL in a UnitOfWork. - RB */ if (this.session.isUnitOfWork()) { UnitOfWorkImpl unitOfWork = (UnitOfWorkImpl)this.session; /* 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(); }