DBA Data[Home] [Help]

APPS.OKS_INTERACTION_HIST_PVT SQL Statements

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

Line: 101

    SELECT
            ID,
            CHR_ID,
            CONTRACT_NUMBER,
            CONTRACT_NUMBER_MODIFIER,
            RENEWAL_STATUS,
            PARTY_ID,
            USER_ID,
            DESCRIPTION,
            STATUS,
            TASK_NAME,
            TASK_RESULT,
            CREATION_DATE,
            CREATED_BY,
            LAST_UPDATE_DATE,
            LAST_UPDATED_BY,
            LAST_UPDATE_LOGIN,
            OBJECT_VERSION_NUMBER
      FROM Oks_Interaction_Hist_V
     WHERE oks_interaction_hist_v.id = p_id;
Line: 141

              l_inhv_rec.last_update_date,
              l_inhv_rec.last_updated_by,
              l_inhv_rec.last_update_login,
              l_inhv_rec.object_version_number;
Line: 186

    SELECT
            ID,
            CHR_ID,
            CONTRACT_NUMBER,
            CONTRACT_NUMBER_MODIFIER,
            RENEWAL_STATUS,
            PARTY_ID,
            USER_ID,
            DESCRIPTION,
            STATUS,
            TASK_NAME,
            TASK_RESULT,
            CREATION_DATE,
            CREATED_BY,
            LAST_UPDATE_DATE,
            LAST_UPDATED_BY,
            LAST_UPDATE_LOGIN,
            OBJECT_VERSION_NUMBER
      FROM Oks_Interaction_History
     WHERE oks_interaction_history.id = p_id;
Line: 226

              l_inh_rec.last_update_date,
              l_inh_rec.last_updated_by,
              l_inh_rec.last_update_login,
              l_inh_rec.object_version_number;
Line: 310

    IF (l_inhv_rec.last_update_date = OKC_API.G_MISS_DATE ) THEN
      l_inhv_rec.last_update_date := NULL;
Line: 313

    IF (l_inhv_rec.last_updated_by = OKC_API.G_MISS_NUM ) THEN
      l_inhv_rec.last_updated_by := NULL;
Line: 316

    IF (l_inhv_rec.last_update_login = OKC_API.G_MISS_NUM ) THEN
      l_inhv_rec.last_update_login := NULL;
Line: 435

    p_to.last_update_date := p_from.last_update_date;
Line: 436

    p_to.last_updated_by := p_from.last_updated_by;
Line: 437

    p_to.last_update_login := p_from.last_update_login;
Line: 458

    p_to.last_update_date := p_from.last_update_date;
Line: 459

    p_to.last_updated_by := p_from.last_updated_by;
Line: 460

    p_to.last_update_login := p_from.last_update_login;
Line: 707

  PROCEDURE insert_row(
    p_init_msg_list                IN VARCHAR2 DEFAULT OKC_API.G_FALSE,
    x_return_status                OUT NOCOPY VARCHAR2,
    x_msg_count                    OUT NOCOPY NUMBER,
    x_msg_data                     OUT NOCOPY VARCHAR2,
    p_inh_rec                      IN inh_rec_type,
    x_inh_rec                      OUT NOCOPY inh_rec_type) IS

    l_api_version                  CONSTANT NUMBER := 1;
Line: 716

    l_api_name                     CONSTANT VARCHAR2(30) := 'B_insert_row';
Line: 752

    INSERT INTO OKS_INTERACTION_HISTORY(
      id,
      chr_id,
      contract_number,
      contract_number_modifier,
      renewal_status,
      party_id,
      user_id,
      description,
      status,
      task_name,
      task_result,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      object_version_number)
    VALUES (
      l_inh_rec.id,
      l_inh_rec.chr_id,
      l_inh_rec.contract_number,
      l_inh_rec.contract_number_modifier,
      l_inh_rec.renewal_status,
      l_inh_rec.party_id,
      l_inh_rec.user_id,
      l_inh_rec.description,
      l_inh_rec.status,
      l_inh_rec.task_name,
      l_inh_rec.task_result,
      l_inh_rec.creation_date,
      l_inh_rec.created_by,
      l_inh_rec.last_update_date,
      l_inh_rec.last_updated_by,
      l_inh_rec.last_update_login,
      l_inh_rec.object_version_number);
