protected class BaseCompanyIdUpgradeProcess.TableUpdater
extends Object
Constructor and Description |
---|
TableUpdater(String tableName,
String foreignTableName,
String columnName) |
TableUpdater(String tableName,
String columnName,
String[][] foreignNamesArray) |
Modifier and Type | Method and Description |
---|---|
protected String |
getSelectSQL(Connection connection,
String foreignTableName,
String foreignColumnName) |
String |
getTableName() |
protected String |
getUpdateSQL(Connection connection,
String foreignTableName,
String foreignColumnName) |
protected String |
getUpdateSQL(String selectSQL) |
void |
setCreateCompanyIdColumn(boolean createCompanyIdColumn) |
void |
update(Connection connection) |
public TableUpdater(String tableName, String foreignTableName, String columnName)
public TableUpdater(String tableName, String columnName, String[][] foreignNamesArray)
public String getTableName()
public void setCreateCompanyIdColumn(boolean createCompanyIdColumn)
public void update(Connection connection) throws Exception
Exception
protected String getSelectSQL(Connection connection, String foreignTableName, String foreignColumnName) throws SQLException
SQLException
protected String getUpdateSQL(Connection connection, String foreignTableName, String foreignColumnName) throws SQLException
SQLException
protected String getUpdateSQL(String selectSQL)