中文网站
  Advanced Search
Read the latest Blogs from IT professionals in the field. Read and write community created documents. Need IT help? Ask our staff. Connect with your peers. Check our Tech Shop for posters, books and software tools. Home

8.2.5 Database Systems: Object Identity

1. Object identity: An object retains its identity even if some or all of the values of variables or de nitions of methods change over time.

This concept of object identity is necessary in applications but doe not apply to tuples of a relational database.

2. Object identity is a stronger notion of identity than typically found in programming languages or in data models not based on object orientation.

3. Several forms of identity:

  • value: A data value is used for identity (e.g., the primary key of a tuple in a relational database)
  • name: A user-supplied name is used for identity (e.g., le name in a le system).
  • built-in: A notion of identity is built-into the data model or programming languages, and no user-
    supplied identi er is required (e.g., in OO systems).

4. Object identity is typically implemented via a unique, system-generated OID. The value of the OID is not visible to the external user, but is used internally by the system to identify each object uniquely and to create and manage inter-object references.

5. There are many situations where having the system generate identi ers automatically is a bene t, since it frees humans from performing that task. However, this ability should be used with care. System-generated identifiers are usually speci c to the system, and have to be translated if data are moved to a different database system. System-generated identi ers may be redundant if the entities being modeled already have unique identi ers external to the system, e.g., SIN#.

  Database System Structure: