DBA Data[Home] [Help]

APPS.PER_SECONDARY_ASS_STATUSES_PKG SQL Statements

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

Line: 39

PROCEDURE Insert_Row(X_Rowid                        IN OUT NOCOPY VARCHAR2,
                     X_Secondary_Ass_Status_Id             IN OUT NOCOPY NUMBER,
                     X_Business_Group_Id                   NUMBER,
                     X_Assignment_Id                       NUMBER,
                     X_Assignment_Status_Type_Id           NUMBER,
                     X_Start_Date                          DATE,
                     X_Comments                            VARCHAR2,
                     X_End_Date                            IN OUT NOCOPY DATE,
                     X_Reason                              VARCHAR2,
                     X_Attribute_Category                  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_Attribute16                         VARCHAR2,
                     X_Attribute17                         VARCHAR2,
                     X_Attribute18                         VARCHAR2,
                     X_Attribute19                         VARCHAR2,
                     X_Attribute20                         VARCHAR2
 ) IS
   CURSOR C IS SELECT rowid FROM PER_SECONDARY_ASS_STATUSES
             WHERE secondary_ass_status_id = X_Secondary_Ass_Status_Id;
Line: 73

    CURSOR C2 IS SELECT per_secondary_ass_statuses_s.nextval FROM sys.dual;
Line: 102

  INSERT INTO PER_SECONDARY_ASS_STATUSES(
          secondary_ass_status_id,
          business_group_id,
          assignment_id,
          assignment_status_type_id,
          start_date,
          comments,
          end_date,
          reason,
          attribute_category,
          attribute1,
          attribute2,
          attribute3,
          attribute4,
          attribute5,
          attribute6,
          attribute7,
          attribute8,
          attribute9,
          attribute10,
          attribute11,
          attribute12,
          attribute13,
          attribute14,
          attribute15,
          attribute16,
          attribute17,
          attribute18,
          attribute19,
          attribute20
         ) VALUES (
          X_Secondary_Ass_Status_Id,
          X_Business_Group_Id,
          X_Assignment_Id,
          X_Assignment_Status_Type_Id,
          X_Start_Date,
          X_Comments,
          X_End_Date,
          X_Reason,
          X_Attribute_Category,
          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_Attribute16,
          X_Attribute17,
          X_Attribute18,
          X_Attribute19,
          X_Attribute20
  );
Line: 171

END Insert_Row;
Line: 205

      SELECT *
      FROM   PER_SECONDARY_ASS_STATUSES
      WHERE  rowid = X_Rowid
      FOR UPDATE of Secondary_Ass_Status_Id NOWAIT;
Line: 339

PROCEDURE Update_Row(X_Rowid                               VARCHAR2,
                     X_Secondary_Ass_Status_Id             NUMBER,
                     X_Business_Group_Id                   NUMBER,
                     X_Assignment_Id                       NUMBER,
                     X_Assignment_Status_Type_Id           NUMBER,
                     X_Start_Date                          DATE,
                     X_Comments                            VARCHAR2,
                     X_End_Date                            IN OUT NOCOPY DATE,
                     X_Reason                              VARCHAR2,
                     X_Attribute_Category                  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_Attribute16                         VARCHAR2,
                     X_Attribute17                         VARCHAR2,
                     X_Attribute18                         VARCHAR2,
                     X_Attribute19                         VARCHAR2,
                     X_Attribute20                         VARCHAR2
) IS
BEGIN
--
   check_unique_row(X_Assignment_Id
                   ,X_Assignment_Status_Type_Id
                   ,X_Start_Date
                   ,X_Rowid);
Line: 392

  UPDATE PER_SECONDARY_ASS_STATUSES
  SET
    secondary_ass_status_id                   =    X_Secondary_Ass_Status_Id,
    business_group_id                         =    X_Business_Group_Id,
    assignment_id                             =    X_Assignment_Id,
    assignment_status_type_id                 =    X_Assignment_Status_Type_Id,
    start_date                                =    X_Start_Date,
    comments                                  =    X_Comments,
    end_date                                  =    X_End_Date,
    reason                                    =    X_Reason,
    attribute_category                        =    X_Attribute_Category,
    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,
    attribute16                               =    X_Attribute16,
    attribute17                               =    X_Attribute17,
    attribute18                               =    X_Attribute18,
    attribute19                               =    X_Attribute19,
    attribute20                               =    X_Attribute20
  WHERE rowid = X_rowid;
Line: 429

END Update_Row;
Line: 431

PROCEDURE Delete_Row(X_Rowid VARCHAR2) IS
BEGIN
  DELETE FROM PER_SECONDARY_ASS_STATUSES
  WHERE  rowid = X_Rowid;
Line: 439

END Delete_Row;
Line: 447

select 'x'
from   per_secondary_ass_statuses
where  assignment_id = p_assignment_id
and    assignment_status_type_id = p_assignment_status_type_id
and    start_date = p_start_date
AND    ((p_rowid IS NULL)
OR      (p_rowid is not null and
         rowid <> chartorowid(p_rowid))
       );
Line: 473

select 'x'
from    per_assignments_f x
where   x.assignment_id = p_assignment_id
and     p_date >=
          (select min(y.effective_start_date)
           from   per_assignments_f y
           where  y.assignment_id = x.assignment_id)
and     p_date <=
          (select max(y.effective_end_date)
           from   per_assignments_f y
           where  y.assignment_id = x.assignment_id);
Line: 515

select max(effective_end_date)
from per_assignments_f
where assignment_id = p_assignment_id;