DBA Data[Home] [Help]

APPS.RG_DSS_DIMENSIONS_PKG SQL Statements

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

Line: 44

  SELECT    1
  INTO      dummy
  FROM      dual
  WHERE     NOT EXISTS
             (SELECT    1
              FROM      rg_dss_systems sys,
                        rg_dss_system_variables svr,
                        rg_dss_var_dimensions vdm,
                        rg_dss_dimensions dim
              WHERE     dim.dimension_id = X_Dimension_Id
              AND       dim.dimension_id = vdm.dimension_id
              AND       vdm.variable_id = svr.variable_id
              AND       svr.system_id = sys.system_id
              AND       sys.freeze_flag = 'Y');
Line: 69

  SELECT    1
  INTO      dummy
  FROM      dual
  WHERE     NOT EXISTS
             (SELECT    1
              FROM      rg_dss_dimensions
              WHERE     name = X_name
              AND       ((X_rowid IS NULL) OR (rowid <> X_rowid))
             );
Line: 91

  SELECT    1
  INTO      dummy
  FROM      dual
  WHERE     NOT EXISTS
             (SELECT    1
              FROM      rg_dss_dimensions
              WHERE     object_name = X_object_name
              AND       ((X_rowid IS NULL) OR (rowid <> X_rowid))
             );
Line: 114

  SELECT    1
  INTO      dummy
  FROM      dual
  WHERE     NOT EXISTS
             (SELECT    1
              FROM      rg_dss_dimensions
              WHERE     object_prefix = X_object_prefix
              AND       ((X_rowid IS NULL) OR (rowid <> X_rowid))
             );
Line: 146

  SELECT    1
  INTO      dummy
  FROM      dual
  WHERE     NOT EXISTS
             (SELECT    1
              FROM      rg_dss_var_dimensions
              WHERE     dimension_id = X_dimension_id
              UNION ALL
              SELECT    1
              FROM      rg_dss_hierarchies
              WHERE     dimension_id = X_dimension_id
             );
Line: 169

  SELECT    rg_dss_dimensions_s.nextval
  INTO      next_dimension_id
  FROM      dual;
Line: 180

  SELECT COUNT(dimension_id)
  INTO   NumRecords
  FROM   rg_dss_dim_segments
  WHERE  dimension_id = X_dimension_id;
Line: 202

    SELECT range_set_id, application_column_name, account_type
    INTO   RangeSetId, ApplicationColumnName, AccountType
    FROM   rg_dss_dim_segments
    WHERE  dimension_id = X_dimension_id;
Line: 228

PROCEDURE pre_insert(X_Rowid VARCHAR2,
                     X_Name  VARCHAR2,
                     X_Object_Name VARCHAR2,
                     X_Object_Prefix VARCHAR2,
                     X_Level_Code    VARCHAR2,
                     X_Dimension_Id IN OUT NOCOPY NUMBER,
                     X_Dimension_Type IN OUT NOCOPY VARCHAR2) IS
  NumRecords NUMBER;
Line: 255

END pre_insert;
Line: 258

PROCEDURE pre_update(X_Level_Code  VARCHAR2,
                     X_Dimension_Id NUMBER) IS
  NumRecords NUMBER;
Line: 277

END pre_update;
Line: 280

PROCEDURE pre_delete(X_Dimension_Id NUMBER) IS
BEGIN
  IF (RG_DSS_DIMENSIONS_PKG.used_in_frozen_system(X_Dimension_Id) = 1) THEN
    -- can't modify a dimension that is used in a frozen system
    FND_MESSAGE.set_name('RG', 'RG_DSS_FROZEN_SYSTEM');
Line: 288

