DBA Data[Home] [Help]

APPS.IGS_CO_LTR_PR_RSTCN_PKG SQL Statements

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

Line: 16

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 14-DEC-2000
  ||  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_CO_LTR_PR_RSTCN_ALL
      WHERE    rowid = x_rowid;
Line: 43

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 66

    new_references.last_updated_by                   := x_last_updated_by;
Line: 67

    new_references.last_update_login                 := x_last_update_login;
Line: 71

   PROCEDURE BeforeRowInsert1(
    p_inserting IN BOOLEAN DEFAULT FALSE,
    p_updating IN BOOLEAN DEFAULT FALSE,
    p_deleting IN BOOLEAN DEFAULT FALSE
    ) AS
	v_message_name		varchar2(30);
Line: 80

		SELECT	s_letter_parameter_type
		FROM	IGS_CO_LTR_PARM_TYPE
		WHERE	letter_parameter_type = cp_letter_parameter_type;
Line: 84

	IF p_inserting THEN
		-- Validate Letter Parameter Type closed.
		IF  igs_ad_val_aalp.corp_val_lpt_closed(
					new_references.letter_parameter_type,
					v_message_name) = FALSE THEN
				Fnd_Message.Set_Name('IGS',v_message_name);
Line: 118

  END BeforeRowInsert1;
Line: 173

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

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

      SELECT   rowid
      FROM     igs_co_ltr_pr_rstcn_all
      WHERE    letter_parameter_type = x_letter_parameter_type
      AND      correspondence_type = x_correspondence_type
      FOR UPDATE NOWAIT;
Line: 242

      SELECT   rowid
      FROM     igs_co_ltr_pr_rstcn_all
      WHERE   ((correspondence_type = x_correspondence_type));
Line: 277

      SELECT   rowid
      FROM     igs_co_ltr_pr_rstcn_all
      WHERE   ((letter_parameter_type = x_letter_parameter_type));
Line: 307

    x_last_update_date                  IN     DATE        DEFAULT NULL,
    x_last_updated_by                   IN     NUMBER      DEFAULT NULL,
    x_last_update_login                 IN     NUMBER      DEFAULT NULL
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 14-DEC-2000
  ||  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_org_id,
      x_letter_parameter_type,
      x_correspondence_type,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 336

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to Before Insert.
    BeforeRowInsert1 ( p_inserting => TRUE );
Line: 350

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

    ELSIF (p_action = 'VALIDATE_INSERT') THEN
      -- Call all the procedures related to Before Insert.
       Check_Constraints;
Line: 372

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_org_id                            IN     NUMBER,
    x_letter_parameter_type             IN     VARCHAR2,
    x_correspondence_type               IN     VARCHAR2,
    x_mode                              IN     VARCHAR2 DEFAULT 'R'
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 14-DEC-2000
  ||  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)
  */
    CURSOR c IS
      SELECT   rowid
      FROM     igs_co_ltr_pr_rstcn_all
      WHERE    letter_parameter_type             = x_letter_parameter_type
      AND      correspondence_type               = x_correspondence_type;
Line: 394

    x_last_update_date           DATE;
Line: 395

    x_last_updated_by            NUMBER;
Line: 396

    x_last_update_login          NUMBER;
Line: 400

    x_last_update_date := SYSDATE;
Line: 402

      x_last_updated_by := 1;
Line: 403

      x_last_update_login := 0;
Line: 405

      x_last_updated_by := fnd_global.user_id;
Line: 406

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

      x_last_update_login := fnd_global.login_id;
Line: 410

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

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_org_id                            => igs_ge_gen_003.get_org_id,
      x_letter_parameter_type             => x_letter_parameter_type,
      x_correspondence_type               => x_correspondence_type,
      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: 432

    INSERT INTO igs_co_ltr_pr_rstcn_all (
      org_id,
      letter_parameter_type,
      correspondence_type,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login
    ) VALUES (
      new_references.org_id,
      new_references.letter_parameter_type,
      new_references.correspondence_type,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login
    );
Line: 460

  END insert_row;
Line: 472

  ||  Purpose : Adds a row if there is no existing row, otherwise updates existing row in the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c1 IS
      SELECT   rowid
      FROM     igs_co_ltr_pr_rstcn_all
      WHERE    letter_parameter_type             = x_letter_parameter_type
      AND      correspondence_type               = x_correspondence_type;
Line: 491

      insert_row (
        x_rowid,
        x_org_id,
        x_letter_parameter_type,
        x_correspondence_type,
        x_mode
      );
Line: 505

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : [email protected]
  ||  Created On : 14-DEC-2000
  ||  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: 524

    DELETE FROM igs_co_ltr_pr_rstcn_all
    WHERE rowid = x_rowid;
Line: 531

  END delete_row;