# Package org.springframework.jdbc.object

@NonNullApi @NonNullFields package org.springframework.jdbc.object
The classes in this package represent RDBMS queries, updates, and stored procedures as threadsafe, reusable objects. This approach is modeled by JDO, although objects returned by queries are of course "disconnected" from the database.

This higher-level JDBC abstraction depends on the lower-level abstraction in the `org.springframework.jdbc.core` package. Exceptions thrown are as in the `org.springframework.dao` package, meaning that code using this package does not need to implement JDBC or RDBMS-specific error handling.

This package and related packages are discussed in Chapter 9 of Expert One-On-One J2EE Design and Development by Rod Johnson (Wrox, 2002).

Related Packages
Package
Description
org.springframework.jdbc
The classes in this package make JDBC easier to use and reduce the likelihood of common errors.
org.springframework.jdbc.config
Defines the Spring JDBC configuration namespace.
org.springframework.jdbc.core
Provides the core JDBC framework, based on JdbcTemplate and its associated callback interfaces and helper objects.
org.springframework.jdbc.datasource
Provides a utility class for easy DataSource access, a PlatformTransactionManager for a single DataSource, and various simple DataSource implementations.
org.springframework.jdbc.support
Support classes for the JDBC framework, used by the classes in the jdbc.core and jdbc.object packages.
Classes
Class
Description
BatchSqlUpdate
SqlUpdate subclass that performs batch update operations.
GenericSqlQuery<T>
A concrete variant of `SqlQuery` which can be configured with a `RowMapper`.
GenericStoredProcedure
Concrete implementation making it possible to define the RDBMS stored procedures in an application context without writing a custom Java implementation class.
MappingSqlQuery<T>
Reusable query in which concrete subclasses must implement the abstract mapRow(ResultSet, int) method to convert each row of the JDBC ResultSet into an object.
MappingSqlQueryWithParameters<T>
Reusable RDBMS query in which concrete subclasses must implement the abstract mapRow(ResultSet, int) method to map each row of the JDBC ResultSet into an object.
RdbmsOperation
An "RDBMS operation" is a multithreaded, reusable object representing a query, update, or stored procedure call.
SqlCall
RdbmsOperation using a JdbcTemplate and representing an SQL-based call such as a stored procedure or a stored function.
SqlFunction<T>
SQL "function" wrapper for a query that returns a single row of results.
SqlOperation
Operation object representing an SQL-based operation such as a query or update, as opposed to a stored procedure.
SqlQuery<T>
Reusable operation object representing an SQL query.
SqlUpdate
Reusable operation object representing an SQL update.
StoredProcedure
Superclass for object abstractions of RDBMS stored procedures.
UpdatableSqlQuery<T>
Reusable RDBMS query in which concrete subclasses must implement the abstract updateRow(ResultSet, int, context) method to update each row of the JDBC ResultSet and optionally map contents into an object.