Liferay 6.0.5

com.liferay.portal.verify
Class VerifyProcess

java.lang.Object
  extended by com.liferay.portal.verify.VerifyProcess
Direct Known Subclasses:
VerifyBlogs, VerifyBlogsTrackbacks, VerifyBookmarks, VerifyCalendar, VerifyCounter, VerifyDocumentLibrary, VerifyGroup, VerifyImage, VerifyImageGallery, VerifyJournal, VerifyLayout, VerifyMessageBoards, VerifyMySQL, VerifyOrganization, VerifyProcessSuite, VerifyProperties, VerifyRole, VerifySocial, VerifyUser, VerifyUUID, VerifyWiki

public abstract class VerifyProcess
extends Object

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.


Field Summary
static int ALWAYS
           
static int NEVER
           
static int ONCE
           
 
Constructor Summary
VerifyProcess()
           
 
Method Summary
protected  void doVerify()
           
 void runSQL(String template)
           
 void runSQL(String[] templates)
           
 void runSQLTemplate(String path)
           
 void runSQLTemplate(String path, boolean failOnError)
           
 void verify()
           
 void verify(VerifyProcess verifyProcess)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

VerifyProcess

public VerifyProcess()
Method Detail

runSQL

public void runSQL(String template)
            throws IOException,
                   SQLException
Throws:
IOException
SQLException

runSQL

public void runSQL(String[] templates)
            throws IOException,
                   SQLException
Throws:
IOException
SQLException

runSQLTemplate

public void runSQLTemplate(String path)
                    throws IOException,
                           NamingException,
                           SQLException
Throws:
IOException
NamingException
SQLException

runSQLTemplate

public void runSQLTemplate(String path,
                           boolean failOnError)
                    throws IOException,
                           NamingException,
                           SQLException
Throws:
IOException
NamingException
SQLException

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

Liferay 6.0.5