类 RdbmsOperation

  • 所有已实现的接口:
    InitializingBean
    直接已知子类:
    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.

    作者:
    Rod Johnson, Juergen Hoeller
    另请参阅:
    SqlQuery, SqlUpdate, StoredProcedure, JdbcTemplate