Projekt

Obecné

Profil

Stáhnout (1.33 KB) Statistiky
| Větev: | Revize:
1
package vldc.aswi.service;
2

    
3
import vldc.aswi.domain.Assembly;
4
import vldc.aswi.domain.Configuration;
5
import vldc.aswi.domain.parameter.ParameterInConfiguration;
6
import vldc.aswi.model.table.contingencyTable.ContingencyTableRow;
7

    
8
import java.util.List;
9

    
10
/**
11
 * Interface for SqlQuery manager.
12
 */
13
public interface SqlQueryManager {
14

    
15
    /**
16
     * Get list of  contingencyTableRow.
17
     * @param assembly Assembly from which configuration was created.
18
     * @param parametersInConfiguration Parameters in configuration with their locations and operators.
19
     * @param isNotRemoveEmpty Sets if empty rows and columns should not be removed.
20
     * @return List of contingencyTableRow.
21
     */
22
    List<ContingencyTableRow> getContingencyTableRow(Assembly assembly,
23
                                                     List<ParameterInConfiguration> parametersInConfiguration,
24
                                                     boolean isNotRemoveEmpty);
25

    
26
    /**
27
     * Validate given SQL query.
28
     * @param sqlQuery - Validated SQL query.
29
     * @return true if SQL query is ok, false if not.
30
     */
31
    boolean validateSQLQuery(String sqlQuery);
32

    
33
    /**
34
     * Get list of table column names from SQL query.
35
     * @param sqlQuery - SQL query.
36
     * @return List of table column names.
37
     */
38
    List<String> getNameOfColumnsFromQuery(String sqlQuery);
39
}
(13-13/16)