类 Expectations.BasicExpectation

    • 构造器详细资料

      • BasicExpectation

        protected BasicExpectation​(int expectedRowCount)
    • 方法详细资料

      • verifyOutcome

        public final void verifyOutcome​(int rowCount,
                                        PreparedStatement statement,
                                        int batchPosition)
        从接口复制的说明: Expectation
        Perform verification of the outcome of the RDBMS operation based on the type of expectation defined.
        指定者:
        verifyOutcome 在接口中 Expectation
        参数:
        rowCount - The RDBMS reported "number of rows affected".
        statement - The statement representing the operation
        batchPosition - The position in the batch (if batching)
      • canBeBatched

        public boolean canBeBatched()
        从接口复制的说明: Expectation
        Is it acceptable to combiner this expectation with statement batching?
        指定者:
        canBeBatched 在接口中 Expectation
        返回:
        True if batching can be combined with this expectation; false otherwise.
      • determineRowCount

        protected int determineRowCount​(int reportedRowCount,
                                        PreparedStatement statement)