Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referential integrity which tier?
Message
De
26/11/1999 10:43:00
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00288250
Message ID:
00295721
Vues:
26
Hi Markus,

OIC. Bringing in an ODBMS complicates the issue. I played with one last year (named after a flower, I think, but I forget the name) and was amazed at what you could do...with that sort of data engine, you don't have that translation layer between the object model and the relational model.


>>OK....here's what I mean: You have a table of addresses for customers. There must be at least one address per customer (1:1+). You enter a new customer and forget to enter an address. You save. Business tier returns error code; it never gets to the data.
>>
>>You go to delete a customer with 3 addresses. Business tier passes this on to the data tier (or to a stored proc in the database) which deletes the addresses and then the customer within a transaction.
>>
>>So....
>>
>>Can I add a customer? Biz rule with RI rule
>>Can I delete? Biz rule.
>>What do I delete? RI rule.
>
>No, that's not what I mean. The address(es) belong(s) to the customer. A customer and it's addresses are one entity. On XML there would be a customer node and address subnodes. In object databases, we wou have an addresses collection. So the fact that we have multiple tables in this scenario is only an implementation detail. Everything that goes along with this implementation details belongs to whereever the implementation takes place. In this case, the data tier.
>
>But if we store deliveries to a certain address, this would be a seperate entity alltogether. Therefore, everything that goes on between those two entities is business logic.
>
>Markus
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform