Confused about how I would go about returning all records from a table from my
DAO?
this is how I would return a record with an ID (see below), however when
returning all records needed for a cfloop i am not sure.
handler
variables.adminUsersService.getUserByID(userBean); <-- access service pass in
my populated object
then to use it in my page
Welcome: #getPlugin("ioc").getBean("adminUsersService").getCurrentUser()#
my options are...
1)forget the bean as it only holds a set of data and have the service layer
access the DAO and return a query, however downside cannot use getters!
2) use the object somehow to keep populating the data I need i.e. pass it in
the server layer, server layer accesses the DAO passing in object, object is
retuned populated object. <--- not sure how to loop the data in a hander to
keep population it until done?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325527
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4