Package | Description |
---|---|
org.springframework.jdbc.core.simple |
Simplification layer over JdbcTemplate for Java 5 and above.
|
org.springframework.jdbc.core.support |
Classes supporting the
org.springframework.jdbc.core package. |
org.springframework.jdbc.object |
The classes in this package represent RDBMS queries, updates,
and stored procedures as threadsafe, reusable objects.
|
org.springframework.test |
This package contains the legacy JUnit 3.8 class hierarchy, which as of Spring 3.0
has been deprecated in favor of using the listener-based Spring TestContext Framework.
|
org.springframework.test.context.junit4 |
Support classes for ApplicationContext-based and transactional
tests run with JUnit 4.5+ and the Spring TestContext Framework.
|
org.springframework.test.context.testng |
Support classes for ApplicationContext-based and transactional
tests run with TestNG and the Spring TestContext Framework.
|
org.springframework.test.jdbc |
Support classes for tests based on JDBC.
|
Modifier and Type | Method and Description |
---|---|
JdbcTemplate |
AbstractJdbcInsert.getJdbcTemplate()
Get the configured
JdbcTemplate . |
JdbcTemplate |
AbstractJdbcCall.getJdbcTemplate()
Get the configured
JdbcTemplate . |
Constructor and Description |
---|
AbstractJdbcCall(JdbcTemplate jdbcTemplate)
Constructor to be used when initializing using a
JdbcTemplate . |
AbstractJdbcInsert(JdbcTemplate jdbcTemplate)
Constructor to be used when initializing using a
JdbcTemplate . |
SimpleJdbcCall(JdbcTemplate jdbcTemplate)
Alternative Constructor that takes one parameter with the JdbcTemplate to be used.
|
SimpleJdbcInsert(JdbcTemplate jdbcTemplate)
Alternative Constructor that takes one parameter with the JdbcTemplate to be used.
|
Modifier and Type | Method and Description |
---|---|
protected JdbcTemplate |
JdbcDaoSupport.createJdbcTemplate(DataSource dataSource)
Create a JdbcTemplate for the given DataSource.
|
JdbcTemplate |
JdbcDaoSupport.getJdbcTemplate()
Return the JdbcTemplate for this DAO,
pre-initialized with the DataSource or set explicitly.
|
Modifier and Type | Method and Description |
---|---|
void |
JdbcBeanDefinitionReader.setJdbcTemplate(JdbcTemplate jdbcTemplate)
Set the JdbcTemplate to be used by this bean factory.
|
void |
JdbcDaoSupport.setJdbcTemplate(JdbcTemplate jdbcTemplate)
Set the JdbcTemplate for this DAO explicitly,
as an alternative to specifying a DataSource.
|
Modifier and Type | Method and Description |
---|---|
JdbcTemplate |
RdbmsOperation.getJdbcTemplate()
Return the JdbcTemplate object used by this object.
|
Modifier and Type | Method and Description |
---|---|
void |
RdbmsOperation.setJdbcTemplate(JdbcTemplate jdbcTemplate)
An alternative to the more commonly used setDataSource() when you want to
use the same JdbcTemplate in multiple RdbmsOperations.
|
Constructor and Description |
---|
StoredProcedure(JdbcTemplate jdbcTemplate,
String name)
Create a new object wrapper for a stored procedure.
|
Modifier and Type | Field and Description |
---|---|
protected JdbcTemplate |
AbstractTransactionalDataSourceSpringContextTests.jdbcTemplate
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
JdbcTemplate |
AbstractTransactionalDataSourceSpringContextTests.getJdbcTemplate()
Deprecated.
Return the JdbcTemplate that this base class manages.
|
Modifier and Type | Field and Description |
---|---|
protected JdbcTemplate |
AbstractTransactionalJUnit4SpringContextTests.jdbcTemplate
The
JdbcTemplate that this base class manages, available to subclasses. |
Modifier and Type | Field and Description |
---|---|
protected JdbcTemplate |
AbstractTransactionalTestNGSpringContextTests.jdbcTemplate
The
JdbcTemplate that this base class manages, available to subclasses. |
Modifier and Type | Method and Description |
---|---|
static int |
JdbcTestUtils.countRowsInTable(JdbcTemplate jdbcTemplate,
String tableName)
Count the rows in the given table.
|
static int |
JdbcTestUtils.countRowsInTableWhere(JdbcTemplate jdbcTemplate,
String tableName,
String whereClause)
Count the rows in the given table, using the provided
WHERE clause. |
static int |
JdbcTestUtils.deleteFromTables(JdbcTemplate jdbcTemplate,
String... tableNames)
Delete all rows from the specified tables.
|
static int |
JdbcTestUtils.deleteFromTableWhere(JdbcTemplate jdbcTemplate,
String tableName,
String whereClause,
Object... args)
Delete rows from the given table, using the provided
WHERE clause. |
static void |
JdbcTestUtils.dropTables(JdbcTemplate jdbcTemplate,
String... tableNames)
Drop the specified tables.
|
static void |
JdbcTestUtils.executeSqlScript(JdbcTemplate jdbcTemplate,
EncodedResource resource,
boolean continueOnError)
Execute the given SQL script.
|
static void |
JdbcTestUtils.executeSqlScript(JdbcTemplate jdbcTemplate,
Resource resource,
boolean continueOnError)
Execute the given SQL script.
|
static void |
JdbcTestUtils.executeSqlScript(JdbcTemplate jdbcTemplate,
ResourceLoader resourceLoader,
String sqlResourcePath,
boolean continueOnError)
Execute the given SQL script.
|
Copyright © 2015. All rights reserved.