Академический Документы
Профессиональный Документы
Культура Документы
What is RDBMS?
Relational Database Management System(RDBMS) RDBMS requires tabular structure for data RDBMS is designed to take care of large amounts of data and secure it unlike DBMS
Semantic Overloading
Relational model has only one construct for representing data and data relationships: the relation
Poor support for Integrity and Enterprise Constraints Homogeneous Data Structure
Relational model assumes both horizontal and vertical homogeneity
RDBMS has limited operations which only have a fixed set of operations that cannot be extended
Extension proposed to relational algebra to handle this type of query is recursive closure operation (i.e. tuples are transitively deduced)
Recursive Example
SELECT managerstaffNo FROM Staff WHERE staffNo=S005 UNION SELECT managerstaffNo FROM Staff WHERE staffNo= (SELECT managerstaffNo FROM Staff WHERE staffNo=S005)
OO Concepts
Abstraction, encapsulation, information hiding. Objects and attributes. Object identity. Methods and messages. Classes, subclasses, superclasses, and inheritance. Overloading. Polymorphism and dynamic binding.
Abstraction
Denotes extracting of essential details about items or a group of items while ignoring the inessential details.
Object
Superkey identifiable entity that have both attributes and actions associated with it.
Attributes
Contains current state of an object Classified into simple or complex Simple attributes can be primitive type such as integer, string, etc. Complex attributes contain collections or references
Object Identity
Object Identifier must be System-generated Unique Invariant Independent of the values of its attributes Invisible to user
key only unique within a relation, not across entire system Key generally chosen from attributes of relation, making It dependent on object state
Method
Defines behaviour of an object, as set of encapsulated functions
Message
Request from one object to another asking secondary object to execute one of its methods.
Example of a Method
Class
Blueprint for defining a set of similar objects. Objects in a class are called instances. Class is also an object with own class attributes and class methods. Class different from type
Example
Lecturer(StaffID, homeNO, ExtensionNO, position, gender) Course Manager(StaffID, course, lecturers) Course Coordinator(StaffID, students) Subject Manager(StaffID, Subject, labs)
Course Manager(StaffID, homeNO, ExtensionNO, position, gender, course, lecturers) Course Coordinator(StaffID, homeNO, ExtensionNO, position, gender ,students) Subject Manager(StaffID, homeNO, ExtensionNO, position, gender, Subject, labs)
Lecturer(StaffID, homeNO, ExtensionNO, position, gender ,course, lecturers ,students , subject, labs)