DBA Data[Home] [Help]

APPS.PA_PERF_THRESHOLDS_PKG SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 4

procedure INSERT_ROW (
  X_ROWID in out NOCOPY VARCHAR2, --File.Sql.39 bug 4440895
  X_THRESHOLD_ID in NUMBER,
  X_RULE_TYPE in VARCHAR2,
  X_THRES_OBJ_ID in NUMBER,
  X_FROM_VALUE in NUMBER,
  X_TO_VALUE in NUMBER,
  X_INDICATOR_CODE in VARCHAR2,
  X_EXCEPTION_FLAG in VARCHAR2,
  X_WEIGHTING in NUMBER,
  X_ACCESS_LIST_ID in NUMBER,
  X_RECORD_VERSION_NUMBER in NUMBER ,
  X_CREATION_DATE in DATE ,
  X_CREATED_BY in NUMBER ,
  X_LAST_UPDATE_DATE in DATE ,
  X_LAST_UPDATED_BY in NUMBER ,
  X_LAST_UPDATE_LOGIN in NUMBER
) is
  cursor C is select ROWID from PA_PERF_THRESHOLDS
    where THRESHOLD_ID = X_THRESHOLD_ID
    ;
Line: 26

  insert into PA_PERF_THRESHOLDS (
    THRESHOLD_ID,
    RULE_TYPE,
    THRES_OBJ_ID,
    FROM_VALUE,
    TO_VALUE,
    INDICATOR_CODE,
    EXCEPTION_FLAG,
    WEIGHTING,
    ACCESS_LIST_ID,
    RECORD_VERSION_NUMBER,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    LAST_UPDATE_LOGIN )
  values (
    X_THRESHOLD_ID,
    X_RULE_TYPE,
    X_THRES_OBJ_ID,
    X_FROM_VALUE,
    X_TO_VALUE,
    X_INDICATOR_CODE,
    X_EXCEPTION_FLAG,
    X_WEIGHTING,
    X_ACCESS_LIST_ID,
    NVL(X_RECORD_VERSION_NUMBER,1),
    NVL(X_CREATION_DATE,sysdate),
    NVL(X_CREATED_BY,fnd_global.user_id),
    NVL(X_LAST_UPDATE_DATE,sysdate),
    NVL(X_LAST_UPDATED_BY,fnd_global.user_id),
    NVL(X_LAST_UPDATE_LOGIN,fnd_global.login_id));
Line: 68

end INSERT_ROW;
Line: 117

     select record_version_number into l_rec_ver_no
     from pa_perf_thresholds
     where threshold_id = X_THRESHOLD_ID
     for update nowait;
Line: 135

          p_msg_name       => 'FND_RECORD_DELETED_ERROR');
Line: 151

procedure UPDATE_ROW (
  X_THRESHOLD_ID in NUMBER,
  X_RULE_TYPE in VARCHAR2,
  X_THRES_OBJ_ID in NUMBER,
  X_FROM_VALUE in NUMBER,
  X_TO_VALUE in NUMBER,
  X_INDICATOR_CODE in VARCHAR2,
  X_EXCEPTION_FLAG in VARCHAR2,
  X_WEIGHTING in NUMBER,
  X_ACCESS_LIST_ID in NUMBER,
  X_RECORD_VERSION_NUMBER in NUMBER,
  X_LAST_UPDATE_DATE in DATE,
  X_LAST_UPDATED_BY in NUMBER,
  X_LAST_UPDATE_LOGIN in NUMBER
) is
begin
  update PA_PERF_THRESHOLDS set
    RULE_TYPE = X_RULE_TYPE,
    THRES_OBJ_ID = X_THRES_OBJ_ID,
    FROM_VALUE = X_FROM_VALUE,
    TO_VALUE = X_TO_VALUE,
    INDICATOR_CODE = X_INDICATOR_CODE,
    EXCEPTION_FLAG = X_EXCEPTION_FLAG,
    WEIGHTING = X_WEIGHTING,
    ACCESS_LIST_ID = X_ACCESS_LIST_ID,
    THRESHOLD_ID = X_THRESHOLD_ID,
    RECORD_VERSION_NUMBER = NVL(X_RECORD_VERSION_NUMBER,RECORD_VERSION_NUMBER+1),
    LAST_UPDATE_DATE = NVL(X_LAST_UPDATE_DATE,sysdate),
    LAST_UPDATED_BY = NVL(X_LAST_UPDATED_BY,fnd_global.user_id),
    LAST_UPDATE_LOGIN = NVL(X_LAST_UPDATE_LOGIN,fnd_global.login_id)
  where THRESHOLD_ID = X_THRESHOLD_ID
  ;
Line: 187

end UPDATE_ROW;
Line: 189

procedure DELETE_ROW (
  X_THRESHOLD_ID in NUMBER
) is
begin
  delete from PA_PERF_THRESHOLDS
  where THRESHOLD_ID = X_THRESHOLD_ID;
Line: 200

end DELETE_ROW;