DBA Data[Home] [Help]

APPS.GL_DEFAS_ACCESS_DETAILS_PKG SQL Statements

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

Line: 122

    query_stat := 'SELECT '||name_column||' FROM '||table_name||
                  ' WHERE '||id_column||'= :1';
Line: 161

    query_stat := 'SELECT '||id_column||' FROM '||table_name||
                  ' WHERE '||name_column||'= :1';
Line: 187

    update_stat  VARCHAR2(5000);
Line: 196

    select definition_access_set_id
    from gl_defas_access_sets
    where definition_access_set = 'SUPER_USER_DEFAS';
Line: 208

    query_stat := 'SELECT security_flag FROM '||table_name||
		  ' WHERE to_char('||id_column||')= :1';
Line: 226

       update_stat := 'UPDATE '||table_name||' SET security_flag = ''Y'''||
                      ' WHERE to_char('||id_column||')= :1';
Line: 229

       dbms_sql.parse(c,update_stat,dbms_sql.native);
Line: 241

       Insert_Row(rowid,
	  	  defasId,
		  X_Obj_Type,
		  X_Obj_Key,
		  'Y',
		  'Y',
		  'Y',
		  luser_id,
		  llogin_id,
 		  sysdate,
		  'I',
		  NULL,
		  NULL,
		  NULL,
		  NULL,
		  NULL,
		  NULL,
		  NULL,
		  NULL,
		  NULL,
		  NULL,
		  NULL,
		  NULL,
		  NULL,
		  NULL,
		  NULL,
		  NULL,
		  NULL);
Line: 273

  PROCEDURE Insert_Row(
                       X_Rowid              IN OUT NOCOPY VARCHAR2,
                       X_Definition_Access_Set_Id  NUMBER,
                       X_Object_Type               VARCHAR2,
                       X_Object_Key                VARCHAR2,
                       X_View_Access_Flag          VARCHAR2,
                       X_Use_Access_Flag            VARCHAR2,
                       X_Modify_Access_Flag        VARCHAR2,
                       X_User_Id                   NUMBER,
                       X_Login_Id                  NUMBER,
                       X_Date                      DATE,
                       X_Status_Code               VARCHAR2 DEFAULT NULL,
                       X_Context                   VARCHAR2 DEFAULT NULL,
                       X_Attribute1                VARCHAR2 DEFAULT NULL,
                       X_Attribute2                VARCHAR2 DEFAULT NULL,
                       X_Attribute3                VARCHAR2 DEFAULT NULL,
                       X_Attribute4                VARCHAR2 DEFAULT NULL,
                       X_Attribute5                VARCHAR2 DEFAULT NULL,
                       X_Attribute6                VARCHAR2 DEFAULT NULL,
                       X_Attribute7                VARCHAR2 DEFAULT NULL,
                       X_Attribute8                VARCHAR2 DEFAULT NULL,
                       X_Attribute9                VARCHAR2 DEFAULT NULL,
                       X_Attribute10               VARCHAR2 DEFAULT NULL,
                       X_Attribute11               VARCHAR2 DEFAULT NULL,
                       X_Attribute12               VARCHAR2 DEFAULT NULL,
                       X_Attribute13               VARCHAR2 DEFAULT NULL,
                       X_Attribute14               VARCHAR2 DEFAULT NULL,
                       X_Attribute15               VARCHAR2 DEFAULT NULL,
                       X_Request_Id                NUMBER)IS

     CURSOR C IS
       SELECT rowid
       FROM gl_defas_assignments
       WHERE definition_access_set_id = X_Definition_Access_Set_Id
       AND   object_type = X_Object_Type
       AND   object_key = X_Object_Key;
Line: 310

     INSERT INTO gl_defas_assignments
     (definition_access_set_id,
      object_type,
      object_key,
      view_access_flag,
      use_access_flag,
      modify_access_flag,
      last_update_date,
      last_updated_by,
      creation_date,
      created_by,
      last_update_login,
      status_code,
      context,
      attribute1,
      attribute2,
      attribute3,
      attribute4,
      attribute5,
      attribute6,
      attribute7,
      attribute8,
      attribute9,
      attribute10,
      attribute11,
      attribute12,
      attribute13,
      attribute14,
      attribute15,
      request_id)
     VALUES
     (X_Definition_Access_Set_Id,
      X_Object_Type,
      X_Object_Key,
      X_View_Access_Flag,
      X_Use_Access_Flag,
      X_Modify_Access_Flag,
      X_Date,
      X_User_Id,
      X_Date,
      X_User_Id,
      X_Login_Id,
      X_Status_Code,
      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,
      X_Request_Id);
