spring-framework / org.springframework.jdbc.object / UpdatableSqlQuery

UpdatableSqlQuery

abstract class UpdatableSqlQuery<T : Any> : SqlQuery<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.

Subclasses can be constructed providing SQL, parameter types and a DataSource. SQL will often vary between subclasses.

Author
Thomas Risberg

See Also
org.springframework.jdbc.object.SqlQuery

Constructors

<init>

UpdatableSqlQuery()

Constructor to allow use as a JavaBean

UpdatableSqlQuery(ds: DataSource, sql: String)

Convenient constructor with DataSource and SQL string.