01: package com.calipso.reportgenerator.services;
02:
03: import com.calipso.reportgenerator.reportcalculator.IDataSource;
04: import com.calipso.reportgenerator.reportcalculator.Matrix;
05: import com.calipso.reportgenerator.common.*;
06: import com.calipso.reportgenerator.reportmanager.ReportDataSource;
07:
08: /**
09: * Interfase para implementar los ditintops resolvedores de SQL
10: */
11: public interface ISQLDataSourceResolver {
12:
13: public IDataSource execute(Matrix matrix) throws InfoException;
14:
15: public IDataSource execute(String sqlText, Matrix matrix)
16: throws InfoException;
17:
18: public String getSqlText();
19:
20: public void setSqlText(String sqlText);
21:
22: public void setReportDataSource(ReportDataSource dataSource);
23:
24: //public ReportDataSourceSpec getReportDataSourceSpec();
25:
26: public void init(
27: ReportGeneratorConfiguration reportGeneratorConfiguration,
28: DataSourceDefinitionConnectionString dataSourceDefinitionConnectionString,
29: ReportSpec reportSpec);
30:
31: public ReportGeneratorConfiguration getReportGeneratorConfiguration();
32:
33: }
|