On Mon, Oct 08, 2001 at 06:50:54PM +0200, Heine, Dieter wrote:
> > a link to real record in 'sitegroup' table with the same id (sitegroup.id)
> > as this value, i.e. topic.sitegroup = sitegroup.id for given id.
> >
>
> okay. My selection became clearer to me since during import the
> topic.sitegroup field should be adjusted to the new sitegroup.id that
> has been autoincremented. True ?
True.
> > tables as 'sitegroup' field of record. Repligard ensures that sitegroup
> > (which is specified in XML file by its GUID) exists on the target by GUID,
> > not ID. It converts GUID to ID then using already existing table
> > 'repligard' on the target and uses resulting value as value of sitegroup
> > field in corresponding resource record.
>
> wait. you said that the import of new sitegroup object with a new GUID
> works like all records created with new ids by autoincrement (exchange).
> Now you say that the new ID for the new sitegroup is converted from its
> GUID (this means no exchange because the new ID is only derived from the
> GUID )?
>
> exchanged or not exchanged ?
Where you have got this 'exchange' term? Well, I'll repeat again using
algorithmic notation: :)
1. If resource A already exists in database it will be updated (assuming
that nothing forbids this in access rules and timestamps) using UPDATE
statement (SQL).
2. If resource A does not exist in database _and_ there is link to it in
some resource B which is being imported _before_ resource A, then fake
(empty) resource A' will be created using INSERT statement (SQL) and
resulting ID will be used for mapping between GUID and ID. Resource A
itself will be updated to its actual state later using UPDATE statement
like in case (1) and using A' as "previously existing version of A".
3. If resource A does not exist in database, it will be created using
INSERT statement (SQL) and resulting ID will be used for mapping (for
possible references to this resource from other still pending import).
--
/ Alexander Bokovoy
$ cat /proc/identity >~/.signature
`Senior software developer and analyst for SaM-Solutions Ltd.`
---
Building translators is good clean fun.
-- T. Cheatham
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]