Liferay 7.0-ga1 portal-impl

com.liferay.portal.upgrade.util
Class UpgradeCompanyId.TableUpdater

java.lang.Object
  extended by 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>


Constructor Summary
UpgradeCompanyId.TableUpdater(String tableName, String foreignTableName, String foreignColumnName)
           
UpgradeCompanyId.TableUpdater(String tableName, String columnName, String[][] foreignNamesArray)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeCompanyId.TableUpdater

public UpgradeCompanyId.TableUpdater(String tableName,
                                     String foreignTableName,
                                     String foreignColumnName)

UpgradeCompanyId.TableUpdater

public UpgradeCompanyId.TableUpdater(String tableName,
                                     String columnName,
                                     String[][] foreignNamesArray)
Method Detail

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)

Liferay 7.0-ga1 portal-impl