I have a question that I have not been able to find a good answer to.
I am using a bean, service, gateway, DAO.
All calls are done through the service layer.
I know it is important to var scope query methods in the DAO and gateway.
But does the service layer need to do the same?
eg: in the service layer.
<cffunction name="queryList">
<cfargument name="code" default="" />
<cfset var qry_list = "" />
<cfset qry_list = getGateway().queryList(arguments.code) />
<cfreturn qry_list />
</cffunction>
or can I just return the query directly?
<cffunction name="queryList">
<cfargument name="code" default="" />
<cfreturn getGateway().queryList(arguments.code) />
</cffunction>
thanks ahead.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---