DBA Data[Home] [Help]

APPS.IGS_EN_SVS_AUTH_CAL_PKG SQL Statements

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

Line: 8

    PROCEDURE  afterinsert1(
       x_sevis_auth_id IN NUMBER,
       x_cal_type IN VARCHAR2,
       x_ci_sequence_number IN NUMBER);
Line: 21

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By :
  ||  Created On : 08-MAR-2006
  ||  Purpose : Initialises the Old and New references for the columns of the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */

    CURSOR cur_old_ref_values IS
      SELECT   *
      FROM     igs_en_svs_auth_cal
      WHERE    rowid = x_rowid;
Line: 48

    IF ((cur_old_ref_values%NOTFOUND) AND (p_action NOT IN ('INSERT', 'VALIDATE_INSERT'))) THEN
      CLOSE cur_old_ref_values;
Line: 51

      fnd_message.set_name ('FND', 'FORM_RECORD_DELETED');
Line: 63

    IF (p_action = 'UPDATE') THEN
      new_references.creation_date                   := old_references.creation_date;
Line: 71

    new_references.last_update_date                  := x_last_update_date;
Line: 72

    new_references.last_updated_by                   := x_last_updated_by;
Line: 73

    new_references.last_update_login                 := x_last_update_login;
Line: 96

      fnd_message.set_name ('FND', 'FORM_RECORD_DELETED');
Line: 110

     fnd_message.set_name ('FND','FORM_RECORD_DELETED');
Line: 135

      SELECT   rowid
      FROM     igs_en_svs_auth_cal
      WHERE    sevis_auth_id = x_sevis_auth_id
      AND      cal_type = x_cal_type
      AND      ci_sequence_number = x_ci_sequence_number
      FOR UPDATE NOWAIT;
Line: 172

      SELECT   rowid
      FROM     igs_en_svs_auth_cal
      WHERE   ((sevis_auth_id = x_sevis_auth_id));
Line: 199

      SELECT ROWID
      FROM   igs_en_svs_auth_cal
      WHERE  cal_type = x_cal_type
            AND  ci_sequence_number = x_ci_sequence_number  ;
Line: 218

  PROCEDURE beforedelete1(
    x_sevis_auth_id                     IN     NUMBER,
    x_cal_type                          IN     VARCHAR2,
    x_ci_sequence_number                IN     NUMBER
  ) AS

    CURSOR c_auth IS
    SELECT eeo.ELGB_OVERRIDE_ID, esa.person_id
    FROM IGS_EN_SVS_AUTH esa,
         IGS_EN_ELGB_OVR eeo
    WHERE esa.SEVIS_AUTH_ID = x_sevis_auth_id
    AND esa.person_id = eeo.person_id
    AND eeo.cal_type = x_cal_type
    AND eeo.ci_sequence_number = x_ci_sequence_number;
Line: 234

      SELECT 'X'
      FROM IGS_EN_SVS_AUTH_CAL sac, IGS_EN_SVS_AUTH esa
      WHERE esa.SEVIS_AUTH_ID <> x_sevis_auth_id
      AND esa.person_id = cp_person_id
      AND esa.sevis_auth_id = sac.sevis_auth_id
      AND sac.cal_type = x_cal_type
      AND sac.ci_sequence_number = x_ci_sequence_number ;
Line: 243

    SELECT eos.rowid row_id, step_override_type, step_override_limit
    FROM IGS_EN_ELGB_OVR_STEP eos
    WHERE elgb_override_id = cp_elgb_override_id
    AND STEP_OVERRIDE_TYPE IN ('FMIN_CRDT','FATD_TYPE');
Line: 276

            IGS_EN_ELGB_OVR_STEP_PKG.DELETE_ROW(c_eos_rec.row_id);
Line: 286

  END beforedelete1;
