public class UpgradeSharding
extends com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess.Alterable, com.liferay.portal.kernel.upgrade.UpgradeProcess.AlterColumnName, com.liferay.portal.kernel.upgrade.UpgradeProcess.AlterColumnType, com.liferay.portal.kernel.upgrade.UpgradeProcess.AlterTableAddColumn, com.liferay.portal.kernel.upgrade.UpgradeProcess.AlterTableDropColumn| Constructor and Description |
|---|
UpgradeSharding() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyCompanyTable(java.sql.Connection sourceConnection,
java.sql.Connection targetConnection,
java.lang.String shardName) |
protected void |
copyControlTable(java.sql.Connection sourceConnection,
java.sql.Connection targetConnection,
java.lang.String tableName,
java.lang.Object[][] columns,
java.lang.String createSQL) |
protected void |
copyControlTables(java.util.List<java.lang.String> shardNames) |
protected void |
copyControlTables(java.lang.String shardName) |
protected void |
doUpgrade() |
protected void |
dropTable(java.sql.Connection connection,
java.lang.String tableName) |
protected java.util.List<java.lang.Long> |
getCompanyIds(java.lang.String shardName) |
protected java.util.List<java.lang.String> |
getShardNames() |
alter, clearIndexesCache, getIndexesSQL, getTableName, getThreshold, increment, increment, increment, isPortal62TableName, isSkipUpgradeProcess, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, normalizeName, upgrade, upgrade, upgrade, upgrade, upgradeTable, upgradeTableprotected void copyCompanyTable(java.sql.Connection sourceConnection,
java.sql.Connection targetConnection,
java.lang.String shardName)
throws java.lang.Exception
java.lang.Exceptionprotected void copyControlTable(java.sql.Connection sourceConnection,
java.sql.Connection targetConnection,
java.lang.String tableName,
java.lang.Object[][] columns,
java.lang.String createSQL)
throws java.lang.Exception
java.lang.Exceptionprotected void copyControlTables(java.util.List<java.lang.String> shardNames)
throws java.lang.Exception
java.lang.Exceptionprotected void copyControlTables(java.lang.String shardName)
throws java.lang.Exception
java.lang.Exceptionprotected void doUpgrade()
throws java.lang.Exception
doUpgrade in class com.liferay.portal.kernel.upgrade.UpgradeProcessjava.lang.Exceptionprotected void dropTable(java.sql.Connection connection,
java.lang.String tableName)
throws java.io.IOException,
java.sql.SQLException
java.io.IOExceptionjava.sql.SQLExceptionprotected java.util.List<java.lang.Long> getCompanyIds(java.lang.String shardName)
throws java.lang.Exception
java.lang.Exceptionprotected java.util.List<java.lang.String> getShardNames()
throws java.lang.Exception
java.lang.Exception