Package org.datanucleus.store.rdbms.sql
Class SQLTableNameNamer
- java.lang.Object
-
- org.datanucleus.store.rdbms.sql.SQLTableNameNamer
-
- All Implemented Interfaces:
SQLTableNamer
public class SQLTableNameNamer extends 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.
-
-
Constructor Summary
Constructors Constructor Description SQLTableNameNamer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAliasForTable(SQLStatement stmt, Table table, String groupName)Method to return the alias to use for the specified table.
-
-
-
Method Detail
-
getAliasForTable
public String getAliasForTable(SQLStatement stmt, Table table, String groupName)
Description copied from interface:SQLTableNamerMethod to return the alias to use for the specified table.- Specified by:
getAliasForTablein interfaceSQLTableNamer- Parameters:
stmt- The statement where we will use the tabletable- The tablegroupName- Name of the table group- Returns:
- The alias to use
-
-