Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
First class (computing)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{For|general usage outside databases|First-class object}} {{Unreferenced|date=December 2009}} In [[database model]]ing, a '''first class''' item is one that has an [[identity (object-oriented programming)|identity]] independent of any other item. The identity allows the item to persist when its attributes change, and allows other items to claim relationships with the item. As a general rule, first class items represent things rather than relationships. For example, the database representations of a human and of a company are each first class items. However, the fact that the person is an employee of that company is not a first class item. Likewise, data ''about'' that relationship, e.g. information about the salary the company pays to its employee, is not a first class item. Typically, a [[relational database]] will include several [[table (information)|table]]s, each of which contains [[row (database)|rows]] representing first class items of a given type (e.g. a table of people, a table of companies). It will also contain other tables representing relationships between these first class items. In a table representing first class items, one [[column]] of the table will typically contain a different [[integer]] assigned to each row (effectively, to each item) as a unique [[identifier]]: that is to say, unique for objects of this type; objects of different types, represented in different tables, can coincidentally have the same identifier, but the coincidence is meaningless. In a relational database, a table representing a ''relationship'' between two or more first class items (or data about that relationship) will usually ''not'' have special identifiers for its rows. Instead these rows will be identified by an ordered [[tuple]] consisting of unique identifiers of the first class items involved in the relationship. {{DEFAULTSORT:First Class (Computing)}} [[Category:Data modeling]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)
Pages transcluded onto the current version of this page
(
help
)
:
Template:Ambox
(
edit
)
Template:For
(
edit
)
Template:Unreferenced
(
edit
)