Line: 823

  END insert_row;
Line: 827

  PROCEDURE insert_row(
    p_api_version                  IN NUMBER,
    p_init_msg_list                IN VARCHAR2 DEFAULT OKC_API.G_FALSE,
    x_return_status                OUT NOCOPY VARCHAR2,
    x_msg_count                    OUT NOCOPY NUMBER,
    x_msg_data                     OUT NOCOPY VARCHAR2,
    p_inhv_rec                     IN inhv_rec_type,
    x_inhv_rec                     OUT NOCOPY inhv_rec_type) IS

    l_api_version                  CONSTANT NUMBER := 1;
Line: 837

    l_api_name                     CONSTANT VARCHAR2(30) := 'V_insert_row';
Line: 853

      l_inhv_rec.LAST_UPDATE_DATE := l_inhv_rec.CREATION_DATE;
Line: 854

      l_inhv_rec.LAST_UPDATED_BY := FND_GLOBAL.USER_ID;
Line: 855

      l_inhv_rec.LAST_UPDATE_LOGIN := FND_GLOBAL.LOGIN_ID;
Line: 919

    insert_row(
      p_init_msg_list,
      l_return_status,
      x_msg_count,
      x_msg_data,
      l_inh_rec,
      lx_inh_rec
    );
Line: 968

  END insert_row;
Line: 972

  PROCEDURE insert_row(
    p_api_version                  IN NUMBER,
    p_init_msg_list                IN VARCHAR2 DEFAULT OKC_API.G_FALSE,
    x_return_status                OUT NOCOPY VARCHAR2,
    x_msg_count                    OUT NOCOPY NUMBER,
    x_msg_data                     OUT NOCOPY VARCHAR2,
    p_inhv_tbl                     IN inhv_tbl_type,
    x_inhv_tbl                     OUT NOCOPY inhv_tbl_type,
    px_error_tbl                   IN OUT NOCOPY OKC_API.ERROR_TBL_TYPE) IS

    l_api_version                  CONSTANT NUMBER := 1;
Line: 983

    l_api_name                     CONSTANT VARCHAR2(30) := 'V_error_tbl_insert_row';
Line: 997

          insert_row (
            p_api_version                  => p_api_version,
            p_init_msg_list                => OKC_API.G_FALSE,
            x_return_status                => l_error_rec.error_type,
            x_msg_count                    => l_error_rec.msg_count,
            x_msg_data                     => l_error_rec.msg_data,
            p_inhv_rec                     => p_inhv_tbl(i),
            x_inhv_rec                     => x_inhv_tbl(i));
Line: 1065

  END insert_row;
Line: 1070

  PROCEDURE insert_row(
    p_api_version                  IN NUMBER,
    p_init_msg_list                IN VARCHAR2 DEFAULT OKC_API.G_FALSE,
    x_return_status                OUT NOCOPY VARCHAR2,
    x_msg_count                    OUT NOCOPY NUMBER,
    x_msg_data                     OUT NOCOPY VARCHAR2,
    p_inhv_tbl                     IN inhv_tbl_type,
    x_inhv_tbl                     OUT NOCOPY inhv_tbl_type) IS

    l_api_version                  CONSTANT NUMBER := 1;
Line: 1080

    l_api_name                     CONSTANT VARCHAR2(30) := 'V_tbl_insert_row';