END pre_delete;
Line: 290

  PROCEDURE Insert_Row(X_Rowid                   IN OUT NOCOPY VARCHAR2,
                       X_Dimension_Id                   NUMBER,
                       X_Name                           VARCHAR2,
                       X_Object_Name                    VARCHAR2,
                       X_Object_Prefix                  VARCHAR2,
                       X_Value_Prefix                   VARCHAR2,
                       X_Row_Label                      VARCHAR2,
                       X_Column_Label                   VARCHAR2,
                       X_Selector_Label                 VARCHAR2,
                       X_Level_Code                     VARCHAR2,
                       X_Dimension_Type                 VARCHAR2,
                       X_Dimension_By_Currency          VARCHAR2,
                       X_Last_Update_Date               DATE,
                       X_Last_Updated_By                NUMBER,
                       X_Creation_Date                  DATE,
                       X_Created_By                     NUMBER,
                       X_Last_Update_Login              NUMBER,
                       X_Id_Flex_Code                   VARCHAR2,
                       X_Id_Flex_Num                    NUMBER,
                       X_Description                    VARCHAR2,
                       X_Context                        VARCHAR2,
                       X_Attribute1                     VARCHAR2,
                       X_Attribute2                     VARCHAR2,
                       X_Attribute3                     VARCHAR2,
                       X_Attribute4                     VARCHAR2,
                       X_Attribute5                     VARCHAR2,
                       X_Attribute6                     VARCHAR2,
                       X_Attribute7                     VARCHAR2,
                       X_Attribute8                     VARCHAR2,
                       X_Attribute9                     VARCHAR2,
                       X_Attribute10                    VARCHAR2,
                       X_Attribute11                    VARCHAR2,
                       X_Attribute12                    VARCHAR2,
                       X_Attribute13                    VARCHAR2,
                       X_Attribute14                    VARCHAR2,
                       X_Attribute15                    VARCHAR2
  ) IS
    CURSOR C IS SELECT rowid FROM rg_dss_dimensions
                 WHERE dimension_id = X_Dimension_Id;
Line: 330

       INSERT INTO rg_dss_dimensions(
              dimension_id,
              name,
              object_name,
              object_prefix,
              value_prefix,
              row_label,
              column_label,
              selector_label,
              level_code,
              dimension_type,
              dimension_by_currency,
              last_update_date,
              last_updated_by,
              creation_date,
              created_by,
              last_update_login,
              id_flex_code,
              id_flex_num,
              description,
              context,
              attribute1,
              attribute2,
              attribute3,
              attribute4,
              attribute5,
              attribute6,
              attribute7,
              attribute8,
              attribute9,
              attribute10,
              attribute11,
              attribute12,
              attribute13,
              attribute14,
              attribute15
             ) VALUES (
              X_Dimension_Id,
              X_Name,
              X_Object_Name,
              X_Object_Prefix,
              X_Value_Prefix,
              X_Row_Label,
              X_Column_Label,
              X_Selector_Label,
              X_Level_Code,
              X_Dimension_Type,
              X_Dimension_By_Currency,
              X_Last_Update_Date,
              X_Last_Updated_By,
              X_Creation_Date,
              X_Created_By,
              X_Last_Update_Login,
              X_Id_Flex_Code,
              X_Id_Flex_Num,
              X_Description,
              X_Context,
              X_Attribute1,
              X_Attribute2,
              X_Attribute3,
              X_Attribute4,
              X_Attribute5,
              X_Attribute6,
              X_Attribute7,
              X_Attribute8,
              X_Attribute9,
              X_Attribute10,
              X_Attribute11,
              X_Attribute12,
              X_Attribute13,
              X_Attribute14,
              X_Attribute15
             );
Line: 411

  END Insert_Row;
