public class SqlHandler extends Object
| Constructor and Description |
|---|
SqlHandler(TaintHandler taintHandler) |
| Modifier and Type | Method and Description |
|---|---|
SqlExecutionsDto |
getExecutionDto() |
List<SqlCommandWithDistance> |
getSqlDistances(List<InsertionDto> successfulInitSqlInsertions,
boolean queryFromDatabase)
compute (SELECT, DELETE and UPDATE) sql distance for sql commands which exists in [buffer]
Note that we skip `SELECT 1` (typically for testing sql connection) since its distance is 0
|
void |
handle(SqlExecutionLogDto sqlExecutionLogDto)
handle executed sql info
|
boolean |
isCalculateHeuristics() |
boolean |
isCompleteSqlHeuristics() |
boolean |
isExtractSqlExecution() |
void |
reset() |
void |
setCalculateHeuristics(boolean calculateHeuristics) |
void |
setCompleteSqlHeuristics(boolean completeSqlHeuristics) |
void |
setConnection(Connection connection) |
void |
setExtractSqlExecution(boolean extractSqlExecution) |
void |
setSchema(DbInfoDto schema) |
public SqlHandler(TaintHandler taintHandler)
public void reset()
public void setConnection(Connection connection)
public void setSchema(DbInfoDto schema)
public void handle(SqlExecutionLogDto sqlExecutionLogDto)
sqlExecutionLogDto - to be handledpublic SqlExecutionsDto getExecutionDto()
public List<SqlCommandWithDistance> getSqlDistances(List<InsertionDto> successfulInitSqlInsertions, boolean queryFromDatabase)
public boolean isCalculateHeuristics()
public boolean isExtractSqlExecution()
public void setCalculateHeuristics(boolean calculateHeuristics)
public void setExtractSqlExecution(boolean extractSqlExecution)
public boolean isCompleteSqlHeuristics()
public void setCompleteSqlHeuristics(boolean completeSqlHeuristics)
Copyright © 2016–2025. All rights reserved.