Class TableAliasContext
java.lang.Object
org.evomaster.client.java.sql.heuristic.TableAliasContext
The TableAliasContext class manages table aliases within a specific SQL context.
It allows adding aliases for both physical table names and derived tables (subqueries),
and provides methods to check for the existence of aliases and retrieve their corresponding
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAliasToDerivedTable(net.sf.jsqlparser.expression.Alias alias, net.sf.jsqlparser.statement.select.Select subquery) Add an alias for a derived table (subquery).voidaddAliasToTableName(net.sf.jsqlparser.expression.Alias alias, net.sf.jsqlparser.schema.Table target) Add an alias for a table name.booleancontainsAlias(String aliasName) Check if the given alias is declared in the current context.getTableReference(String aliasName) Get the table reference corresponding to the given alias.
-
Constructor Details
-
TableAliasContext
public TableAliasContext()
-
-
Method Details
-
containsAlias
Check if the given alias is declared in the current context.- Parameters:
aliasName-- Returns:
-
getTableReference
Get the table reference corresponding to the given alias.- Parameters:
aliasName-- Returns:
-
addAliasToTableName
public void addAliasToTableName(net.sf.jsqlparser.expression.Alias alias, net.sf.jsqlparser.schema.Table target) Add an alias for a table name.- Parameters:
alias-target-
-
addAliasToDerivedTable
public void addAliasToDerivedTable(net.sf.jsqlparser.expression.Alias alias, net.sf.jsqlparser.statement.select.Select subquery) Add an alias for a derived table (subquery).- Parameters:
alias-subquery-
-