org.d2rq.db.renamer
Class TableRenamer
java.lang.Object
org.d2rq.db.renamer.Renamer
org.d2rq.db.renamer.TableRenamer
public class TableRenamer
- extends Renamer
A Renamer
that can be applied to various things in order to
substitute some tables for other tables, e.g., substitute a
base table by an alias.
- Author:
- Richard Cyganiak (richard@cyganiak.de)
Methods inherited from class org.d2rq.db.renamer.Renamer |
applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, applyTo, applyToColumns, applyToJoinConditions, applyToProjections, applyToTabulars |
create
public static Renamer create(TableName old,
TableName replacement)
create
public static Renamer create(Map<TableName,TableName> originalsToReplacements)
applyTo
public ColumnName applyTo(ColumnName original)
- Specified by:
applyTo
in class Renamer
- Parameters:
original
- A column name
- Returns:
- The renamed version of that column name, or the same column name
if the renamer does not apply to this argument
applyTo
public TableName applyTo(TableName original)
- Specified by:
applyTo
in class Renamer
- Parameters:
original
- A table name
- Returns:
- The renamed version of that table name, or the original if the
renamer does not apply to this argument
toString
public String toString()
- Overrides:
toString
in class Object