Line: 378

  END Insert_Row;
Line: 380

  PROCEDURE Update_Row(
                       X_Rowid              IN OUT NOCOPY VARCHAR2,
                       X_View_Access_Flag          VARCHAR2,
                       X_Use_Access_Flag            VARCHAR2,
                       X_Modify_Access_Flag        VARCHAR2,
                       X_Last_Update_Date          DATE,
                       X_Last_Updated_By           NUMBER,
                       X_Last_Update_Login         NUMBER,
                       X_Request_Id                NUMBER,
                       X_Status_Code               VARCHAR2,
                       X_Context                   VARCHAR2 DEFAULT NULL,
                       X_Attribute1                VARCHAR2 DEFAULT NULL,
                       X_Attribute2                VARCHAR2 DEFAULT NULL,
                       X_Attribute3                VARCHAR2 DEFAULT NULL,
                       X_Attribute4                VARCHAR2 DEFAULT NULL,
                       X_Attribute5                VARCHAR2 DEFAULT NULL,
                       X_Attribute6                VARCHAR2 DEFAULT NULL,
                       X_Attribute7                VARCHAR2 DEFAULT NULL,
                       X_Attribute8                VARCHAR2 DEFAULT NULL,
                       X_Attribute9                VARCHAR2 DEFAULT NULL,
                       X_Attribute10               VARCHAR2 DEFAULT NULL,
                       X_Attribute11               VARCHAR2 DEFAULT NULL,
                       X_Attribute12               VARCHAR2 DEFAULT NULL,
                       X_Attribute13               VARCHAR2 DEFAULT NULL,
                       X_Attribute14               VARCHAR2 DEFAULT NULL,
                       X_Attribute15               VARCHAR2 DEFAULT NULL) IS
  BEGIN
  UPDATE gl_defas_assignments
  SET view_access_flag = X_View_Access_Flag,
      use_access_flag = X_Use_Access_Flag,
      modify_access_flag = X_Modify_Access_Flag,
      last_update_date = X_Last_Update_Date,
      last_updated_by = X_Last_Updated_By,
      last_update_login = X_Last_Update_Login,
      request_id = X_Request_Id,
      status_code = X_Status_Code,
      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: 438

  END Update_Row;
Line: 449

                       X_Last_Update_Date          DATE,
                       X_Last_Updated_By           NUMBER,
                       X_Creation_Date             DATE,
                       X_Created_By                NUMBER,
                       X_Last_Update_Login         NUMBER,
                       X_Status_Code               VARCHAR2 DEFAULT NULL,
                       X_Context                   VARCHAR2 DEFAULT NULL,
                       X_Attribute1                VARCHAR2 DEFAULT NULL,
                       X_Attribute2                VARCHAR2 DEFAULT NULL,
                       X_Attribute3                VARCHAR2 DEFAULT NULL,
                       X_Attribute4                VARCHAR2 DEFAULT NULL,
                       X_Attribute5                VARCHAR2 DEFAULT NULL,
                       X_Attribute6                VARCHAR2 DEFAULT NULL,
                       X_Attribute7                VARCHAR2 DEFAULT NULL,
                       X_Attribute8                VARCHAR2 DEFAULT NULL,
                       X_Attribute9                VARCHAR2 DEFAULT NULL,
                       X_Attribute10               VARCHAR2 DEFAULT NULL,
                       X_Attribute11               VARCHAR2 DEFAULT NULL,
                       X_Attribute12               VARCHAR2 DEFAULT NULL,
                       X_Attribute13               VARCHAR2 DEFAULT NULL,
                       X_Attribute14               VARCHAR2 DEFAULT NULL,
                       X_Attribute15               VARCHAR2 DEFAULT NULL,
                       X_Request_Id                NUMBER )IS
     CURSOR C IS
       SELECT *
       FROM gl_defas_assignments
       WHERE rowid = X_Rowid
       FOR UPDATE of Definition_Access_Set_Id NOWAIT;
Line: 508

        FND_MESSAGE.SET_NAME('FND', 'FORM_RECORD_DELETED');
