DBA Data[Home] [Help]

APPS.XLA_EVENT_SOURCES_F_PKG SQL Statements

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

Line: 68

|  Procedure insert_row                                                 |
|                                                                       |
+======================================================================*/
PROCEDURE insert_row
  (x_rowid                            IN OUT NOCOPY VARCHAR2
  ,x_application_id                   IN NUMBER
  ,x_entity_code                      IN VARCHAR2
  ,x_event_class_code                 IN VARCHAR2
  ,x_source_application_id            IN NUMBER
  ,x_source_type_code                 IN VARCHAR2
  ,x_source_code                      IN VARCHAR2
  ,x_level_code                       IN VARCHAR2
  ,x_active_flag                     IN VARCHAR2
  ,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   xla_event_sources
WHERE  application_id                   = x_application_id
  AND  entity_code                      = x_entity_code
  AND  event_class_code                 = x_event_class_code
  AND  source_application_id            = x_source_application_id
  AND  source_type_code                 = x_source_type_code
  AND  source_code                      = x_source_code
;
Line: 104

    l_log_module := C_DEFAULT_MODULE||'.insert_row';
Line: 108

    trace(p_msg    => 'BEGIN of procedure insert_row',
          p_module => l_log_module,
          p_level  => C_LEVEL_PROCEDURE);
Line: 114

INSERT INTO xla_event_sources
(creation_date
,created_by
,application_id
,entity_code
,event_class_code
,source_application_id
,source_type_code
,source_code
,level_code
,active_flag
,last_update_date
,last_updated_by
,last_update_login)
VALUES
(x_creation_date
,x_created_by
,x_application_id
,x_entity_code
,x_event_class_code
,x_source_application_id
,x_source_type_code
,x_source_code
,x_level_code
,x_active_flag
,x_last_update_date
,x_last_updated_by
,x_last_update_login)
;
Line: 154

    trace(p_msg    => 'END of procedure insert_row',
          p_module => l_log_module,
          p_level  => C_LEVEL_PROCEDURE);
Line: 159

END insert_row;
Line: 180

SELECT application_id
      ,entity_code
      ,event_class_code
      ,source_application_id
      ,source_type_code
      ,source_code
      ,level_code
      ,active_flag
FROM   xla_event_sources
WHERE  application_id                   = x_application_id
  AND  entity_code                      = x_entity_code
  AND  event_class_code                 = x_event_class_code
  AND  source_application_id            = x_source_application_id
  AND  source_type_code                 = x_source_type_code
  AND  source_code                      = x_source_code
FOR UPDATE OF application_id NOWAIT;
Line: 217

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

|  Procedure update_row                                                 |
|                                                                       |
+======================================================================*/
PROCEDURE update_row
  (x_rowid                            IN OUT NOCOPY VARCHAR2
  ,x_application_id                   IN NUMBER
  ,x_entity_code                      IN VARCHAR2
  ,x_event_class_code                 IN VARCHAR2
  ,x_source_application_id            IN NUMBER
  ,x_source_type_code                 IN VARCHAR2
  ,x_source_code                      IN VARCHAR2
  ,x_level_code                       IN VARCHAR2
  ,x_active_flag                     IN VARCHAR2
  ,x_last_update_date                 IN DATE
  ,x_last_updated_by                  IN NUMBER
  ,x_last_update_login                IN NUMBER)
IS

  l_log_module            VARCHAR2(240);
Line: 271

    l_log_module := C_DEFAULT_MODULE||'.update_row';
Line: 275

    trace(p_msg    => 'BEGIN of procedure update_row',
          p_module => l_log_module,
          p_level  => C_LEVEL_PROCEDURE);
Line: 280

UPDATE xla_event_sources
   SET
       last_update_date                 = x_last_update_date
      ,level_code                       = x_level_code
      ,active_flag                     = x_active_flag
      ,last_updated_by                  = x_last_updated_by
      ,last_update_login                = x_last_update_login
WHERE  application_id                   = X_application_id
  AND  entity_code                      = x_entity_code
  AND  event_class_code                 = x_event_class_code
  AND  source_application_id            = x_source_application_id
  AND  source_type_code                 = X_source_type_code
  AND  source_code                      = X_source_code;
Line: 299

    trace(p_msg    => 'END of procedure update_row',
          p_module => l_log_module,
          p_level  => C_LEVEL_PROCEDURE);
Line: 304

END update_row;
Line: 308

|  Procedure delete_row                                                 |
|                                                                       |
+======================================================================*/
PROCEDURE delete_row
  (x_application_id                   IN NUMBER
  ,x_entity_code                      IN VARCHAR2
  ,x_event_class_code                 IN VARCHAR2
  ,x_source_application_id            IN NUMBER
  ,x_source_type_code                 IN VARCHAR2
  ,x_source_code                      IN VARCHAR2)

IS

  l_log_module            VARCHAR2(240);
Line: 325

    l_log_module := C_DEFAULT_MODULE||'.delete_row';
Line: 329

    trace(p_msg    => 'BEGIN of procedure delete_row',
          p_module => l_log_module,
          p_level  => C_LEVEL_PROCEDURE);
Line: 334

DELETE FROM xla_event_sources
WHERE application_id                   = x_application_id
  AND entity_code                      = x_entity_code
  AND event_class_code                 = x_event_class_code
  AND source_application_id            = x_source_application_id
  AND source_type_code                 = x_source_type_code
  AND source_code                      = x_source_code;
Line: 348

    trace(p_msg    => 'END of procedure delete_row',
          p_module => l_log_module,
          p_level  => C_LEVEL_PROCEDURE);
Line: 353

END delete_row;
Line: 371

,p_last_update_date                   IN VARCHAR2)
IS
  CURSOR c_app_id(p_app_short_name VARCHAR2) IS
  SELECT application_id
  FROM   fnd_application
  WHERE  application_short_name          = p_app_short_name;
