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 List<Long> |
getCompanyIds(Connection connection) |
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 IOException,
SQLException
IOExceptionSQLExceptionprotected List<Long> getCompanyIds(Connection connection)
throws SQLException
SQLExceptionprotected String getSelectSQL(Connection connection,
String foreignTableName,
String foreignColumnName)
throws SQLException
SQLExceptionprotected String getUpdateSQL(Connection connection,
String foreignTableName,
String foreignColumnName)
throws SQLException
SQLExceptionprotected String getUpdateSQL(String selectSQL)