Line: 1087

      insert_row (
        p_api_version                  => p_api_version,
        p_init_msg_list                => OKC_API.G_FALSE,
        x_return_status                => x_return_status,
        x_msg_count                    => x_msg_count,
        x_msg_data                     => x_msg_data,
        p_inhv_tbl                     => p_inhv_tbl,
        x_inhv_tbl                     => x_inhv_tbl,
        px_error_tbl                   => l_error_tbl);
Line: 1129

  END insert_row;
Line: 1147

    SELECT OBJECT_VERSION_NUMBER
      FROM OKS_INTERACTION_HISTORY
     WHERE ID = p_inh_rec.id
       AND OBJECT_VERSION_NUMBER = p_inh_rec.object_version_number
    FOR UPDATE OF OBJECT_VERSION_NUMBER NOWAIT;
Line: 1154

    SELECT OBJECT_VERSION_NUMBER
      FROM OKS_INTERACTION_HISTORY
     WHERE ID = p_inh_rec.id;
Line: 1195

      OKC_API.set_message(G_FND_APP,G_FORM_RECORD_DELETED);
Line: 1204

      OKC_API.set_message(G_APP_NAME,G_RECORD_LOGICALLY_DELETED);
Line: 1484

  PROCEDURE update_row(
    p_init_msg_list                IN VARCHAR2 DEFAULT OKC_API.G_FALSE,
    x_return_status                OUT NOCOPY VARCHAR2,
    x_msg_count                    OUT NOCOPY NUMBER,
    x_msg_data                     OUT NOCOPY VARCHAR2,
    p_inh_rec                      IN inh_rec_type,
    x_inh_rec                      OUT NOCOPY inh_rec_type) IS

    l_api_version                  CONSTANT NUMBER := 1;
Line: 1493

    l_api_name                     CONSTANT VARCHAR2(30) := 'B_update_row';
Line: 1565

        IF (x_inh_rec.last_update_date = OKC_API.G_MISS_DATE)
        THEN
          x_inh_rec.last_update_date := l_inh_rec.last_update_date;
Line: 1569

        IF (x_inh_rec.last_updated_by = OKC_API.G_MISS_NUM)
        THEN
          x_inh_rec.last_updated_by := l_inh_rec.last_updated_by;
Line: 1573

        IF (x_inh_rec.last_update_login = OKC_API.G_MISS_NUM)
        THEN
          x_inh_rec.last_update_login := l_inh_rec.last_update_login;
Line: 1623

    UPDATE OKS_INTERACTION_HISTORY
    SET CHR_ID = l_def_inh_rec.chr_id,
        CONTRACT_NUMBER = l_def_inh_rec.contract_number,
        CONTRACT_NUMBER_MODIFIER = l_def_inh_rec.contract_number_modifier,
        RENEWAL_STATUS = l_def_inh_rec.renewal_status,
        PARTY_ID = l_def_inh_rec.party_id,
        USER_ID = l_def_inh_rec.user_id,
        DESCRIPTION = l_def_inh_rec.description,
        STATUS = l_def_inh_rec.status,
        TASK_NAME = l_def_inh_rec.task_name,
        TASK_RESULT = l_def_inh_rec.task_result,
        CREATION_DATE = l_def_inh_rec.creation_date,
        CREATED_BY = l_def_inh_rec.created_by,
        LAST_UPDATE_DATE = l_def_inh_rec.last_update_date,
        LAST_UPDATED_BY = l_def_inh_rec.last_updated_by,
        LAST_UPDATE_LOGIN = l_def_inh_rec.last_update_login,
        OBJECT_VERSION_NUMBER = l_def_inh_rec.object_version_number
    WHERE ID = l_def_inh_rec.id;
Line: 1676

  END update_row;
Line: 1680

  PROCEDURE update_row(
    p_api_version                  IN NUMBER,
    p_init_msg_list                IN VARCHAR2 DEFAULT OKC_API.G_FALSE,
    x_return_status                OUT NOCOPY VARCHAR2,
    x_msg_count                    OUT NOCOPY NUMBER,
    x_msg_data                     OUT NOCOPY VARCHAR2,
    p_inhv_rec                     IN inhv_rec_type,
    x_inhv_rec                     OUT NOCOPY inhv_rec_type) IS

    l_api_version                  CONSTANT NUMBER := 1;