Line: 414

  PROCEDURE Update_Row(X_Rowid                          VARCHAR2,
                       X_Dimension_Id                   NUMBER,
                       X_Name                           VARCHAR2,
                       X_Object_Name                    VARCHAR2,
                       X_Object_Prefix                  VARCHAR2,
                       X_Value_Prefix                   VARCHAR2,
                       X_Row_Label                      VARCHAR2,
                       X_Column_Label                   VARCHAR2,
                       X_Selector_Label                 VARCHAR2,
                       X_Level_Code                     VARCHAR2,
                       X_Dimension_Type                 VARCHAR2,
                       X_Dimension_By_Currency          VARCHAR2,
                       X_Last_Update_Date               DATE,
                       X_Last_Updated_By                NUMBER,
                       X_Last_Update_Login              NUMBER,
                       X_Id_Flex_Code                   VARCHAR2,
                       X_Id_Flex_Num                    NUMBER,
                       X_Description                    VARCHAR2,
                       X_Context                        VARCHAR2,
                       X_Attribute1                     VARCHAR2,
                       X_Attribute2                     VARCHAR2,
                       X_Attribute3                     VARCHAR2,
                       X_Attribute4                     VARCHAR2,
                       X_Attribute5                     VARCHAR2,
                       X_Attribute6                     VARCHAR2,
                       X_Attribute7                     VARCHAR2,
                       X_Attribute8                     VARCHAR2,
                       X_Attribute9                     VARCHAR2,
                       X_Attribute10                    VARCHAR2,
                       X_Attribute11                    VARCHAR2,
                       X_Attribute12                    VARCHAR2,
                       X_Attribute13                    VARCHAR2,
                       X_Attribute14                    VARCHAR2,
                       X_Attribute15                    VARCHAR2
  ) IS
  BEGIN
    UPDATE rg_dss_dimensions
    SET
       dimension_id                    =     X_Dimension_Id,
       name                            =     X_Name,
       object_name                     =     X_Object_Name,
       object_prefix                   =     X_Object_Prefix,
       value_prefix                    =     X_Value_Prefix,
       row_label                       =     X_Row_Label,
       column_label                    =     X_Column_Label,
       selector_label                  =     X_Selector_Label,
       level_code                      =     X_Level_Code,
       dimension_type                  =     X_Dimension_Type,
       dimension_by_currency           =     X_Dimension_By_Currency,
       last_update_date                =     X_Last_Update_Date,
       last_updated_by                 =     X_Last_Updated_By,
       last_update_login               =     X_Last_Update_Login,
       id_flex_code                    =     X_Id_Flex_Code,
       id_flex_num                     =     X_Id_Flex_Num,
       description                     =     X_Description,
       context                         =     X_Context,
       attribute1                      =     X_Attribute1,
       attribute2                      =     X_Attribute2,
       attribute3                      =     X_Attribute3,
       attribute4                      =     X_Attribute4,
       attribute5                      =     X_Attribute5,
       attribute6                      =     X_Attribute6,
       attribute7                      =     X_Attribute7,
       attribute8                      =     X_Attribute8,
       attribute9                      =     X_Attribute9,
       attribute10                     =     X_Attribute10,
       attribute11                     =     X_Attribute11,
       attribute12                     =     X_Attribute12,
       attribute13                     =     X_Attribute13,
       attribute14                     =     X_Attribute14,
       attribute15                     =     X_Attribute15
    WHERE rowid = X_Rowid;
Line: 490

  END Update_Row;
Line: 499

                       X_Selector_Label                 VARCHAR2,
                       X_Level_Code                     VARCHAR2,
                       X_Dimension_Type                 VARCHAR2,
                       X_Dimension_By_Currency          VARCHAR2,
                       X_Id_Flex_Code                   VARCHAR2,
                       X_Id_Flex_Num                    NUMBER,
                       X_Description                    VARCHAR2,
                       X_Context                        VARCHAR2,
                       X_Attribute1                     VARCHAR2,
                       X_Attribute2                     VARCHAR2,
                       X_Attribute3                     VARCHAR2,
                       X_Attribute4                     VARCHAR2,
                       X_Attribute5                     VARCHAR2,
                       X_Attribute6                     VARCHAR2,
                       X_Attribute7                     VARCHAR2,
                       X_Attribute8                     VARCHAR2,
                       X_Attribute9                     VARCHAR2,
                       X_Attribute10                    VARCHAR2,
                       X_Attribute11                    VARCHAR2,
                       X_Attribute12                    VARCHAR2,
                       X_Attribute13                    VARCHAR2,
                       X_Attribute14                    VARCHAR2,
                       X_Attribute15                    VARCHAR2,
                       X_Owner                          VARCHAR2,
		       X_Force_Edits                    VARCHAR2) IS
    user_id number := 0;
Line: 541

          the creation date for update_row. */
        SELECT rowid
        into   v_rowid
        FROM   rg_dss_dimensions
        WHERE  dimension_id = X_Dimension_Id;
