/** * PUBLIC: * Execute the call on the database. * The row count is returned. * The call can be a stored procedure call, SQL call or other type of call. * <p>Example: * <p>session.executeNonSelectingCall(new SQLCall("Delete from Employee"); * * @see #executeSelectingCall(Call) */ public int executeNonSelectingCall(Call call) throws DatabaseException { DataModifyQuery query = new DataModifyQuery(); query.setIsExecutionClone(true); query.setCall(call); Integer value = (Integer)executeQuery(query); if (value == null) { return 0; } else { return value.intValue(); } }
/** * PUBLIC: * Execute the call on the database. * The row count is returned. * The call can be a stored procedure call, SQL call or other type of call. * <p>Example: * <p>session.executeNonSelectingCall(new SQLCall("Delete from Employee"); * * @see #executeSelectingCall(Call) */ @Override public int executeNonSelectingCall(Call call) throws DatabaseException { DataModifyQuery query = new DataModifyQuery(); query.setIsExecutionClone(true); query.setCall(call); Integer value = (Integer)executeQuery(query); if (value == null) { return 0; } else { return value.intValue(); } }
/** * PUBLIC: * Execute the call on the database. * The row count is returned. * The call can be a stored procedure call, SQL call or other type of call. * <p>Example: * <p>session.executeNonSelectingCall(new SQLCall("Delete from Employee"); * * @see #executeSelectingCall(Call) */ public int executeNonSelectingCall(Call call) throws DatabaseException { DataModifyQuery query = new DataModifyQuery(); query.setIsExecutionClone(true); query.setCall(call); Integer value = (Integer)executeQuery(query); if (value == null) { return 0; } else { return value.intValue(); } }
/** * INTERNAL: * Execute the call on the database. Calling this method will bypass a * global setting to disallow native SQL queries. (set by default when * one Entity is marked as multitenant) * * The row count is returned. * * The call can be a stored procedure call, SQL call or other type of call. * * <p>Example: * <p>session.executeNonSelectingCall(new SQLCall("Delete from Employee"), true); * * @see #priviledgedExecuteSelectingCall(Call) */ public int priviledgedExecuteNonSelectingCall(Call call) throws DatabaseException { DataModifyQuery query = new DataModifyQuery(); query.setAllowNativeSQLQuery(true); query.setIsExecutionClone(true); query.setCall(call); Integer value = (Integer)executeQuery(query); if (value == null) { return 0; } else { return value.intValue(); } }
/** * INTERNAL: * Execute the call on the database. Calling this method will bypass a * global setting to disallow native SQL queries. (set by default when * one Entity is marked as multitenant) * * The row count is returned. * * The call can be a stored procedure call, SQL call or other type of call. * * <p>Example: * <p>session.executeNonSelectingCall(new SQLCall("Delete from Employee"), true); * * @see #priviledgedExecuteSelectingCall(Call) */ public int priviledgedExecuteNonSelectingCall(Call call) throws DatabaseException { DataModifyQuery query = new DataModifyQuery(); query.setAllowNativeSQLQuery(true); query.setIsExecutionClone(true); query.setCall(call); Integer value = (Integer)executeQuery(query); if (value == null) { return 0; } else { return value.intValue(); } }
removeQuery.setModifyRow(modifyRow); removeQuery.setHasModifyRow(true); removeQuery.setIsExecutionClone(true); query.getSession().executeQuery(removeQuery, translationRow);
removeQuery.setModifyRow(modifyRow); removeQuery.setHasModifyRow(true); removeQuery.setIsExecutionClone(true); query.getSession().executeQuery(removeQuery, translationRow);
removeQuery.setModifyRow(modifyRow); removeQuery.setHasModifyRow(true); removeQuery.setIsExecutionClone(true); query.getSession().executeQuery(removeQuery, translationRow);
removeQuery.setModifyRow(modifyRow); removeQuery.setHasModifyRow(true); removeQuery.setIsExecutionClone(true); session.executeQuery(removeQuery, translationRow);
removeQuery.setModifyRow(modifyRow); removeQuery.setHasModifyRow(true); removeQuery.setIsExecutionClone(true); session.executeQuery(removeQuery, translationRow);
removeQuery.setModifyRow(modifyRow); removeQuery.setHasModifyRow(true); removeQuery.setIsExecutionClone(true); session.executeQuery(removeQuery, translationRow);
updateAtIndexQuery.setModifyRow((AbstractRecord)event[3]); updateAtIndexQuery.setHasModifyRow(true); updateAtIndexQuery.setIsExecutionClone(true); session.executeQuery(updateAtIndexQuery, (AbstractRecord)event[2]); } else {
updateAtIndexQuery.setModifyRow((AbstractRecord)event[3]); updateAtIndexQuery.setHasModifyRow(true); updateAtIndexQuery.setIsExecutionClone(true); session.executeQuery(updateAtIndexQuery, (AbstractRecord)event[2]); } else {
updateAtIndexQuery.setModifyRow((AbstractRecord)event[3]); updateAtIndexQuery.setHasModifyRow(true); updateAtIndexQuery.setIsExecutionClone(true); session.executeQuery(updateAtIndexQuery, (AbstractRecord)event[2]); } else {