Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1109387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:13:32+00:00 2026-05-17T02:13:32+00:00

I have a test results database which has the following three tables along with

  • 0

I have a test results database which has the following three tables along with others:

testresults – id, buildid, osid, pass, fail
build – id, build
os – id, os

I generated CFCs using the Adobe CFC generator that comes along with coldfusion builder. Now I have value objects for each table and CRUD methods. I am trying to retrieve all test results records for a particular build and os. Since I want to display the build and os information, I would need information from build and OS tables. Is there a object oriented approach to fetch these results without having to write queries with joins or create views?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T02:13:33+00:00Added an answer on May 17, 2026 at 2:13 am

    Vikas’ answer is worth looking into – the CF 9 ORM will do much of the work for you, but under the hood it’s going to need to query all three tables and likely do joins. I haven’t used CF Builder, so I don’t know what those objects look like, but I suspect they’ll snap right into the ORM:

    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSD628ADC4-A5F7-4079-99E0-FD725BE9B4BD.html

    The “OO approach” will still need to join the data somehow – how you do that is up to you. The important thing is that the Object is a container for the data you want and it doesn’t concern itself with how it gets that data or where it comes from.

    At a high level, the OO approach is to decouple your object model from the database. You’ll probably want a TestResults object which contains the data and methods you want. (e.g. getTestResultsByBuild(build), getTestResultsByOS(os), etc.) You may also end up with an object to handle the SQL queries and pass the data to the TestResults object (probably composed into TestResults). This would be your Data Access Object (DAO) and it abstracts and encapsulates the database access functions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a unit test which contains the following line of code Site.objects.get(name=UnitTest).delete() and
I have test database and a production database. When developing I of course work
I have a test environment for a database that I want to reload with
I have a database of names of people that has (currently) 35 million rows.
We have an WCF application which uses NHibernate to query data from the database.
I've created a simple PHP test page which connects to a MySQL database, selects
I've tryed mylyn but i cant find that feature, if anyone have test mantis
I have a test project using MbUnit and TestDriven.Net. If I right-click on an
I have a test web service replicating a live web service that hasn't been
I have a test in Excel VBA: If (test1) And (test2) And (test3) Then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.