Line: 383

  f_ludate                DATE;        -- entity update date in file
Line: 385

  db_ludate               DATE;        -- entity update date in db
Line: 403

  f_ludate := nvl(to_date(p_last_update_date, 'YYYY/MM/DD'), sysdate);
Line: 415

    SELECT last_updated_by, last_update_date
      INTO db_luby, db_ludate
      FROM xla_event_sources
     WHERE application_id       = l_application_id
       AND entity_code          = p_entity_code
       AND event_class_code     = p_event_class_code
       AND source_application_id= l_source_app_id
       AND source_type_code     = p_source_type_code
       AND source_code          = p_source_code;
Line: 426

      xla_event_sources_f_pkg.update_row
          (x_rowid                         => l_rowid
          ,x_application_id                => l_application_id
          ,x_entity_code                   => p_entity_code
          ,x_event_class_code              => p_event_class_code
          ,x_source_application_id         => l_source_app_id
          ,x_source_type_code              => p_source_type_code
          ,x_source_code                   => p_source_code
          ,x_active_flag                   => p_active_flag
          ,x_level_code                    => p_level_code
          ,x_last_update_date              => f_ludate
          ,x_last_updated_by               => f_luby
          ,x_last_update_login             => 0);
Line: 444

      xla_event_sources_f_pkg.insert_row
          (x_rowid                         => l_rowid
          ,x_application_id                => l_application_id
          ,x_entity_code                   => p_entity_code
          ,x_event_class_code              => p_event_class_code
          ,x_source_application_id         => l_source_app_id
          ,x_source_type_code              => p_source_type_code
          ,x_source_code                   => p_source_code
          ,x_active_flag                   => p_active_flag
          ,x_level_code                    => p_level_code
          ,x_creation_date                 => f_ludate
          ,x_created_by                    => f_luby
          ,x_last_update_date              => f_ludate
          ,x_last_updated_by               => f_luby
          ,x_last_update_login             => 0);