You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Christophe Lombart <ch...@sword-technologies.com> on 2003/12/14 00:46:23 UTC

Create links

Hi all,

I have some comments on LinkNode & ObjectNode:

* It seems that when I create a new LinkNode, the ExtendedStore doesn't 
add it into the cached "target" ObjectNode . Am I wrong ?
So, I'm trying to fix it in the ExtendedStore but ObjectNode has not a 
method addLink (similar to addChild). So, how can we fix this issue ?

* Futhermore, the method deleteObject in the macro helper doesn't delete 
the associated links. In this case,  RDBMS adapter gives some integrity 
constraint error.
It is quite easy to fix it if the first issue is solved.

* I'm quite new with the internal stuff of Slide. Can someone explain me 
what is the binding stuff defined in the object node ? What the purpose 
of that code ?


Thanks,
Christophe




---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org


Re: Create links

Posted by Oliver Zeigermann <ol...@zeigermann.de>.
Christophe Lombart wrote:
> I have some comments on LinkNode & ObjectNode:
> 
> * It seems that when I create a new LinkNode, the ExtendedStore doesn't 
> add it into the cached "target" ObjectNode . Am I wrong ?
> So, I'm trying to fix it in the ExtendedStore but ObjectNode has not a 
> method addLink (similar to addChild). So, how can we fix this issue ?

Hmmm. I have copied most of the high level caching stuff from 
StandardStore and must admit I am not too familiar with LinkNodes. What 
is their purpose? What do you use them for?

> * Futhermore, the method deleteObject in the macro helper doesn't delete 
> the associated links. In this case,  RDBMS adapter gives some integrity 
> constraint error.
> It is quite easy to fix it if the first issue is solved.

This would involve having a list of all links to the links pointing to 
this object, right? Otherwise you would have to traverse *all* nodes to 
collect now invalid links, is this what you are saying?

> * I'm quite new with the internal stuff of Slide. Can someone explain me 
> what is the binding stuff defined in the object node ? What the purpose 
> of that code ?

I am certainly new to this as well, but I thought binding was the 
successor and replacement of any puspose LinkNodes had. But, as I said, 
I am not familiar with LinkNodes at all.

I see, I have raised even more questions instead of solving them ;) 
Sorry for that...

Oliver



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org