Line: 298

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER
  ) AS
  /*
  ||  Created By :
  ||  Created On : 08-MAR-2006
  ||  Purpose : Initialises the columns, Checks Constraints, Calls the
  ||            Trigger Handlers for the table, before any DML operation.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_sevis_auth_id,
      x_cal_type,
      x_ci_sequence_number,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 327

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation(
             new_references.sevis_auth_id,
             new_references.cal_type,
             new_references.ci_sequence_number
           )
         ) THEN
        fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
Line: 340

    ELSIF (p_action = 'UPDATE') THEN
      -- Call all the procedures related to Before Update.
      check_parent_existance;
Line: 343

    ELSIF (p_action = 'VALIDATE_INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation (
             new_references.sevis_auth_id,
             new_references.cal_type,
             new_references.ci_sequence_number
           )
         ) THEN
        fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
Line: 357

    IF (p_action = 'DELETE') THEN
      beforedelete1(
       old_references.sevis_auth_id,
       old_references.cal_type,
       old_references.ci_sequence_number);
Line: 372

    IF (p_action = 'INSERT') THEN
      afterinsert1(
       new_references.sevis_auth_id,
       new_references.cal_type,
       new_references.ci_sequence_number);
Line: 381

  PROCEDURE  afterinsert1(
       x_sevis_auth_id IN NUMBER,
       x_cal_type IN VARCHAR2,
       x_ci_sequence_number IN NUMBER) IS

    CURSOR c_step_exists IS
    SELECT 'X'
    FROM IGS_EN_ELGB_OVR_STEP eos,
         IGS_EN_ELGB_OVR eo,
         IGS_EN_SVS_AUTH esa
    WHERE esa.sevis_auth_id = x_sevis_auth_id
    AND esa.person_id = eo.person_id
    AND eo.cal_type = x_cal_type
    AND eo.CI_SEQUENCE_NUMBER = x_ci_sequence_number
    AND eo.ELGB_OVERRIDE_ID = eos.ELGB_OVERRIDE_ID
    AND eos.STEP_OVERRIDE_TYPE IN ('FMIN_CRDT','FATD_TYPE');
Line: 399

    SELECT  eo.ELGB_OVERRIDE_ID
    FROM IGS_EN_SVS_AUTH esa, IGS_EN_ELGB_OVR eo
    WHERE esa.sevis_auth_id = x_sevis_auth_id
    AND esa.person_id = eo.person_id
    AND eo.cal_type = x_cal_type
    AND eo.ci_sequence_number = X_ci_sequence_number;
Line: 408

    SELECT  cal_type, ci_sequence_number
    FROM IGS_EN_SVS_AUTH_CAL
    WHERE sevis_auth_id = x_sevis_auth_id
    ORDER BY CREATION_DATE ASC;
Line: 414

    SELECT person_id
    FROM igs_en_svs_auth
    WHERE sevis_auth_id = x_sevis_auth_id;
Line: 422

    SELECT STEP_OVERRIDE_TYPE, STEP_OVERRIDE_LIMIT
    FROM IGS_EN_ELGB_OVR_STEP eos, IGS_EN_ELGB_OVR eo
    WHERE eo.elgb_override_id = eos.elgb_override_id
    AND eo.person_id = cp_person_id
    AND eo.cal_type = cp_cal_type
    AND eo.ci_sequence_number = cp_ci_sequence_number
    AND STEP_OVERRIDE_TYPE IN ('FMIN_CRDT','FATD_TYPE')
    ORDER BY eos.CREATION_DATE ASC;
Line: 463

          igs_en_elgb_ovr_pkg.insert_row (
            x_mode                              => 'R',
            x_rowid                             => l_rowid,
            x_elgb_override_id                  => l_elgb_override_id,
            x_person_id                         => l_person_id,
            x_cal_type                          => x_cal_type,
            x_ci_sequence_number                => x_ci_sequence_number
          );
Line: 498

        igs_en_elgb_ovr_step_pkg.insert_row (
          x_mode                              => 'R',
          x_rowid                             => l_rowid,
          x_elgb_ovr_step_id                  => l_elgb_ovr_step_id,
          x_elgb_override_id                  => l_elgb_override_id,
          x_step_override_type                => l_step,
          x_step_override_dt                  => trunc(SYSDATE),
          x_step_override_limit               => l_limit
        );
Line: 520

  END afterinsert1;
Line: 522

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_sevis_auth_id                     IN     NUMBER,
    x_cal_type                          IN     VARCHAR2,
    x_ci_sequence_number                IN     NUMBER,
    x_mode                              IN     VARCHAR2
  ) AS
  /*
  ||  Created By :
  ||  Created On : 08-MAR-2006
  ||  Purpose : Handles the INSERT DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */

    x_last_update_date           DATE;
Line: 540

    x_last_updated_by            NUMBER;
Line: 541

    x_last_update_login          NUMBER;
Line: 545

    x_last_update_date := SYSDATE;
Line: 547

      x_last_updated_by := 1;
Line: 548

      x_last_update_login := 0;
Line: 550

      x_last_updated_by := fnd_global.user_id;
Line: 551

      IF (x_last_updated_by IS NULL) THEN
        x_last_updated_by := -1;
Line: 554

      x_last_update_login := fnd_global.login_id;
Line: 555

      IF (x_last_update_login IS NULL) THEN
        x_last_update_login := -1;
Line: 560

      fnd_message.set_token ('ROUTINE', 'IGS_EN_SVS_AUTH_CAL_PKG.INSERT_ROW');
Line: 566

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_sevis_auth_id                     => x_sevis_auth_id,
      x_cal_type                          => x_cal_type,
      x_ci_sequence_number                => x_ci_sequence_number,
      x_creation_date                     => x_last_update_date,
      x_created_by                        => x_last_updated_by,
      x_last_update_date                  => x_last_update_date,
      x_last_updated_by                   => x_last_updated_by,
      x_last_update_login                 => x_last_update_login
    );
Line: 578

    INSERT INTO igs_en_svs_auth_cal (
      sevis_auth_id,
      cal_type,
      ci_sequence_number,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.sevis_auth_id,
      new_references.cal_type,
      new_references.ci_sequence_number,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    ) RETURNING ROWID INTO x_rowid;
Line: 599

        p_action => 'INSERT',
        x_rowid => x_rowid
      );
Line: 607

  END insert_row;
Line: 626

      SELECT
        rowid
      FROM  igs_en_svs_auth_cal
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 639

      fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
Line: 653

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By :
  ||  Created On : 08-MAR-2006
  ||  Purpose : Handles the DELETE DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
  BEGIN

    before_dml (
      p_action => 'DELETE',
      x_rowid => x_rowid
    );
Line: 672

    DELETE FROM igs_en_svs_auth_cal
    WHERE rowid = x_rowid;
Line: 680

        p_action => 'DELETE',
        x_rowid => x_rowid
      );
Line: 685

  END delete_row;