/* * Copyright (C) 2000 - 2008 TagServlet Ltd * * This file is part of the BlueDragon Java Open Source Project. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ package com.naryx.tagfusion.cfm.sql; import com.naryx.tagfusion.cfm.engine.cfSession; import com.naryx.tagfusion.cfm.engine.cfmRunTimeException; import com.naryx.tagfusion.cfm.queryofqueries.cfQofQueryResultData; import com.naryx.tagfusion.cfm.tag.cfTagReturnType; import com.naryx.tagfusion.xmlConfig.xmlCFML; /* * This class provides the necessary implementation specific * for providing the hook to Query-of-Queries feature set. */ public class cfQueryImplQOQ extends Object implements cfQueryImplInterface { static final long serialVersionUID = 1; public cfTagReturnType render( cfQUERY queryTag, cfSession _Session ) throws cfmRunTimeException { // Create the QueryResultData object cfSQLQueryData queryData = new cfQofQueryResultData(); // Determine the inner SQL queryTag.renderInnerBody( queryData, _Session ); //Execute the query queryTag.executeStatement( queryData, _Session ); return cfTagReturnType.NORMAL; } public void init(xmlCFML configFile) {} }