Liferay 7.0-ce-b4

com.liferay.portal.upgrade.v7_0_0
Class UpgradeSubscription

java.lang.Object
  extended by com.liferay.portal.kernel.dao.db.BaseDBProcess
      extended by com.liferay.portal.kernel.upgrade.UpgradeProcess
          extended by com.liferay.portal.upgrade.v7_0_0.UpgradeSubscription
All Implemented Interfaces:
DBProcess, UpgradeStep

public class UpgradeSubscription
extends UpgradeProcess


Field Summary
 
Fields inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
connection
 
Constructor Summary
UpgradeSubscription()
           
 
Method Summary
protected  void addClassName(long classNameId, String className)
           
protected  void deleteOrphanedSubscriptions()
           
protected  void doUpgrade()
           
protected  long getClassNameId(String className)
           
protected  long getGroupId(long classNameId, long classPK)
           
protected  boolean hasGroup(long groupId)
           
protected  void updateSubscriptionClassNames(String oldClassName, String newClassName)
           
protected  void updateSubscriptionGroupId(long subscriptionId, long classNameId, long classPK)
           
protected  void updateSubscriptionGroupIds()
           
 
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
getThreshold, increment, increment, isSupportsAlterColumnName, isSupportsAlterColumnType, isSupportsStringCaseSensitiveQuery, isSupportsUpdateWithInnerJoin, upgrade, upgrade, upgrade, upgrade, upgradeTable, upgradeTable
 
Methods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
doHasTable, hasColumn, 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
 

Constructor Detail

UpgradeSubscription

public UpgradeSubscription()
Method Detail

addClassName

protected void addClassName(long classNameId,
                            String className)
                     throws Exception
Throws:
Exception

deleteOrphanedSubscriptions

protected void deleteOrphanedSubscriptions()
                                    throws Exception
Throws:
Exception

doUpgrade

protected void doUpgrade()
                  throws Exception
Specified by:
doUpgrade in class UpgradeProcess
Throws:
Exception

getClassNameId

protected long getClassNameId(String className)
                       throws Exception
Throws:
Exception

getGroupId

protected long getGroupId(long classNameId,
                          long classPK)
                   throws Exception
Throws:
Exception

hasGroup

protected boolean hasGroup(long groupId)
                    throws Exception
Throws:
Exception

updateSubscriptionClassNames

protected void updateSubscriptionClassNames(String oldClassName,
                                            String newClassName)
                                     throws Exception
Throws:
Exception

updateSubscriptionGroupId

protected void updateSubscriptionGroupId(long subscriptionId,
                                         long classNameId,
                                         long classPK)
                                  throws Exception
Throws:
Exception

updateSubscriptionGroupIds

protected void updateSubscriptionGroupIds()
                                   throws Exception
Throws:
Exception

Liferay 7.0-ce-b4