Class KnownIdentifierMap

java.lang.Object
net.sf.jailer.modelbuilder.KnownIdentifierMap

public class KnownIdentifierMap extends Object
Maps normalized form of known unique identifiers (table names and column names) to the the identifiers.
Author:
Wisser
  • Constructor Details

    • KnownIdentifierMap

      public KnownIdentifierMap()
  • Method Details

    • putTableName

      public void putTableName(String tableName)
      Puts normalized table name into the map.
      Parameters:
      tableName - the table name
    • getTableName

      public String getTableName(String tableName)
      Returns previously put non-normalized unique table name.
      Parameters:
      tableName - the table name
      Returns:
      previously put non-normalized unique table name, or null if none exists
    • putColumnName

      public void putColumnName(String tableName, String columnName)
      Puts normalized column name into the map.
      Parameters:
      tableName - the column's table name
      columnName - the column name
    • getColumnName

      public String getColumnName(String tableName, String columnName)
      Returns previously put non-normalized unique column name.
      Parameters:
      tableName - the column's table name
      columnName - the column name
      Returns:
      previously put non-normalized unique column name, or null if none exists
    • putCondition

      public void putCondition(String condition)
      Puts normalized join condition into the map.
      Parameters:
      condition - the join condition
    • getCondition

      public String getCondition(String condition)
      Returns previously put non-normalized unique join condition.
      Parameters:
      condition - the join condition
      Returns:
      previously put non-normalized unique join condition, or null if none exists