Liferay 7.0-ce-b4

com.liferay.portal.kernel.dao.db
Class BaseDBProcess

java.lang.Object
  extended by com.liferay.portal.kernel.dao.db.BaseDBProcess
All Implemented Interfaces:
DBProcess
Direct Known Subclasses:
UpgradeProcess, VerifyProcess

public abstract class BaseDBProcess
extends Object
implements DBProcess


Field Summary
protected  Connection connection
           
 
Constructor Summary
BaseDBProcess()
           
 
Method Summary
protected  boolean doHasTable(String tableName)
           
protected  boolean hasColumn(String tableName, String columnName)
           
protected  boolean hasRows(String tableName)
           
protected  boolean hasTable(String tableName)
           
 void runSQL(Connection connection, String template)
           
 void runSQL(String template)
           
 void runSQL(String[] templates)
           
 void runSQLTemplate(String path)
           
 void runSQLTemplate(String path, boolean failOnError)
           
 void runSQLTemplateString(String template, boolean evaluate, boolean failOnError)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connection

protected Connection connection
Constructor Detail

BaseDBProcess

public BaseDBProcess()
Method Detail

runSQL

public void runSQL(Connection connection,
                   String template)
            throws IOException,
                   SQLException
Specified by:
runSQL in interface DBProcess
Throws:
IOException
SQLException

runSQL

public void runSQL(String template)
            throws IOException,
                   SQLException
Specified by:
runSQL in interface DBProcess
Throws:
IOException
SQLException

runSQL

public void runSQL(String[] templates)
            throws IOException,
                   SQLException
Specified by:
runSQL in interface DBProcess
Throws:
IOException
SQLException

runSQLTemplate

public void runSQLTemplate(String path)
                    throws IOException,
                           NamingException,
                           SQLException
Specified by:
runSQLTemplate in interface DBProcess
Throws:
IOException
NamingException
SQLException

runSQLTemplate

public void runSQLTemplate(String path,
                           boolean failOnError)
                    throws IOException,
                           NamingException,
                           SQLException
Specified by:
runSQLTemplate in interface DBProcess
Throws:
IOException
NamingException
SQLException

runSQLTemplateString

public void runSQLTemplateString(String template,
                                 boolean evaluate,
                                 boolean failOnError)
                          throws IOException,
                                 NamingException,
                                 SQLException
Specified by:
runSQLTemplateString in interface DBProcess
Throws:
IOException
NamingException
SQLException

doHasTable

protected boolean doHasTable(String tableName)
                      throws Exception
Throws:
Exception

hasColumn

protected boolean hasColumn(String tableName,
                            String columnName)
                     throws Exception
Throws:
Exception

hasRows

protected boolean hasRows(String tableName)
                   throws Exception
Throws:
Exception

hasTable

protected boolean hasTable(String tableName)
                    throws Exception
Throws:
Exception

Liferay 7.0-ce-b4