Line: 1690

    l_api_name                     CONSTANT VARCHAR2(30) := 'V_update_row';
Line: 1705

      l_inhv_rec.LAST_UPDATE_DATE := SYSDATE;
Line: 1706

      l_inhv_rec.LAST_UPDATED_BY := FND_GLOBAL.USER_ID;
Line: 1707

      l_inhv_rec.LAST_UPDATE_LOGIN := FND_GLOBAL.LOGIN_ID;
Line: 1778

        IF (x_inhv_rec.last_update_date = OKC_API.G_MISS_DATE)
        THEN
          x_inhv_rec.last_update_date := l_db_inhv_rec.last_update_date;
Line: 1782

        IF (x_inhv_rec.last_updated_by = OKC_API.G_MISS_NUM)
        THEN
          x_inhv_rec.last_updated_by := l_db_inhv_rec.last_updated_by;
Line: 1786

        IF (x_inhv_rec.last_update_login = OKC_API.G_MISS_NUM)
        THEN
          x_inhv_rec.last_update_login := l_db_inhv_rec.last_update_login;
Line: 1871

    update_row(
      p_init_msg_list,
      l_return_status,
      x_msg_count,
      x_msg_data,
      l_inh_rec,
      lx_inh_rec
    );
Line: 1919

  END update_row;
Line: 1923

  PROCEDURE update_row(
    p_api_version                  IN NUMBER,
    p_init_msg_list                IN VARCHAR2 DEFAULT OKC_API.G_FALSE,
    x_return_status                OUT NOCOPY VARCHAR2,
    x_msg_count                    OUT NOCOPY NUMBER,
    x_msg_data                     OUT NOCOPY VARCHAR2,
    p_inhv_tbl                     IN inhv_tbl_type,
    x_inhv_tbl                     OUT NOCOPY inhv_tbl_type,
    px_error_tbl                   IN OUT NOCOPY OKC_API.ERROR_TBL_TYPE) IS

    l_api_version                  CONSTANT NUMBER := 1;
Line: 1934

    l_api_name                     CONSTANT VARCHAR2(30) := 'V_error_tbl_update_row';
Line: 1948

          update_row (
            p_api_version                  => p_api_version,
            p_init_msg_list                => OKC_API.G_FALSE,
            x_return_status                => l_error_rec.error_type,
            x_msg_count                    => l_error_rec.msg_count,
            x_msg_data                     => l_error_rec.msg_data,
            p_inhv_rec                     => p_inhv_tbl(i),
            x_inhv_rec                     => x_inhv_tbl(i));
Line: 2016

  END update_row;
Line: 2021

  PROCEDURE update_row(
    p_api_version                  IN NUMBER,
    p_init_msg_list                IN VARCHAR2 DEFAULT OKC_API.G_FALSE,
    x_return_status                OUT NOCOPY VARCHAR2,
    x_msg_count                    OUT NOCOPY NUMBER,
    x_msg_data                     OUT NOCOPY VARCHAR2,
    p_inhv_tbl                     IN inhv_tbl_type,
    x_inhv_tbl                     OUT NOCOPY inhv_tbl_type) IS

    l_api_version                  CONSTANT NUMBER := 1;
Line: 2031

    l_api_name                     CONSTANT VARCHAR2(30) := 'V_tbl_update_row';
Line: 2038

      update_row (
        p_api_version                  => p_api_version,
        p_init_msg_list                => OKC_API.G_FALSE,
        x_return_status                => x_return_status,
        x_msg_count                    => x_msg_count,
        x_msg_data                     => x_msg_data,
        p_inhv_tbl                     => p_inhv_tbl,
        x_inhv_tbl                     => x_inhv_tbl,
        px_error_tbl                   => l_error_tbl);