Line: 531

       AND (   (Recinfo.last_update_date = X_Last_Update_Date)
            OR (    (Recinfo.last_update_date IS NULL)
                AND (X_Last_Update_Date IS NULL)))
       AND (   (Recinfo.last_updated_by = X_Last_Updated_By)
            OR (    (Recinfo.last_updated_by IS NULL)
                AND (X_Last_Updated_By IS NULL)))
       AND (   (Recinfo.creation_date = X_Creation_Date)
            OR (    (Recinfo.creation_date is NULL)
                AND (X_Creation_Date IS NULL)))
       AND (   (Recinfo.created_by = X_Created_By)
            OR (    (Recinfo.created_by IS NULL)
                AND (X_Created_By IS NULL)))
       AND (   (Recinfo.last_update_login = X_Last_Update_Login)
            OR (    (Recinfo.last_update_login IS NULL)
                AND (X_Last_Update_Login IS NULL)))
       AND (   (Recinfo.status_code = X_Status_Code)
            OR (    (Recinfo.status_code IS NULL)
                AND (X_Status_Code IS NULL)))
       AND (   (Recinfo.context = X_Context)
            OR (    (Recinfo.context IS NULL)
                AND (X_Context IS NULL)))
       AND (   (Recinfo.attribute1 = X_Attribute1)
            OR (    (Recinfo.attribute1 IS NULL)
                AND (X_Attribute1 IS NULL)))
       AND (   (Recinfo.attribute2 = X_Attribute2)
            OR (    (Recinfo.attribute2 IS NULL)
                AND (X_Attribute2 IS NULL)))
       AND (   (Recinfo.attribute3 = X_Attribute3)
            OR (    (Recinfo.attribute3 IS NULL)
                AND (X_Attribute3 IS NULL)))
       AND (   (Recinfo.attribute4 = X_Attribute4)
            OR (    (Recinfo.attribute4 IS NULL)
                AND (X_Attribute4 IS NULL)))
       AND (   (Recinfo.attribute5 = X_Attribute5)
            OR (    (Recinfo.attribute5 IS NULL)
                AND (X_Attribute5 IS NULL)))
       AND (   (Recinfo.attribute6 = X_Attribute6)
            OR (    (Recinfo.attribute6 IS NULL)
                AND (X_Attribute6 IS NULL)))
       AND (   (Recinfo.attribute7 = X_Attribute7)
            OR (    (Recinfo.attribute7 IS NULL)
                AND (X_Attribute7 IS NULL)))
       AND (   (Recinfo.attribute8 = X_Attribute8)
            OR (    (Recinfo.attribute8 IS NULL)
                AND (X_Attribute8 IS NULL)))
       AND (   (Recinfo.attribute9 = X_Attribute9)
            OR (    (Recinfo.attribute9 IS NULL)
                AND (X_Attribute9 IS NULL)))
       AND (   (Recinfo.attribute10 = X_Attribute10)
            OR (    (Recinfo.attribute10 IS NULL)
                AND (X_Attribute10 IS NULL)))
       AND (   (Recinfo.attribute11 = X_Attribute11)
            OR (    (Recinfo.attribute11 IS NULL)
                AND (X_Attribute11 IS NULL)))
       AND (   (Recinfo.attribute12 = X_Attribute12)
            OR (    (Recinfo.attribute12 IS NULL)
                AND (X_Attribute12 IS NULL)))
       AND (   (Recinfo.attribute13 = X_Attribute13)
            OR (    (Recinfo.attribute13 IS NULL)
                AND (X_Attribute13 IS NULL)))
       AND (   (Recinfo.attribute14 = X_Attribute14)
            OR (    (Recinfo.attribute14 IS NULL)
                AND (X_Attribute14 IS NULL)))
       AND (   (Recinfo.attribute15 = X_Attribute15)
            OR (    (Recinfo.attribute15 IS NULL)
                AND (X_Attribute15 IS NULL)))
       AND (   (Recinfo.request_id =  X_Request_Id)
                OR (    (Recinfo.request_id IS NULL)
                    AND (X_Request_Id IS NULL)))
    ) then
       return;
Line: 608

  PROCEDURE Delete_Row(X_Rowid       VARCHAR2,
                       X_Status_Code VARCHAR2) IS
  BEGIN
    if( X_Status_Code = 'D') then
       UPDATE GL_DEFAS_ASSIGNMENTS
       SET status_code = 'D'
       WHERE rowid = X_Rowid;
Line: 616

       DELETE FROM gl_defas_assignments
       WHERE rowid = X_Rowid;
Line: 623

  END Delete_Row;
Line: 630

      SELECT 'Duplicate'
      FROM   GL_DEFAS_ASSIGNMENTS a
      WHERE  a.object_type = X_Object_Type
      AND    a.object_key = X_Object_Key
      AND    a.definition_access_set_id = X_Definition_Access_Set_Id
      AND    (a.status_code <> 'D' or a.status_code is null);