001 package railo.runtime.debug; 002 003 import railo.runtime.db.SQL; 004 import railo.runtime.type.Query; 005 006 /** 007 * 008 */ 009 public final class QueryEntryImpl implements QueryEntry { 010 private String src; 011 private SQL sql; 012 private int exe; 013 private String name; 014 private int recordcount; 015 private String datasource; 016 private Query qry; 017 018 /** 019 * constructor of the class 020 * @param recordcount 021 * @param query 022 * @param src 023 * @param exe 024 */ 025 public QueryEntryImpl(Query qry,String datasource, String name,SQL sql,int recordcount, String src, int exe) { 026 this.datasource=datasource; 027 this.recordcount=recordcount; 028 this.name=name; 029 this.src=src; 030 this.sql=sql; 031 this.exe=exe; 032 this.qry=qry; 033 } 034 /** FUTURE add to interface 035 * @return the qry 036 */ 037 public Query getQry() { 038 return qry; 039 } 040 /** 041 * @see railo.runtime.debug.QueryEntry#getExe() 042 */ 043 public int getExe() { 044 return exe; 045 } 046 /** 047 * @see railo.runtime.debug.QueryEntry#getSQL() 048 */ 049 public SQL getSQL() { 050 return sql; 051 } 052 /** 053 * @see railo.runtime.debug.QueryEntry#getSrc() 054 */ 055 public String getSrc() { 056 return src; 057 } 058 /** 059 * @see railo.runtime.debug.QueryEntry#getName() 060 */ 061 public String getName() { 062 return name; 063 } 064 /** 065 * @see railo.runtime.debug.QueryEntry#getRecordcount() 066 */ 067 public int getRecordcount() { 068 return recordcount; 069 } 070 /** 071 * @see railo.runtime.debug.QueryEntry#getDatasource() 072 */ 073 public String getDatasource() { 074 return datasource; 075 } 076 }