Attributes of Business Objects

Now that we have defined business objects and relationships we can define attributes of each business object. There are two types of attributes –simple attributes (text, number, date, picture etc) and those representing relationships or references).

Values of some attributes are entered by users, whereas values of other attributes are always calculated by the system and never entered by users. The latter attributes are called calculated attributes.

By carefully studying the requirements we can identify the following attributes of the objects:

AttributeTypeDescription
Titletext
Authortext
Codetext
Descriptiontext
Pictureimage
Locationtext
InternalStatustextpossible values Released and Withdrawn

see the relationships of the Item object

ReferenceDescription
Typea reference to the single ItemType object that the Item belongs to
Loansa list of Loan objects for the item, calculated
Reservationsa list of Reservation objects for the item, calculated
AttributeTypeDescription
NametextBook, CD, Video etc)
MaxBorrowNumbernumber
MaxLoanPeriodnumber
MaxRenewalsnumber
Attribute Type Description
FirstName text
LastName text
Address text
DateOfBirth date
Gender text Male or Female
EmailAddress text
MemberNumber number unique number associated with a member - calculated
Photo picture
Status text Active or Suspended
Reference Description
Loans a list of Loan objects, calculated
Reservations a list of Reservation objects, calculated
Fees a list of Fee objects, calculated
Payments a list of Payment objects, calculated
Attribute Type Description
DueDate date the date the loan is or was due
ReturnDate date the date the loan was returned - calculated
Status text New, Current, Past - calculated
ReferenceDescription
Memberreference to a single Member object, calculated
Itemreference to a single Item object, calculated
AttributeTypeDescription
ReservedOntimestampthe date and time when the reservation was made, calculated)
BorrowedOntimestampthe date and time the reservation was borrowed, calculated)
ItemOfferedOntimestampthe date and time the reservation was offered, calculated)
Statustext, calculatedNew, Waiting – if reservation is waiting for item to be returned,
Offered – if reservation has been offered but not taken up,
Converted – if reservation has been taken up,
Cancelled – if reservation has been cancelled by owner,
Expired – if reservation has expired
ReferenceDescription
Itema reference to a single item that has been reserved, calculated
Membera reference to a single member who made the reservation, calculated
AttributeTypeDescription
Amountnumber
Descriptiontext
AppliedOndate the date the fee was charged, calculated
ReferenceDescription
Memberreference to a single member who was charged, calculated
AttributeTypeDescription
Amountnumber
Descriptiontext
AppliedOndatethe date the payment was made, calculated
StatustextNew or Applied
ReferenceDescription
Memberreference to a single member who made a payment, calculated

In addition we will introduce a few attributes that will display summarized information to the user:

AttributeTypeDescription
Availableyes/nothis is the flag that indicates whether the item is available. In principle, this information can be derived from the information about loans associated with the item. It is, however, very convenient to immediately show to the user whether the item is available (both in queries on item or in the item form)
CurrentReservationReferencethis is a reference to the reservation that is the first in the queue of reservations. We define this attribute purely for convenience to avoid calculating it every time it is needed (it will be needed by a number of rules).
AttributeTypeDescription
OutstandingChargesNumber Indicates whether the member owes something to the library. Again, in principle, this information can be derived from the information about fees and payments, however, it is very convenient to show this number to the user.
  • Last modified: 2022/12/15 04:23