Line: 548

            RG_DSS_DIMENSIONS_PKG.Insert_Row(
                X_Rowid                => v_rowid,
                X_Dimension_Id         => X_Dimension_Id,
                X_Name                 => X_Name,
                X_Object_Name          => X_Object_Name,
                X_Object_Prefix        => X_Object_Prefix,
                X_Value_Prefix         => X_Value_Prefix,
                X_Row_Label            => X_Row_Label,
                X_Column_Label         => X_Column_Label,
                X_Selector_Label       => X_Selector_Label,
                X_Level_Code           => X_Level_Code,
                X_Dimension_Type       => X_Dimension_Type,
                X_Dimension_By_Currency=> X_Dimension_By_Currency,
                X_Last_Update_Date     => sysdate,
                X_Last_Updated_By      => user_id,
                X_Creation_Date        => sysdate,
                X_Created_By           => user_id,
                X_Last_Update_Login    => 0,
                X_Id_Flex_Code         => X_Id_Flex_Code,
                X_Id_Flex_Num          => X_Id_Flex_Num,
                X_Description          => X_Description,
                X_Context              => X_Context,
                X_Attribute1           => X_Attribute1,
                X_Attribute2           => X_Attribute2,
                X_Attribute3           => X_Attribute3,
                X_Attribute4           => X_Attribute4,
                X_Attribute5           => X_Attribute5,
                X_Attribute6           => X_Attribute6,
                X_Attribute7           => X_Attribute7,
                X_Attribute8           => X_Attribute8,
                X_Attribute9           => X_Attribute9,
                X_Attribute10          => X_Attribute10,
                X_Attribute11          => X_Attribute11,
                X_Attribute12          => X_Attribute12,
                X_Attribute13          => X_Attribute13,
                X_Attribute14          => X_Attribute14,
                X_Attribute15          => X_Attribute15);
Line: 589

            RG_DSS_DIMENSIONS_PKG.Update_Row(
                X_Rowid                => v_rowid,
                X_Dimension_Id         => X_Dimension_Id,
                X_Name                 => X_Name,
                X_Object_Name          => X_Object_Name,
                X_Object_Prefix        => X_Object_Prefix,
                X_Value_Prefix         => X_Value_Prefix,
                X_Row_Label            => X_Row_Label,
                X_Column_Label         => X_Column_Label,
                X_Selector_Label       => X_Selector_Label,
                X_Level_Code           => X_Level_Code,
                X_Dimension_Type       => X_Dimension_Type,
                X_Dimension_By_Currency=> X_Dimension_By_Currency,
                X_Last_Update_Date     => sysdate,
                X_Last_Updated_By      => user_id,
                X_Last_Update_Login    => 0,
                X_Id_Flex_Code         => X_Id_Flex_Code,
                X_Id_Flex_Num          => X_Id_Flex_Num,
                X_Description          => X_Description,
                X_Context              => X_Context,
                X_Attribute1           => X_Attribute1,
                X_Attribute2           => X_Attribute2,
                X_Attribute3           => X_Attribute3,
                X_Attribute4           => X_Attribute4,
                X_Attribute5           => X_Attribute5,
                X_Attribute6           => X_Attribute6,
                X_Attribute7           => X_Attribute7,
                X_Attribute8           => X_Attribute8,
                X_Attribute9           => X_Attribute9,
                X_Attribute10          => X_Attribute10,
                X_Attribute11          => X_Attribute11,
                X_Attribute12          => X_Attribute12,
                X_Attribute13          => X_Attribute13,
                X_Attribute14          => X_Attribute14,
                X_Attribute15          => X_Attribute15);
Line: 640

         UPDATE rg_dss_dimensions
         SET
             dimension_id  =     X_Dimension_Id,
             name          =     nvl(X_Name, name),
             description   =     nvl(X_Description, description),
	     last_update_date  = sysdate,
	     last_updated_by   = user_id,
	     last_Update_login = 0
         WHERE  dimension_id = X_Dimension_Id
         AND    userenv('LANG') =
             ( SELECT language_code
                FROM  FND_LANGUAGES
		WHERE  installed_flag = 'B' );