Class SQLTableNameNamer

  • All Implemented Interfaces:
    SQLTableNamer

    public class SQLTableNameNamer
    extends java.lang.Object
    implements SQLTableNamer
    SQLTable namer that uses the table name as the "alias". Useful for datastores that don't allow aliases in UPDATE/DELETE statements.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAliasForTable​(SQLStatement stmt, Table table, java.lang.String groupName)
      Method to return the alias to use for the specified table.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SQLTableNameNamer

        public SQLTableNameNamer()
    • Method Detail

      • getAliasForTable

        public java.lang.String getAliasForTable​(SQLStatement stmt,
                                                 Table table,
                                                 java.lang.String groupName)
        Description copied from interface: SQLTableNamer
        Method to return the alias to use for the specified table.
        Specified by:
        getAliasForTable in interface SQLTableNamer
        Parameters:
        stmt - The statement where we will use the table
        table - The table
        groupName - Name of the table group
        Returns:
        The alias to use