Collection Object

Philip Mötteli philip.moetteli at econophone.ch
Mon Jul 31 15:39:42 CDT 2006


Am 31.07.2006 um 14:53 schrieb Ruslan Zasukhin:

> On 7/31/06 3:47 PM, "Ruslan Zasukhin" <sunshine at public.kherson.ua>  
> wrote:
>
>>> For case of 2 tables, we put pointer into MANY table. Right?
>>> So may be here we also should think in this way..
>>> Hmm, in this way hard...
>>>
>>>
>>> Well, then it seems you can use only next way
>>>
>>>
>>> In TC you make VarChar for example, and store data as:
>>>
>>>     121355354,1545115,154321354,13564351356,
>>>
>>> I.e. You make LIST of records with their OID values.
>>
>>>> Yes, it definitely more hard and I don't see the advantage over an
>>>> M:M table so far…
>>
>> Another way:
>>
>> So we have
>>
>>     TC - on left side                    Few tables on right side
>>
>> To link them we use special table:
>>
>>                   --------------------------
>>                      intermediate table
>>                   --------------------------
>>                      RecID_TC   |    OID
>
>
> Interesting. Main problem in your case that you want that
>
>     LEFT_TC  keep collection of records from SEVERAL tables on  
> right side.
>
> If talk about one table one Right Side than BinaryLink works  
> perfectly.
> But you want many tables on right side...
>
>
> Can you describe scenario of
>
>     * how records will be added/deleted into right tables ?
>
>     * how are NSSet is born?
>         is it owner of records in collection? Or just keep them?
>         what must happens if I delete NSSet?
>
>         what must happens if I delete record in T2 which is in some  
> set?
>
>     * Let you have records in all tables, what next? What operations?
>         search? Iteration? Navigation? Else? How ?

I forgot: All these primitive methods shouldn't touch the right-side  
tables. They should just insert OIDs into the left-side record.


Re
Philip



More information about the Valentina mailing list