Class SQLTableAlphaNamer

  extended by
All Implemented Interfaces:

public class SQLTableAlphaNamer
extends java.lang.Object
implements SQLTableNamer

SQLTable namer that generates names like A0, B1, C0, etc. Tables are prefixed by a letter based on the table-group they are in, followed by a number being the number within that table-group. The candidate table-group will always be prefixed A.

Constructor Summary
Method Summary
 java.lang.String getAliasForTable(SQLStatement stmt, 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


public SQLTableAlphaNamer()
Method Detail


public java.lang.String getAliasForTable(SQLStatement stmt,
                                         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
stmt - The statement where we will use the table
table - The table
groupName - Name of the table group
The alias to use

Copyright © 2009. All Rights Reserved.