<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Querying  Custom Properties of Business Objects</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Querying  Custom Properties of Business Objects</description>
  <pubDate>Sat, 11 Apr 2026 05:41:04 -700</pubDate>
  <lastBuildDate>Thu, 12 Jul 2007 08:45:26 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=124</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Querying  Custom Properties of Business Objects : Jozza,  No. It is not possible...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=124&amp;PID=276#276</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 124<br /><strong>Posted:</strong> 12-Jul-2007 at 8:45am<br /><br />Jozza,<DIV>&nbsp;</DIV><DIV>No.&nbsp; It is not possible to make a query using a custom property.&nbsp; The problem, as you correctly surmise, is that the query may need to go back to the database, and the database has no understanding of custom properties.&nbsp; We have thought of supporting cache-only queries that use custom properties, but that is an extremely difficult feature to implement.&nbsp; We may support cache-only queries that support custom properties after we support Orcas, but I make no promises.</DIV><DIV>&nbsp;</DIV><DIV>The solution that you propose of using a predicate on a query that contains only entity columns is often your best approach.</DIV><DIV>&nbsp;</DIV><DIV>Hera are some other solutions:</DIV><DIV>&nbsp;</DIV><DIV>In your example of Age, you could translate the query to an equivalent query that used BirthDate</DIV><DIV>&nbsp;</DIV><DIV>You could use a StoredProcRdbQuery</DIV><DIV>&nbsp;</DIV><DIV>You could use a View</DIV>]]>
   </description>
   <pubDate>Thu, 12 Jul 2007 08:45:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=124&amp;PID=276#276</guid>
  </item> 
  <item>
   <title>Querying  Custom Properties of Business Objects : Hi,  Is it possible to somehow...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=124&amp;PID=273#273</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=77" rel="nofollow">jozza</a><br /><strong>Subject:</strong> 124<br /><strong>Posted:</strong> 11-Jul-2007 at 10:50pm<br /><br />Hi, <DIV>Is it possible to somehow query the PersistenceManager based on the value of some kind of custom property on a business object? eg. If we have a custom property called Age, is there a way to return all entities with an Age greater than say, 50? </DIV><DIV>&nbsp;</DIV><DIV>I can sort of see how this sort of query would be a problem, since if the Persistence Manager needs to go back to the datasource to retrieve the data it probably can't create the appropriate query. </DIV><DIV>&nbsp;</DIV><DIV>So the next question is, if we do need to have a query of this type what is the best way of retrieving data from the PersistenceManager?&nbsp; One solution that I've thought of is to query the data as best I can based on actual EntityColumns and then given the EntityList write a delegate with the predicate based on the custom properties. I'm not sure how efficient this would be in large record sets though. </DIV><DIV>&nbsp;</DIV><DIV>I'd be interested in hearing any other solutions. Thanks.</DIV><span style="font-size:10px"><br /><br />Edited by jozza - 11-Jul-2007 at 10:51pm</span>]]>
   </description>
   <pubDate>Wed, 11 Jul 2007 22:50:40 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=124&amp;PID=273#273</guid>
  </item> 
 </channel>
</rss>