接口 Expectation

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      boolean canBeBatched()
      Is it acceptable to combiner this expectation with statement batching?
      int prepare​(PreparedStatement statement)
      Perform any special statement preparation.
      void verifyOutcome​(int rowCount, PreparedStatement statement, int batchPosition)
      Perform verification of the outcome of the RDBMS operation based on the type of expectation defined.
    • 方法详细资料

      • verifyOutcome

        void verifyOutcome​(int rowCount,
                           PreparedStatement statement,
                           int batchPosition)
                    throws SQLException,
                           HibernateException
        Perform verification of the outcome of the RDBMS operation based on the type of expectation defined.
        参数:
        rowCount - The RDBMS reported "number of rows affected".
        statement - The statement representing the operation
        batchPosition - The position in the batch (if batching)
        抛出:
        SQLException - Exception from the JDBC driver
        HibernateException - Problem processing the outcome.
      • canBeBatched

        boolean canBeBatched()
        Is it acceptable to combiner this expectation with statement batching?
        返回:
        True if batching can be combined with this expectation; false otherwise.