Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » COSMOS » How to avoid the empty templates loading all the items?
How to avoid the empty templates loading all the items? [message #572318] Wed, 21 January 2009 08:04
arunachalam is currently offline arunachalamFriend
Messages: 15
Registered: July 2009
Junior Member
Hi ,

I successfully used the cosmos API and get the output , But for my
project the requirement is that I should not load all the items from the
db because the db may have the miilions of records. But on the query there
can be a empty template [ please see the example query below ] and that
empty template can be as a source or target into the relaitonship template.

But when I have a empty template as per the cosmos API it loads all
the items logically , But If I don't have the ItemTemplateHandler and
having the empty item template in the query I am getting the exception as
"Unsupported Constraint Type" exception.

I don't want to load the all the items from the db , but want to load
only the items that is having the relationship with the source or target.
In my example I am having the empty template as a source , So I can pass
the source as null to the DB and get the items having a RUNSON
relaitonship with the target template items and want to add these items
into the query response.
I added the empty item on my ItemTemplateHandler and again create the item
handler in my relationshiprecordtypehanlder to add the source items which
I got after I apply the relationship record type , But I am not getting
the source items in my query response and still getting the empty item
element on the query response.

Is there a way in the cosmos API for doing this or I need to write my
own code to do this ? If I need to write my own code which part of the
code needs to be changed or Can I extend any of the class and write my
code to do this?


Previous Topic:New COSMOS blog
Next Topic:How to avoid the empty templates loading all the items?
Goto Forum:

Current Time: Fri Dec 09 20:34:20 GMT 2022

Powered by FUDForum. Page generated in 0.01983 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top