public class ResolutionContext extends Object
| Constructor and Description |
|---|
ResolutionContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all data (for reuse or testing)
|
Set<TTable> |
getAllReferencedTables()
Get all tables that have been referenced
|
List<TObjectName> |
getAmbiguousColumns()
Get all ambiguous columns
|
List<TObjectName> |
getColumnsByName(String columnName)
Find all column references with a given name (for conflict detection).
|
List<TObjectName> |
getExactMatches()
Get all exactly matched columns
|
List<TObjectName> |
getReferencesTo(TTable table)
Get all column references to a specific table.
|
List<TObjectName> |
getReferencesTo(TTable table,
String columnName)
Get all column references to a specific table.column.
|
ResolutionResult |
getResolution(TObjectName objName)
Get resolution result for a specific TObjectName
|
ResolutionStatistics |
getStatistics()
Get resolution statistics
|
int |
getTableReferenceCount(TTable table)
Get reference count for a specific table
|
List<TObjectName> |
getUnresolvedColumns()
Get all unresolved columns
|
void |
registerResolution(TObjectName objName,
ResolutionResult result)
Register a resolution result.
|
public ResolutionContext()
public void registerResolution(TObjectName objName, ResolutionResult result)
public List<TObjectName> getReferencesTo(TTable table)
table - Target tablepublic List<TObjectName> getReferencesTo(TTable table, String columnName)
table - Target tablecolumnName - Target column namepublic List<TObjectName> getColumnsByName(String columnName)
public List<TObjectName> getExactMatches()
public List<TObjectName> getAmbiguousColumns()
public List<TObjectName> getUnresolvedColumns()
public int getTableReferenceCount(TTable table)
public Set<TTable> getAllReferencedTables()
public ResolutionStatistics getStatistics()
public ResolutionResult getResolution(TObjectName objName)
public void clear()