Line: 2080

  END update_row;
Line: 2088

  PROCEDURE delete_row(
    p_init_msg_list                IN VARCHAR2 DEFAULT OKC_API.G_FALSE,
    x_return_status                OUT NOCOPY VARCHAR2,
    x_msg_count                    OUT NOCOPY NUMBER,
    x_msg_data                     OUT NOCOPY VARCHAR2,
    p_inh_rec                      IN inh_rec_type) IS

    l_api_version                  CONSTANT NUMBER := 1;
Line: 2096

    l_api_name                     CONSTANT VARCHAR2(30) := 'B_delete_row';
Line: 2111

    DELETE FROM OKS_INTERACTION_HISTORY
     WHERE ID = p_inh_rec.id;
Line: 2147

  END delete_row;
Line: 2151

  PROCEDURE delete_row(
    p_api_version                  IN NUMBER,
    p_init_msg_list                IN VARCHAR2 DEFAULT OKC_API.G_FALSE,
    x_return_status                OUT NOCOPY VARCHAR2,
    x_msg_count                    OUT NOCOPY NUMBER,
    x_msg_data                     OUT NOCOPY VARCHAR2,
    p_inhv_rec                     IN inhv_rec_type) IS

    l_api_version                  CONSTANT NUMBER := 1;
Line: 2160

    l_api_name                     CONSTANT VARCHAR2(30) := 'V_delete_row';
Line: 2184

    delete_row(
      p_init_msg_list,
      l_return_status,
      x_msg_count,
      x_msg_data,
      l_inh_rec
    );
Line: 2229

  END delete_row;
Line: 2233

  PROCEDURE delete_row(
    p_api_version                  IN NUMBER,
    p_init_msg_list                IN VARCHAR2 DEFAULT OKC_API.G_FALSE,
    x_return_status                OUT NOCOPY VARCHAR2,
    x_msg_count                    OUT NOCOPY NUMBER,
    x_msg_data                     OUT NOCOPY VARCHAR2,
    p_inhv_tbl                     IN inhv_tbl_type,
    px_error_tbl                   IN OUT NOCOPY OKC_API.ERROR_TBL_TYPE) IS

    l_api_version                  CONSTANT NUMBER := 1;
Line: 2243

    l_api_name                     CONSTANT VARCHAR2(30) := 'V_error_tbl_delete_row';
Line: 2257

          delete_row (
            p_api_version                  => p_api_version,
            p_init_msg_list                => OKC_API.G_FALSE,
            x_return_status                => l_error_rec.error_type,
            x_msg_count                    => l_error_rec.msg_count,
            x_msg_data                     => l_error_rec.msg_data,
            p_inhv_rec                     => p_inhv_tbl(i));
Line: 2324

  END delete_row;
Line: 2329

  PROCEDURE delete_row(
    p_api_version                  IN NUMBER,
    p_init_msg_list                IN VARCHAR2 DEFAULT OKC_API.G_FALSE,
    x_return_status                OUT NOCOPY VARCHAR2,
    x_msg_count                    OUT NOCOPY NUMBER,
    x_msg_data                     OUT NOCOPY VARCHAR2,
    p_inhv_tbl                     IN inhv_tbl_type) IS

    l_api_version                  CONSTANT NUMBER := 1;
Line: 2338

    l_api_name                     CONSTANT VARCHAR2(30) := 'V_tbl_delete_row';
Line: 2345

      delete_row (
        p_api_version                  => p_api_version,
        p_init_msg_list                => OKC_API.G_FALSE,
        x_return_status                => x_return_status,
        x_msg_count                    => x_msg_count,
        x_msg_data                     => x_msg_data,
        p_inhv_tbl                     => p_inhv_tbl,
        px_error_tbl                   => l_error_tbl);
Line: 2386

  END delete_row;