Class TableColumnResolver
java.lang.Object
org.evomaster.client.java.sql.heuristic.TableColumnResolver
Resolves table names and columns in a SQL query.
The name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenterStatementeContext(net.sf.jsqlparser.statement.Statement statement) Creates a context for resolving table names and columns in the given statement.voidExists the current statement context for resolving table and column names.net.sf.jsqlparser.statement.StatementGet the current statement in the context stack.resolve(net.sf.jsqlparser.schema.Column column) resolve(net.sf.jsqlparser.schema.Table table) Resolve the table reference for a given table name.
-
Constructor Details
-
TableColumnResolver
-
-
Method Details
-
enterStatementeContext
public void enterStatementeContext(net.sf.jsqlparser.statement.Statement statement) Creates a context for resolving table names and columns in the given statement.- Parameters:
statement- the new current statement context
-
exitCurrentStatementContext
public void exitCurrentStatementContext()Exists the current statement context for resolving table and column names. -
getCurrentStatement
public net.sf.jsqlparser.statement.Statement getCurrentStatement()Get the current statement in the context stack.- Returns:
-
resolve
-
resolve
Resolve the table reference for a given table name.- Parameters:
table- a non-null table . It could be a reference to an alias or a base table- Returns:
-