public abstract class BaseDBProcess extends Object implements DBProcess
| Modifier and Type | Field and Description |
|---|---|
protected Connection |
connection |
| Constructor and Description |
|---|
BaseDBProcess() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doHasTable(String tableName) |
protected boolean |
hasColumn(String tableName,
String columnName) |
protected boolean |
hasColumnType(Class<?> tableClass,
String columnName,
String columnType) |
protected boolean |
hasRows(Connection connection,
String tableName) |
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) |
protected Connection connection
public void runSQL(Connection connection, String template) throws IOException, SQLException
runSQL in interface DBProcessIOExceptionSQLExceptionpublic void runSQL(String template) throws IOException, SQLException
runSQL in interface DBProcessIOExceptionSQLExceptionpublic void runSQL(String[] templates) throws IOException, SQLException
runSQL in interface DBProcessIOExceptionSQLExceptionpublic void runSQLTemplate(String path) throws IOException, NamingException, SQLException
runSQLTemplate in interface DBProcessIOExceptionNamingExceptionSQLExceptionpublic void runSQLTemplate(String path, boolean failOnError) throws IOException, NamingException, SQLException
runSQLTemplate in interface DBProcessIOExceptionNamingExceptionSQLExceptionpublic void runSQLTemplateString(String template, boolean evaluate, boolean failOnError) throws IOException, NamingException, SQLException
runSQLTemplateString in interface DBProcessIOExceptionNamingExceptionSQLExceptionprotected boolean hasColumn(String tableName, String columnName) throws Exception
Exceptionprotected boolean hasColumnType(Class<?> tableClass, String columnName, String columnType) throws Exception
Exceptionprotected boolean hasRows(Connection connection, String tableName)