本文整理汇总了Java中org.springframework.test.jdbc.SimpleJdbcTestUtils.deleteFromTables方法的典型用法代码示例。如果您正苦于以下问题:Java SimpleJdbcTestUtils.deleteFromTables方法的具体用法?Java SimpleJdbcTestUtils.deleteFromTables怎么用?Java SimpleJdbcTestUtils.deleteFromTables使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.springframework.test.jdbc.SimpleJdbcTestUtils
的用法示例。
在下文中一共展示了SimpleJdbcTestUtils.deleteFromTables方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: clearPersonTable
import org.springframework.test.jdbc.SimpleJdbcTestUtils; //导入方法依赖的package包/类
protected static int clearPersonTable(final SimpleJdbcTemplate simpleJdbcTemplate) {
return SimpleJdbcTestUtils.deleteFromTables(simpleJdbcTemplate, "person");
}
示例2: deleteFromTables
import org.springframework.test.jdbc.SimpleJdbcTestUtils; //导入方法依赖的package包/类
/**
* Convenience method for deleting all rows from the specified tables. Use with caution outside of a transaction!
*
* @param names the names of the tables from which to delete
* @return the total number of rows deleted from all specified tables
*/
protected int deleteFromTables(String... names) {
return SimpleJdbcTestUtils.deleteFromTables(this.simpleJdbcTemplate, names);
}
示例3: deleteFromTables
import org.springframework.test.jdbc.SimpleJdbcTestUtils; //导入方法依赖的package包/类
/**
* Convenience method for deleting all rows from the specified tables.
* Use with caution outside of a transaction!
* @param names the names of the tables from which to delete
* @return the total number of rows deleted from all specified tables
*/
protected int deleteFromTables(String... names) {
return SimpleJdbcTestUtils.deleteFromTables(this.simpleJdbcTemplate, names);
}
开发者ID:deathspeeder,项目名称:class-guard,代码行数:10,代码来源:AbstractTransactionalJUnit38SpringContextTests.java
示例4: deleteFromTables
import org.springframework.test.jdbc.SimpleJdbcTestUtils; //导入方法依赖的package包/类
/**
* Convenience method for deleting all rows from the specified tables. Use with caution outside of a transaction!
*
* @param names the names of the tables from which to delete
* @return the total number of rows deleted from all specified tables
*/
protected int deleteFromTables( String... names ) {
return SimpleJdbcTestUtils.deleteFromTables( this.simpleJdbcTemplate, names );
}