protected class BaseUpgradeCompanyId.TableUpdater
extends Object
implements Callable<Void>
| Constructor and Description |
|---|
TableUpdater(String tableName,
String foreignTableName,
String foreignColumnName) |
TableUpdater(String tableName,
String columnName,
String[][] foreignNamesArray) |
| Modifier and Type | Method and Description |
|---|---|
Void |
call() |
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 foreignColumnName)
public TableUpdater(String tableName,
String columnName,
String[][] foreignNamesArray)
public final Void call()
throws Exception
call in interface Callable<Void>Exceptionpublic 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)