com.liferay.portal.kernel.dao.db
Class BaseDBProcess
java.lang.Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
- All Implemented Interfaces:
- DBProcess
- Direct Known Subclasses:
- UpgradeProcess
public abstract class BaseDBProcess
- extends Object
- implements DBProcess
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connection
protected Connection connection
BaseDBProcess
public BaseDBProcess()
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