com.liferay.portal.verify
Class VerifyProcess
java.lang.Object
com.liferay.portal.verify.VerifyProcess
- Direct Known Subclasses:
- VerifyBlogs, VerifyBlogsTrackbacks, VerifyBookmarks, VerifyCounter, VerifyDocumentLibrary, VerifyGroup, VerifyImage, VerifyImageGallery, VerifyJournal, VerifyLayout, VerifyLucene, VerifyMessageBoards, VerifyMySQL, VerifyOrganization, VerifyPermission, VerifyProcessSuite, VerifyProperties, VerifyRole, VerifySocial, VerifyUser, VerifyUUID, VerifyWiki
public abstract class VerifyProcess
- extends java.lang.Object
View Source
This abstract class should be extended for startup processes that verify the
integrity of the database. They can be added as part of
com.liferay.portal.verify.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. View Source
- Author:
- Alexander Chow
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()
runSQL
public void runSQL(java.lang.String template)
throws java.io.IOException,
java.sql.SQLException
- Throws:
java.io.IOException
java.sql.SQLException
runSQL
public void runSQL(java.lang.String[] templates)
throws java.io.IOException,
java.sql.SQLException
- Throws:
java.io.IOException
java.sql.SQLException
runSQLTemplate
public void runSQLTemplate(java.lang.String path)
throws java.io.IOException,
javax.naming.NamingException,
java.sql.SQLException
- Throws:
java.io.IOException
javax.naming.NamingException
java.sql.SQLException
runSQLTemplate
public void runSQLTemplate(java.lang.String path,
boolean failOnError)
throws java.io.IOException,
javax.naming.NamingException,
java.sql.SQLException
- Throws:
java.io.IOException
javax.naming.NamingException
java.sql.SQLException
verify
public void verify()
throws VerifyException
- Throws:
VerifyException
verify
public void verify(VerifyProcess verifyProcess)
throws VerifyException
- Throws:
VerifyException
doVerify
protected void doVerify()
throws java.lang.Exception
- Throws:
java.lang.Exception