JavaScript is disabled on your browser.
Field Summary
Fields
Modifier and Type
Field and Description
protected JdbcTemplate
jdbcTemplate
The JdbcTemplate
that this base class manages, available to subclasses.
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
protected int
countRowsInTable (java.lang.String tableName)
Convenience method for counting the rows in the given table.
protected int
countRowsInTableWhere (java.lang.String tableName,
java.lang.String whereClause)
Convenience method for counting the rows in the given table, using the
provided WHERE
clause.
protected int
deleteFromTables (java.lang.String... names)
Convenience method for deleting all rows from the specified tables.
protected int
deleteFromTableWhere (java.lang.String tableName,
java.lang.String whereClause,
java.lang.Object... args)
Convenience method for deleting all rows from the given table, using the
provided WHERE
clause.
protected void
dropTables (java.lang.String... names)
Convenience method for dropping all of the specified tables.
protected void
executeSqlScript (java.lang.String sqlResourcePath,
boolean continueOnError)
Execute the given SQL script.
void
setDataSource (javax.sql.DataSource dataSource)
Set the DataSource
, typically provided via Dependency Injection.
void
setSqlScriptEncoding (java.lang.String sqlScriptEncoding)
Specify the encoding for SQL scripts, if different from the platform encoding.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
jdbcTemplate
protected final JdbcTemplate jdbcTemplate
The JdbcTemplate
that this base class manages, available to subclasses.
Since:
3.2
Method Detail
setSqlScriptEncoding
public void setSqlScriptEncoding(java.lang.String sqlScriptEncoding)
Specify the encoding for SQL scripts, if different from the platform encoding.
See Also:
executeSqlScript(java.lang.String, boolean)