public abstract class BaseUpgradePortletPreferences extends UpgradeProcess
UpgradeProcess.Alterable, UpgradeProcess.AlterColumnName, UpgradeProcess.AlterColumnType, UpgradeProcess.AlterTableAddColumn, UpgradeProcess.AlterTableDropColumn
connection
Constructor and Description |
---|
BaseUpgradePortletPreferences() |
Modifier and Type | Method and Description |
---|---|
protected void |
doUpgrade() |
protected long |
getCompanyId(String sql,
long primaryKey) |
protected Object[] |
getGroup(long groupId) |
protected Object[] |
getLayout(long plid) |
protected Object[] |
getLayoutRevision(long layoutRevisionId) |
protected String |
getLayoutUuid(long plid,
long layoutId) |
protected String[] |
getPortletIds() |
protected String |
getUpdatePortletPreferencesWhereClause() |
protected void |
updatePortletPreferences() |
protected void |
upgradeMultiValuePreference(PortletPreferences portletPreferences,
String key) |
protected abstract String |
upgradePreferences(long companyId,
long ownerId,
int ownerType,
long plid,
String portletId,
String xml) |
alter, clearIndexesCache, getIndexesSQL, getIndexSQLs, getTableColumnsMap, getTableName, getThreshold, increment, increment, increment, isPortal62TableName, isSkipUpgradeProcess, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, removePrimaryKey, upgrade, upgrade, upgrade, upgradeTable, upgradeTable
doHasTable, hasColumn, hasColumnType, hasColumnType, hasRows, hasRows, hasTable, runSQL, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateString, runSQLTemplateString
protected void doUpgrade() throws Exception
doUpgrade
in class UpgradeProcess
Exception
protected long getCompanyId(String sql, long primaryKey) throws Exception
Exception
protected Object[] getGroup(long groupId) throws Exception
Exception
protected Object[] getLayout(long plid) throws Exception
Exception
protected Object[] getLayoutRevision(long layoutRevisionId) throws Exception
Exception
protected String getLayoutUuid(long plid, long layoutId) throws Exception
Exception
protected String[] getPortletIds()
protected String getUpdatePortletPreferencesWhereClause()
protected void updatePortletPreferences() throws Exception
Exception
protected void upgradeMultiValuePreference(PortletPreferences portletPreferences, String key) throws ReadOnlyException
ReadOnlyException
protected abstract String upgradePreferences(long companyId, long ownerId, int ownerType, long plid, String portletId, String xml) throws Exception
Exception