Package sb_sect_dept_restriction
This package provides the common business interface for the Section Department Restriction API (sb_sect_dept_restriction).
|
M_ENTITY_NAME
M_ENTITY_NAME CONSTANT VARCHAR2(21) := 'SECT_DEPT_RESTRICTION';
Business Entity Name
M_BASE_TABLE_NAME
M_BASE_TABLE_NAME CONSTANT VARCHAR2(7) := 'SSRRDEP';
Base table name
sect_dept_restriction_rec
TYPE sect_dept_restriction_rec IS RECORD (
r_primary_key ssrrdep.ssrrdep_primary_key%TYPE,
r_term_code ssrrdep.ssrrdep_term_code%TYPE,
r_crn ssrrdep.ssrrdep_crn%TYPE,
r_rec_type ssrrdep.ssrrdep_rec_type%TYPE,
r_user_id ssrrdep.ssrrdep_user_id%TYPE,
r_dept_ie_cde ssrrdep.ssrrdep_dept_ie_cde%TYPE,
r_dept_code ssrrdep.ssrrdep_dept_code%TYPE,
r_data_origin ssrrdep.ssrrdep_data_origin%TYPE,
r_internal_record_id gb_common.internal_record_id_type);
Business Entity record type
sect_dept_restriction_ref
TYPE sect_dept_restriction_ref IS REF CURSOR RETURN sect_dept_restriction_rec;
Entity cursor variable type
sect_dept_restriction_tab
TYPE sect_dept_restriction_tab IS TABLE OF sect_dept_restriction_rec INDEX BY BINARY_INTEGER;
Entity table type
f_api_version
Function f_api_version RETURN PLS_INTEGER
Returns the API version number.
|
Version of the API signature. Changes only when the signature changes.
|
f_exists
Function f_exists(p_primary_key ssrrdep.ssrrdep_primary_key%TYPE DEFAULT NULL,
p_term_code ssrrdep.ssrrdep_term_code%TYPE DEFAULT NULL,
p_crn ssrrdep.ssrrdep_crn%TYPE DEFAULT NULL,
p_rec_type ssrrdep.ssrrdep_rec_type%TYPE DEFAULT NULL,
p_dept_code ssrrdep.ssrrdep_dept_code%TYPE DEFAULT NULL,
p_rowid gb_common.internal_record_id_type DEFAULT NULL)
RETURN VARCHAR2
Checks if a record exists.
|
p_primary_key
|
Unique sequence number that identifies the record. NUMBER (9) Key
|
|
p_term_code
|
Term in which the section registration department restriction exists. VARCHAR2(6) Key
|
|
p_crn
|
Course reference number for which the section registration department restriction exists. VARCHAR2(5) Key
|
|
p_rec_type
|
Indicator for whether the record contains a department indicator or a department code. Valid values are: 1 - Department indicator, 2 - Department code. VARCHAR2(1) Key
|
|
p_dept_code
|
Code of a department for which registration restrictions exist. The Include/Exclude field will determine how the department is restricted. An unlimited number of departments may be defined. VARCHAR2(4) Key
|
|
p_rowid
|
Database ROWID of the record to be selected. VARCHAR2(18)
|
f_isequal
Function f_isequal(rec_one sect_dept_restriction_rec,
rec_two sect_dept_restriction_rec) RETURN VARCHAR2
Compares two records for equality.
Tests each field of rec_one against the corresponding field of rec_two. Two null values are considered equal.
|
Y if all values in records are equal, otherwise N. Nulls match Nulls.
|
f_query_all
Function f_query_all(p_term_code ssrrdep.ssrrdep_term_code%TYPE,
p_crn ssrrdep.ssrrdep_crn%TYPE,
p_rec_type ssrrdep.ssrrdep_rec_type%TYPE DEFAULT NULL)
RETURN sect_dept_restriction_ref
Selects all records for the entity.
|
p_term_code
|
Term in which the section registration department restriction exists. VARCHAR2(6) Required Key
|
|
p_crn
|
Course reference number for which the section registration department restriction exists. VARCHAR2(5) Required Key
|
|
p_rec_type
|
Indicator for whether the record contains a department indicator or a department code. Valid values are: 1 - Department indicator, 2 - Department code. VARCHAR2(1) Required Key
|
|
A cursor variable that will fetch a set of records.
|
f_query_one
Function f_query_one(p_primary_key ssrrdep.ssrrdep_primary_key%TYPE DEFAULT NULL,
p_term_code ssrrdep.ssrrdep_term_code%TYPE DEFAULT NULL,
p_crn ssrrdep.ssrrdep_crn%TYPE DEFAULT NULL,
p_rec_type ssrrdep.ssrrdep_rec_type%TYPE DEFAULT NULL,
p_dept_code ssrrdep.ssrrdep_dept_code%TYPE DEFAULT NULL)
RETURN sect_dept_restriction_ref
Selects one record using the primary key or unique index.
|
p_primary_key
|
Unique sequence number that identifies the record. NUMBER (9) Key
|
|
p_term_code
|
Term in which the section registration department restriction exists. VARCHAR2(6) Key
|
|
p_crn
|
Course reference number for which the section registration department restriction exists. VARCHAR2(5) Key
|
|
p_rec_type
|
Indicator for whether the record contains a department indicator or a department code. Valid values are: 1 - Department indicator, 2 - Department code. VARCHAR2(1) Key
|
|
p_dept_code
|
Code of a department for which registration restrictions exist. The Include/Exclude field will determine how the department is restricted. An unlimited number of departments may be defined. VARCHAR2(4) Key
|
|
A cursor variable that will fetch exactly one record.
|
f_query_by_rowid
Function f_query_by_rowid(p_rowid gb_common.internal_record_id_type)
RETURN sect_dept_restriction_ref
Selects one record using the ROWID.
|
p_rowid
|
Database ROWID of the record to be selected. VARCHAR2(18) Required
|
|
A cursor variable that will fetch exactly one record.
|
f_query_one_lock
Function f_query_one_lock(p_primary_key ssrrdep.ssrrdep_primary_key%TYPE DEFAULT NULL,
p_term_code ssrrdep.ssrrdep_term_code%TYPE DEFAULT NULL,
p_crn ssrrdep.ssrrdep_crn%TYPE DEFAULT NULL,
p_rec_type ssrrdep.ssrrdep_rec_type%TYPE DEFAULT NULL,
p_dept_code ssrrdep.ssrrdep_dept_code%TYPE DEFAULT NULL,
p_rowid gb_common.internal_record_id_type DEFAULT NULL)
RETURN sect_dept_restriction_ref
Selects one record by unique index and locks it.
|
p_primary_key
|
Unique sequence number that identifies the record. NUMBER (9) Key
|
|
p_term_code
|
Term in which the section registration department restriction exists. VARCHAR2(6) Key
|
|
p_crn
|
Course reference number for which the section registration department restriction exists. VARCHAR2(5) Key
|
|
p_rec_type
|
Indicator for whether the record contains a department indicator or a department code. Valid values are: 1 - Department indicator, 2 - Department code. VARCHAR2(1) Key
|
|
p_dept_code
|
Code of a department for which registration restrictions exist. The Include/Exclude field will determine how the department is restricted. An unlimited number of departments may be defined. VARCHAR2(4) Key
|
|
p_rowid
|
Database ROWID of the record to be selected. VARCHAR2(18)
|
|
A cursor variable for one record, locking the record.
|
p_create
Procedure p_create(p_term_code ssrrdep.ssrrdep_term_code%TYPE,
p_crn ssrrdep.ssrrdep_crn%TYPE,
p_rec_type ssrrdep.ssrrdep_rec_type%TYPE,
p_user_id ssrrdep.ssrrdep_user_id%TYPE DEFAULT gb_common.f_sct_user,
p_dept_ie_cde ssrrdep.ssrrdep_dept_ie_cde%TYPE DEFAULT NULL,
p_dept_code ssrrdep.ssrrdep_dept_code%TYPE DEFAULT NULL,
p_data_origin ssrrdep.ssrrdep_data_origin%TYPE DEFAULT NULL,
p_primary_key_out OUT ssrrdep.ssrrdep_primary_key%TYPE,
p_rowid_out OUT gb_common.internal_record_id_type)
Creates a record.
|
p_term_code
|
Term in which the section registration department restriction is being created. VARCHAR2(6) Required Key
|
|
p_crn
|
Course reference number for which the section registration department restriction is being created. VARCHAR2(5) Required Key
|
|
p_rec_type
|
Indicator for whether a department indicator record or a department code record is being created. Valid values are: 1 - Department indicator, 2 - Department code. VARCHAR2(1) Required Key
|
|
p_user_id
|
ID of the user who is creating the record. VARCHAR2(30) Required
|
|
p_dept_ie_cde
|
Indicator for whether the department codes entered should be included or excluded in restricting the section. Valid values are: I - Include, E - Exclude. VARCHAR2(1)
|
|
p_dept_code
|
Code of a department for which the registration restrictions is being created. The Include/Exclude field will determine how the department is restricted. An unlimited number of departments may be defined. VARCHAR2(4) Key
|
|
p_data_origin
|
Source system that is generating the data. VARCHAR2(30)
|
|
p_primary_key_out
|
Unique sequence number that identifies the record being created. NUMBER (9) Required
|
|
p_rowid_out
|
Database ROWID of the record being created. VARCHAR2(18) Required
|
p_delete
Procedure p_delete(p_primary_key ssrrdep.ssrrdep_primary_key%TYPE DEFAULT NULL,
p_term_code ssrrdep.ssrrdep_term_code%TYPE DEFAULT NULL,
p_crn ssrrdep.ssrrdep_crn%TYPE DEFAULT NULL,
p_rec_type ssrrdep.ssrrdep_rec_type%TYPE DEFAULT NULL,
p_dept_code ssrrdep.ssrrdep_dept_code%TYPE DEFAULT NULL,
p_rowid gb_common.internal_record_id_type DEFAULT NULL)
Deletes a record.
|
p_primary_key
|
Unique sequence number that identifies the record. NUMBER (9) Key
|
|
p_term_code
|
Term in which the section registration department restriction exists. VARCHAR2(6) Key
|
|
p_crn
|
Course reference number for which the section registration department restriction exists. VARCHAR2(5) Key
|
|
p_rec_type
|
Indicator for whether the record contains a department indicator or a department code. Valid values are: 1 - Department indicator, 2 - Department code. VARCHAR2(1) Key
|
|
p_dept_code
|
Code of a department for which registration restrictions exist. The Include/Exclude field will determine how the department is restricted. An unlimited number of departments may be defined. VARCHAR2(4) Key
|
|
p_rowid
|
Database ROWID of the record to be deleted. VARCHAR2(18)
|
p_lock
Procedure p_lock(p_primary_key ssrrdep.ssrrdep_primary_key%TYPE DEFAULT NULL,
p_term_code ssrrdep.ssrrdep_term_code%TYPE DEFAULT NULL,
p_crn ssrrdep.ssrrdep_crn%TYPE DEFAULT NULL,
p_rec_type ssrrdep.ssrrdep_rec_type%TYPE DEFAULT NULL,
p_dept_code ssrrdep.ssrrdep_dept_code%TYPE DEFAULT NULL,
p_rowid_inout IN OUT gb_common.internal_record_id_type)
Locks a record.
If the ROWID is not passed in, the record is located using the key values and the ROWID of the locked row is passed in p_rowid_inout
|
p_primary_key
|
Unique sequence number that identifies the record. NUMBER (9) Key
|
|
p_term_code
|
Term in which the section registration department restriction exists. VARCHAR2(6) Key
|
|
p_crn
|
Course reference number for which the section registration department restriction exists. VARCHAR2(5) Key
|
|
p_rec_type
|
Indicator for whether the record contains a department indicator or a department code. Valid values are: 1 - Department indicator, 2 - Department code. VARCHAR2(1) Key
|
|
p_dept_code
|
Code of a department for which registration restrictions exist. The Include/Exclude field will determine how the department is restricted. An unlimited number of departments may be defined. VARCHAR2(4) Key
|
|
p_rowid_inout
|
Database ROWID of the record to be locked. VARCHAR2(18) Required
|
p_update
Procedure p_update(p_primary_key ssrrdep.ssrrdep_primary_key%TYPE DEFAULT NULL,
p_term_code ssrrdep.ssrrdep_term_code%TYPE DEFAULT NULL,
p_crn ssrrdep.ssrrdep_crn%TYPE DEFAULT NULL,
p_rec_type ssrrdep.ssrrdep_rec_type%TYPE DEFAULT NULL,
p_user_id ssrrdep.ssrrdep_user_id%TYPE DEFAULT gb_common.f_sct_user,
p_dept_ie_cde ssrrdep.ssrrdep_dept_ie_cde%TYPE DEFAULT dml_common.f_unspecified_string,
p_dept_code ssrrdep.ssrrdep_dept_code%TYPE DEFAULT dml_common.f_unspecified_string,
p_data_origin ssrrdep.ssrrdep_data_origin%TYPE DEFAULT dml_common.f_unspecified_string,
p_rowid gb_common.internal_record_id_type DEFAULT NULL)
Updates a record.
|
p_primary_key
|
Unique sequence number that identifies the record. NUMBER (9) Key
|
|
p_term_code
|
Term in which the section registration department restriction exists. VARCHAR2(6) Key
|
|
p_crn
|
Course reference number for which the section registration department restriction exists. VARCHAR2(5) Key
|
|
p_rec_type
|
Indicator for whether the record contains a department indicator or a department code. Valid values are: 1 - Department indicator, 2 - Department code. VARCHAR2(1) Key
|
|
p_user_id
|
ID of the user who changed the record. VARCHAR2(30) Required
|
|
p_dept_ie_cde
|
Indicator for whether the department codes entered should be included or excluded in restricting the course. Valid values are: I - Include, E - Exclude. VARCHAR2(1)
|
|
p_dept_code
|
Code of a department for which registration restrictions exist. The Include/Exclude field will determine how the department is restricted. An unlimited number of departments may be defined. VARCHAR2(4) Key
|
|
p_data_origin
|
Source system that generated the data. VARCHAR2(30)
|
|
p_rowid
|
Database ROWID of the record to be updated. VARCHAR2(18)
|
p_copy_restrictions
Procedure p_copy_restrictions(p_from_term ssrrdep.ssrrdep_term_code%TYPE,
p_from_crn ssrrdep.ssrrdep_crn%TYPE,
p_to_term ssrrdep.ssrrdep_term_code%TYPE,
p_to_crn ssrrdep.ssrrdep_crn%TYPE,
p_user_id ssrrdep.ssrrdep_user_id%TYPE DEFAULT gb_common.f_sct_user,
p_data_origin ssrrdep.ssrrdep_data_origin%TYPE DEFAULT NULL)
Copies department restrictions from one section to another.
|
p_from_term
|
Term from which the section registration department restrictions are beng copied. VARCHAR2(6) Required Key
|
|
p_from_crn
|
Course reference number of the section from which the department restrictions are being copied. VARCHAR2(5) Required Key
|
|
p_to_term
|
Term to which the section registration department restrictions are being copied. VARCHAR2(6) Required Key
|
|
p_to_crn
|
Course reference number of the section to which the department restrictions are being copied. VARCHAR2(5) Required Key
|
|
p_user_id
|
ID of the user who changed the record. VARCHAR2(30)
|
|
p_data_origin
|
Source system that generated the data. VARCHAR2(30)
|