protected class BaseUpgradeCompanyId.TableUpdater extends BaseUpgradeCallable<Void>
Constructor and Description |
---|
TableUpdater(String tableName,
String foreignTableName,
String columnName) |
TableUpdater(String tableName,
String columnName,
String[][] foreignNamesArray) |
Modifier and Type | Method and Description |
---|---|
protected Void |
doCall() |
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) |
call
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
IOException
SQLException
protected final Void doCall() throws Exception
doCall
in class BaseUpgradeCallable<Void>
Exception
protected List<Long> getCompanyIds(Connection connection) throws SQLException
SQLException
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)