Your gateway has a private function getObjectMetadata() that will return a reactor.base.abstractMetadata object.
That object has several methods like getAlias() ;) so you could use <cffunction name="myCustomGatewayMethod"> select * from #getObjectMetadata().getAlias()# where ... </cffunction> Not tested but it should work João Fernandes -----Original Message----- From: [EMAIL PROTECTED] on behalf of Brian Kotek Sent: Wed 12-Apr-06 10:08 PM To: [email protected] Subject: [Reactor For CF] Determine table names in custom query? Folks, when writing a custom query in your DAO or Gateway, is there a way to get the table name for a given alias that you set up in the Reactor config file? In other words... <cffunction name="myCustomGatewayMethod"> select * from [some method call to give me the table name for my alias here] </cffunction> perhaps like (even though I know this won't actually work): <cffunction name="myCustomGatewayMethod"> select * from #getConfig().getTable('myAlias')# </cffunction> thanks. -- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/ -- Reactor for ColdFusion Mailing List -- [email protected] -- Archives at http://www.mail-archive.com/reactor%40doughughes.net/
<<winmail.dat>>

