com.liferay.portal.upgrade.util
Class UpgradeCompanyId.TableUpdater
java.lang.Object
com.liferay.portal.upgrade.util.UpgradeCompanyId.TableUpdater
- All Implemented Interfaces:
- Callable<Void>
- Direct Known Subclasses:
- UpgradeCompanyId.DLSyncEventTableUpdater, UpgradeCompanyId.PortletPreferencesTableUpdater
- Enclosing class:
- UpgradeCompanyId
protected class UpgradeCompanyId.TableUpdater
- extends Object
- implements Callable<Void>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpgradeCompanyId.TableUpdater
public UpgradeCompanyId.TableUpdater(String tableName,
String foreignTableName,
String foreignColumnName)
UpgradeCompanyId.TableUpdater
public UpgradeCompanyId.TableUpdater(String tableName,
String columnName,
String[][] foreignNamesArray)
call
public final Void call()
throws Exception
- Specified by:
call in interface Callable<Void>
- Throws:
Exception
getTableName
public String getTableName()
setCreateCompanyIdColumn
public void setCreateCompanyIdColumn(boolean createCompanyIdColumn)
update
public void update(Connection connection)
throws IOException,
SQLException
- Throws:
IOException
SQLException
getCompanyIds
protected List<Long> getCompanyIds(Connection connection)
throws SQLException
- Throws:
SQLException
getSelectSQL
protected String getSelectSQL(Connection connection,
String foreignTableName,
String foreignColumnName)
throws SQLException
- Throws:
SQLException
getUpdateSQL
protected String getUpdateSQL(Connection connection,
String foreignTableName,
String foreignColumnName)
throws SQLException
- Throws:
SQLException
getUpdateSQL
protected String getUpdateSQL(String selectSQL)