com.liferay.portal.upgrade.v7_0_0
Class UpgradeSharding
java.lang.Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.upgrade.v7_0_0.UpgradeSharding
- All Implemented Interfaces:
- com.liferay.portal.kernel.dao.db.DBProcess, com.liferay.portal.kernel.upgrade.UpgradeStep
public class UpgradeSharding
- extends com.liferay.portal.kernel.upgrade.UpgradeProcess
| Nested classes/interfaces inherited from class 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 |
| Fields inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess |
connection |
| Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess |
alter, clearIndexesCache, getIndexesSQL, getThreshold, increment, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, normalizeName, upgrade, upgrade, upgrade, upgrade, upgradeTable, upgradeTable |
| Methods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess |
doHasTable, hasColumn, hasRows, hasRows, hasTable, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpgradeSharding
public UpgradeSharding()
copyCompanyTable
protected void copyCompanyTable(Connection sourceConnection,
Connection targetConnection,
String shardName)
throws Exception
- Throws:
Exception
copyControlTable
protected void copyControlTable(Connection sourceConnection,
Connection targetConnection,
String tableName,
Object[][] columns,
String createSQL)
throws Exception
- Throws:
Exception
copyControlTables
protected void copyControlTables(List<String> shardNames)
throws Exception
- Throws:
Exception
copyControlTables
protected void copyControlTables(String shardName)
throws Exception
- Throws:
Exception
doUpgrade
protected void doUpgrade()
throws Exception
- Specified by:
doUpgrade in class com.liferay.portal.kernel.upgrade.UpgradeProcess
- Throws:
Exception
dropTable
protected void dropTable(Connection connection,
String tableName)
throws IOException,
SQLException
- Throws:
IOException
SQLException
getCompanyIds
protected List<Long> getCompanyIds(String shardName)
throws Exception
- Throws:
Exception
getShardNames
protected List<String> getShardNames()
throws Exception
- Throws:
Exception