Uses of Class
org.springframework.jdbc.core.JdbcTemplate
Packages that use JdbcTemplate
Package
Description
JdbcTemplate variant with named parameter support.
Simplification layer for table inserts and stored procedure calls.
Classes supporting the
org.springframework.jdbc.core package.The classes in this package represent RDBMS queries, updates,
and stored procedures as threadsafe, reusable objects.
Support classes for integrating the Spring TestContext Framework
with JUnit 4.12 or higher.
Support classes for integrating the Spring TestContext Framework
with TestNG.
Support classes for tests based on JDBC.
-
Uses of JdbcTemplate in org.springframework.jdbc.core.namedparam
Methods in org.springframework.jdbc.core.namedparam that return JdbcTemplateModifier and TypeMethodDescriptionNamedParameterJdbcTemplate.getJdbcTemplate()Expose the classic SpringJdbcTemplateitself, if available, in particular for passing it on to otherJdbcTemplateconsumers. -
Uses of JdbcTemplate in org.springframework.jdbc.core.simple
Methods in org.springframework.jdbc.core.simple that return JdbcTemplateModifier and TypeMethodDescriptionAbstractJdbcCall.getJdbcTemplate()Get the configuredJdbcTemplate.AbstractJdbcInsert.getJdbcTemplate()Get the configuredJdbcTemplate.Constructors in org.springframework.jdbc.core.simple with parameters of type JdbcTemplateModifierConstructorDescriptionprotectedAbstractJdbcCall(JdbcTemplate jdbcTemplate) Constructor to be used when initializing using aJdbcTemplate.protectedAbstractJdbcInsert(JdbcTemplate jdbcTemplate) Constructor to be used when initializing using aJdbcTemplate.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. -
Uses of JdbcTemplate in org.springframework.jdbc.core.support
Methods in org.springframework.jdbc.core.support that return JdbcTemplateModifier and TypeMethodDescriptionprotected JdbcTemplateJdbcDaoSupport.createJdbcTemplate(DataSource dataSource) Create a JdbcTemplate for the given DataSource.final JdbcTemplateJdbcDaoSupport.getJdbcTemplate()Return the JdbcTemplate for this DAO, pre-initialized with the DataSource or set explicitly.Methods in org.springframework.jdbc.core.support with parameters of type JdbcTemplateModifier and TypeMethodDescriptionvoidJdbcBeanDefinitionReader.setJdbcTemplate(JdbcTemplate jdbcTemplate) Deprecated.Set the JdbcTemplate to be used by this bean factory.final voidJdbcDaoSupport.setJdbcTemplate(JdbcTemplate jdbcTemplate) Set the JdbcTemplate for this DAO explicitly, as an alternative to specifying a DataSource. -
Uses of JdbcTemplate in org.springframework.jdbc.object
Methods in org.springframework.jdbc.object that return JdbcTemplateModifier and TypeMethodDescriptionRdbmsOperation.getJdbcTemplate()Return theJdbcTemplateused by this operation object.Methods in org.springframework.jdbc.object with parameters of type JdbcTemplateModifier and TypeMethodDescriptionvoidRdbmsOperation.setJdbcTemplate(JdbcTemplate jdbcTemplate) An alternative to the more commonly usedRdbmsOperation.setDataSource(javax.sql.DataSource)when you want to use the sameJdbcTemplatein multipleRdbmsOperations.Constructors in org.springframework.jdbc.object with parameters of type JdbcTemplateModifierConstructorDescriptionprotectedStoredProcedure(JdbcTemplate jdbcTemplate, String name) Create a new object wrapper for a stored procedure. -
Uses of JdbcTemplate in org.springframework.test.context.junit4
Fields in org.springframework.test.context.junit4 declared as JdbcTemplateModifier and TypeFieldDescriptionprotected final JdbcTemplateAbstractTransactionalJUnit4SpringContextTests.jdbcTemplateTheJdbcTemplatethat this base class manages, available to subclasses. -
Uses of JdbcTemplate in org.springframework.test.context.testng
Fields in org.springframework.test.context.testng declared as JdbcTemplateModifier and TypeFieldDescriptionprotected final JdbcTemplateAbstractTransactionalTestNGSpringContextTests.jdbcTemplateTheJdbcTemplatethat this base class manages, available to subclasses. -
Uses of JdbcTemplate in org.springframework.test.jdbc
Methods in org.springframework.test.jdbc with parameters of type JdbcTemplateModifier and TypeMethodDescriptionstatic intJdbcTestUtils.countRowsInTable(JdbcTemplate jdbcTemplate, String tableName) Count the rows in the given table.static intJdbcTestUtils.countRowsInTableWhere(JdbcTemplate jdbcTemplate, String tableName, String whereClause) Count the rows in the given table, using the providedWHEREclause.static intJdbcTestUtils.deleteFromTables(JdbcTemplate jdbcTemplate, String... tableNames) Delete all rows from the specified tables.static intJdbcTestUtils.deleteFromTableWhere(JdbcTemplate jdbcTemplate, String tableName, String whereClause, Object... args) Delete rows from the given table, using the providedWHEREclause.static voidJdbcTestUtils.dropTables(JdbcTemplate jdbcTemplate, String... tableNames) Drop the specified tables.