According to Elisa Bertino paper
A view is defined as a virtual relation derived
by a query on one or more stored relations
Data protection
User convenience
Is the concept of views in object-oriented databases
is still useful?
Graduate
Student ->
Undergraduate
Objects (identifier - OID) - state, values, methods
Classes
Inheritance
Target - what must be retrieved
Range - classes to which the query applies
Qualification - boolean combination of simple predicates
Retrieve the last names of all permanent employees and consultants living in Rome, working in the technical staff of a team sponsored by a company located in Turin, and such that if they are permanents their salary is higher than 4000, if they are consultants their daily wage is higher than 500.
View derivation - a view derivation relationship
between a class C and a view V denotes that
V is defined "on top of" C, that is, C is a base class of V
There is no relationship between class and the view
in this case
Now it is possible for a user to define his own
modified schema without affecting other users.
Class content - adding, dropping, renaming properties
Inheritance hierarchy - changing methods,
inheriting properties via additional properties
Suppose that if a machine is produced in the USA, the price is 20% less there than the price in Italy, while in other countries 10% less.
!!! This may not be possible if object migration among classes is not supported
self is used to denote the object to which the message
invoking the method has been sent
Telescope method.. <- easy one