Class RdbmsOperation

  • All Implemented Interfaces:
    InitializingBean
    Direct Known Subclasses:
    SqlCall, SqlOperation

    public abstract class RdbmsOperation
    extends Object
    implements InitializingBean
    An "RDBMS operation" is a multi-threaded, reusable object representing a query, update, or stored procedure call. An RDBMS operation is not a command, as a command is not reusable. However, execute methods may take commands as arguments. Subclasses should be JavaBeans, allowing easy configuration.

    This class and subclasses throw runtime exceptions, defined in the org.springframework.dao package (and as thrown by the org.springframework.jdbc.core package, which the classes in this package use under the hood to perform raw JDBC operations).

    Subclasses should set SQL and add parameters before invoking the compile() method. The order in which parameters are added is significant. The appropriate execute or update method can then be invoked.

    Author:
    Rod Johnson, Juergen Hoeller
    See Also:
    SqlQuery, SqlUpdate, StoredProcedure, JdbcTemplate