com.liferay.portal.verify
Class VerifyProcess
java.lang.Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.verify.VerifyProcess
- All Implemented Interfaces:
- com.liferay.portal.kernel.dao.db.DBProcess
- Direct Known Subclasses:
- BaseCompanySettingsVerifyProcess, VerifyAsset, VerifyAuditedModel, VerifyBlogs, VerifyBlogsTrackbacks, VerifyDB2, VerifyGroup, VerifyGroupedModel, VerifyLayout, VerifyMessageBoards, VerifyMySQL, VerifyOracle, VerifyOrganization, VerifyPermission, VerifyPortletPreferences, VerifyProcessSuite, VerifyProperties, VerifyRatings, VerifyResourcePermissions, VerifyRole, VerifySocial, VerifySQLServer, VerifyUser, VerifyUUID, VerifyWorkflow
public abstract class VerifyProcess
- extends com.liferay.portal.kernel.dao.db.BaseDBProcess
This abstract class should be extended for startup processes that verify the
integrity of the database. They can be added as part of
VerifyProcessSuite or be executed independently by being set in
the portal.properties file. Each of these processes should not cause any
problems if run multiple times.
| Fields inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess |
connection |
| 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 |
ALWAYS
public static final int ALWAYS
- See Also:
- Constant Field Values
NEVER
public static final int NEVER
- See Also:
- Constant Field Values
ONCE
public static final int ONCE
- See Also:
- Constant Field Values
VerifyProcess
public VerifyProcess()
verify
public void verify()
throws VerifyException
- Throws:
VerifyException
verify
public void verify(VerifyProcess verifyProcess)
throws VerifyException
- Throws:
VerifyException
doVerify
protected void doVerify()
throws Exception
- Throws:
Exception
doVerify
protected void doVerify(Collection<? extends com.liferay.portal.kernel.concurrent.ThrowableAwareRunnable> throwableAwareRunnables)
throws Exception
- Throws:
Exception
getBuildNumber
protected int getBuildNumber()
throws Exception
- Returns:
- the portal build number before
DBUpgrader has a chance to update it to
the value in ReleaseInfo.getBuildNumber()
- Throws:
Exception
getPortalTableNames
protected Set<String> getPortalTableNames()
throws Exception
- Throws:
Exception
isForceConcurrent
protected boolean isForceConcurrent(Collection<? extends com.liferay.portal.kernel.concurrent.ThrowableAwareRunnable> throwableAwareRunnables)
isPortalTableName
protected boolean isPortalTableName(String tableName)
throws Exception
- Throws:
Exception