001 package com.mockrunner.jdbc; 002 003 import java.sql.CallableStatement; 004 import java.sql.PreparedStatement; 005 import java.util.List; 006 import java.util.Map; 007 008 import com.mockrunner.base.BaseTestCase; 009 import com.mockrunner.mock.jdbc.MockCallableStatement; 010 import com.mockrunner.mock.jdbc.MockPreparedStatement; 011 import com.mockrunner.mock.jdbc.MockResultSet; 012 import com.mockrunner.mock.jdbc.MockSavepoint; 013 import com.mockrunner.mock.jdbc.MockStatement; 014 015 /** 016 * Delegator for {@link com.mockrunner.jdbc.JDBCTestModule}. You can 017 * subclass this adapter or use {@link com.mockrunner.jdbc.JDBCTestModule} 018 * directly (so your test case can use another base class). 019 * This adapter extends {@link com.mockrunner.base.BaseTestCase}. 020 * It can be used if you want to use several modules in conjunction. 021 * <b>This class is generated from the {@link com.mockrunner.jdbc.JDBCTestModule} 022 * and should not be edited directly</b>. 023 */ 024 public abstract class JDBCTestCaseAdapter extends BaseTestCase 025 { 026 private JDBCTestModule jdbcTestModule; 027 028 public JDBCTestCaseAdapter() 029 { 030 031 } 032 033 public JDBCTestCaseAdapter(String name) 034 { 035 super(name); 036 } 037 038 protected void tearDown() throws Exception 039 { 040 super.tearDown(); 041 jdbcTestModule = null; 042 } 043 044 /** 045 * Creates the {@link com.mockrunner.jdbc.JDBCTestModule}. If you 046 * overwrite this method, you must call <code>super.setUp()</code>. 047 */ 048 protected void setUp() throws Exception 049 { 050 super.setUp(); 051 jdbcTestModule = createJDBCTestModule(getJDBCMockObjectFactory()); 052 } 053 054 /** 055 * Gets the {@link com.mockrunner.jdbc.JDBCTestModule}. 056 * @return the {@link com.mockrunner.jdbc.JDBCTestModule} 057 */ 058 protected JDBCTestModule getJDBCTestModule() 059 { 060 return jdbcTestModule; 061 } 062 063 /** 064 * Sets the {@link com.mockrunner.jdbc.JDBCTestModule}. 065 * @param jdbcTestModule the {@link com.mockrunner.jdbc.JDBCTestModule} 066 */ 067 protected void setJDBCTestModule(JDBCTestModule jdbcTestModule) 068 { 069 this.jdbcTestModule = jdbcTestModule; 070 } 071 072 /** 073 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#setCaseSensitive(boolean)} 074 */ 075 protected void setCaseSensitive(boolean caseSensitive) 076 { 077 jdbcTestModule.setCaseSensitive(caseSensitive); 078 } 079 080 /** 081 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCommitted} 082 */ 083 protected void verifyCommitted() 084 { 085 jdbcTestModule.verifyCommitted(); 086 } 087 088 /** 089 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyNotCommitted} 090 */ 091 protected void verifyNotCommitted() 092 { 093 jdbcTestModule.verifyNotCommitted(); 094 } 095 096 /** 097 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyRolledBack} 098 */ 099 protected void verifyRolledBack() 100 { 101 jdbcTestModule.verifyRolledBack(); 102 } 103 104 /** 105 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyNotRolledBack} 106 */ 107 protected void verifyNotRolledBack() 108 { 109 jdbcTestModule.verifyNotRolledBack(); 110 } 111 112 /** 113 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#setExactMatch(boolean)} 114 */ 115 protected void setExactMatch(boolean exactMatch) 116 { 117 jdbcTestModule.setExactMatch(exactMatch); 118 } 119 120 /** 121 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#setUseRegularExpressions(boolean)} 122 */ 123 protected void setUseRegularExpressions(boolean useRegularExpressions) 124 { 125 jdbcTestModule.setUseRegularExpressions(useRegularExpressions); 126 } 127 128 /** 129 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getStatementResultSetHandler} 130 */ 131 protected StatementResultSetHandler getStatementResultSetHandler() 132 { 133 return jdbcTestModule.getStatementResultSetHandler(); 134 } 135 136 /** 137 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getPreparedStatementResultSetHandler} 138 */ 139 protected PreparedStatementResultSetHandler getPreparedStatementResultSetHandler() 140 { 141 return jdbcTestModule.getPreparedStatementResultSetHandler(); 142 } 143 144 /** 145 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getCallableStatementResultSetHandler} 146 */ 147 protected CallableStatementResultSetHandler getCallableStatementResultSetHandler() 148 { 149 return jdbcTestModule.getCallableStatementResultSetHandler(); 150 } 151 152 /** 153 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getStatement(int)} 154 */ 155 protected MockStatement getStatement(int index) 156 { 157 return jdbcTestModule.getStatement(index); 158 } 159 160 /** 161 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getStatements} 162 */ 163 protected List getStatements() 164 { 165 return jdbcTestModule.getStatements(); 166 } 167 168 /** 169 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getExecutedSQLStatements} 170 */ 171 protected List getExecutedSQLStatements() 172 { 173 return jdbcTestModule.getExecutedSQLStatements(); 174 } 175 176 /** 177 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getExecutedSQLStatementParameter} 178 * @deprecated 179 */ 180 protected Map getExecutedSQLStatementParameter() 181 { 182 return jdbcTestModule.getExecutedSQLStatementParameter(); 183 } 184 185 /** 186 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getExecutedSQLStatementParameterMap} 187 */ 188 protected Map getExecutedSQLStatementParameterMap() 189 { 190 return jdbcTestModule.getExecutedSQLStatementParameterMap(); 191 } 192 193 /** 194 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getExecutedSQLStatementParameterSets(String)} 195 */ 196 protected ParameterSets getExecutedSQLStatementParameterSets(String sql) 197 { 198 return jdbcTestModule.getExecutedSQLStatementParameterSets(sql); 199 } 200 201 /** 202 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getReturnedResultSet(String)} 203 */ 204 protected MockResultSet getReturnedResultSet(String id) 205 { 206 return jdbcTestModule.getReturnedResultSet(id); 207 } 208 209 /** 210 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getReturnedResultSets(String)} 211 */ 212 protected List getReturnedResultSets(String id) 213 { 214 return jdbcTestModule.getReturnedResultSets(id); 215 } 216 217 /** 218 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getReturnedResultSets} 219 */ 220 protected List getReturnedResultSets() 221 { 222 return jdbcTestModule.getReturnedResultSets(); 223 } 224 225 /** 226 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getPreparedStatement(String)} 227 */ 228 protected MockPreparedStatement getPreparedStatement(String sql) 229 { 230 return jdbcTestModule.getPreparedStatement(sql); 231 } 232 233 /** 234 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getPreparedStatement(int)} 235 */ 236 protected MockPreparedStatement getPreparedStatement(int index) 237 { 238 return jdbcTestModule.getPreparedStatement(index); 239 } 240 241 /** 242 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getPreparedStatements(String)} 243 */ 244 protected List getPreparedStatements(String sql) 245 { 246 return jdbcTestModule.getPreparedStatements(sql); 247 } 248 249 /** 250 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getPreparedStatements} 251 */ 252 protected List getPreparedStatements() 253 { 254 return jdbcTestModule.getPreparedStatements(); 255 } 256 257 /** 258 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getCallableStatement(String)} 259 */ 260 protected MockCallableStatement getCallableStatement(String sql) 261 { 262 return jdbcTestModule.getCallableStatement(sql); 263 } 264 265 /** 266 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getCallableStatement(int)} 267 */ 268 protected MockCallableStatement getCallableStatement(int index) 269 { 270 return jdbcTestModule.getCallableStatement(index); 271 } 272 273 /** 274 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getCallableStatements(String)} 275 */ 276 protected List getCallableStatements(String sql) 277 { 278 return jdbcTestModule.getCallableStatements(sql); 279 } 280 281 /** 282 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getCallableStatements} 283 */ 284 protected List getCallableStatements() 285 { 286 return jdbcTestModule.getCallableStatements(); 287 } 288 289 /** 290 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getPreparedStatementParameter(String, int)} 291 */ 292 protected Object getPreparedStatementParameter(String sql, int indexOfParameter) 293 { 294 return jdbcTestModule.getPreparedStatementParameter(sql, indexOfParameter); 295 } 296 297 /** 298 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getPreparedStatementParameter(int, int)} 299 */ 300 protected Object getPreparedStatementParameter(int indexOfStatement, int indexOfParameter) 301 { 302 return jdbcTestModule.getPreparedStatementParameter(indexOfStatement, indexOfParameter); 303 } 304 305 /** 306 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getPreparedStatementParameter(PreparedStatement, int)} 307 */ 308 protected Object getPreparedStatementParameter(PreparedStatement statement, int indexOfParameter) 309 { 310 return jdbcTestModule.getPreparedStatementParameter(statement, indexOfParameter); 311 } 312 313 /** 314 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getCallableStatementParameter(String, String)} 315 */ 316 protected Object getCallableStatementParameter(String sql, String nameOfParameter) 317 { 318 return jdbcTestModule.getCallableStatementParameter(sql, nameOfParameter); 319 } 320 321 /** 322 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getCallableStatementParameter(int, String)} 323 */ 324 protected Object getCallableStatementParameter(int indexOfStatement, String nameOfParameter) 325 { 326 return jdbcTestModule.getCallableStatementParameter(indexOfStatement, nameOfParameter); 327 } 328 329 /** 330 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getCallableStatementParameter(CallableStatement, String)} 331 */ 332 protected Object getCallableStatementParameter(CallableStatement statement, String nameOfParameter) 333 { 334 return jdbcTestModule.getCallableStatementParameter(statement, nameOfParameter); 335 } 336 337 /** 338 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getCallableStatementParameter(String, int)} 339 */ 340 protected Object getCallableStatementParameter(String sql, int indexOfParameter) 341 { 342 return jdbcTestModule.getCallableStatementParameter(sql, indexOfParameter); 343 } 344 345 /** 346 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getCallableStatementParameter(CallableStatement, int)} 347 */ 348 protected Object getCallableStatementParameter(CallableStatement statement, int indexOfParameter) 349 { 350 return jdbcTestModule.getCallableStatementParameter(statement, indexOfParameter); 351 } 352 353 /** 354 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getCallableStatementParameter(int, int)} 355 */ 356 protected Object getCallableStatementParameter(int indexOfStatement, int indexOfParameter) 357 { 358 return jdbcTestModule.getCallableStatementParameter(indexOfStatement, indexOfParameter); 359 } 360 361 /** 362 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getSavepoints} 363 */ 364 protected List getSavepoints() 365 { 366 return jdbcTestModule.getSavepoints(); 367 } 368 369 /** 370 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getSavepoint(int)} 371 */ 372 protected MockSavepoint getSavepoint(int index) 373 { 374 return jdbcTestModule.getSavepoint(index); 375 } 376 377 /** 378 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#getSavepoint(String)} 379 */ 380 protected MockSavepoint getSavepoint(String name) 381 { 382 return jdbcTestModule.getSavepoint(name); 383 } 384 385 /** 386 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySQLStatementExecuted(String)} 387 */ 388 protected void verifySQLStatementExecuted(String sql) 389 { 390 jdbcTestModule.verifySQLStatementExecuted(sql); 391 } 392 393 /** 394 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySQLStatementNotExecuted(String)} 395 */ 396 protected void verifySQLStatementNotExecuted(String sql) 397 { 398 jdbcTestModule.verifySQLStatementNotExecuted(sql); 399 } 400 401 /** 402 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySQLStatementParameterNumber(String, int, int)} 403 */ 404 protected void verifySQLStatementParameterNumber(String sql, int indexOfParameterSet, int number) 405 { 406 jdbcTestModule.verifySQLStatementParameterNumber(sql, indexOfParameterSet, number); 407 } 408 409 /** 410 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySQLStatementParameter(String, int, String, Object)} 411 */ 412 protected void verifySQLStatementParameter(String sql, int indexOfParameterSet, String nameOfParameter, Object expectedParameter) 413 { 414 jdbcTestModule.verifySQLStatementParameter(sql, indexOfParameterSet, nameOfParameter, expectedParameter); 415 } 416 417 /** 418 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySQLStatementParameter(String, int, int, Object)} 419 */ 420 protected void verifySQLStatementParameter(String sql, int indexOfParameterSet, int indexOfParameter, Object expectedParameter) 421 { 422 jdbcTestModule.verifySQLStatementParameter(sql, indexOfParameterSet, indexOfParameter, expectedParameter); 423 } 424 425 /** 426 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySQLStatementParameter(String, int, Map)} 427 */ 428 protected void verifySQLStatementParameter(String sql, int indexOfParameterSet, Map parameterMap) 429 { 430 jdbcTestModule.verifySQLStatementParameter(sql, indexOfParameterSet, parameterMap); 431 } 432 433 /** 434 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyConnectionClosed} 435 */ 436 protected void verifyConnectionClosed() 437 { 438 jdbcTestModule.verifyConnectionClosed(); 439 } 440 441 /** 442 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyAllStatementsClosed} 443 */ 444 protected void verifyAllStatementsClosed() 445 { 446 jdbcTestModule.verifyAllStatementsClosed(); 447 } 448 449 /** 450 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetClosed(String)} 451 */ 452 protected void verifyResultSetClosed(String id) 453 { 454 jdbcTestModule.verifyResultSetClosed(id); 455 } 456 457 /** 458 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetRowInserted(MockResultSet, int)} 459 */ 460 protected void verifyResultSetRowInserted(MockResultSet resultSet, int number) 461 { 462 jdbcTestModule.verifyResultSetRowInserted(resultSet, number); 463 } 464 465 /** 466 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetRowInserted(String, int)} 467 */ 468 protected void verifyResultSetRowInserted(String id, int number) 469 { 470 jdbcTestModule.verifyResultSetRowInserted(id, number); 471 } 472 473 /** 474 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetRowNotInserted(MockResultSet, int)} 475 */ 476 protected void verifyResultSetRowNotInserted(MockResultSet resultSet, int number) 477 { 478 jdbcTestModule.verifyResultSetRowNotInserted(resultSet, number); 479 } 480 481 /** 482 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetRowNotInserted(String, int)} 483 */ 484 protected void verifyResultSetRowNotInserted(String id, int number) 485 { 486 jdbcTestModule.verifyResultSetRowNotInserted(id, number); 487 } 488 489 /** 490 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetRowUpdated(MockResultSet, int)} 491 */ 492 protected void verifyResultSetRowUpdated(MockResultSet resultSet, int number) 493 { 494 jdbcTestModule.verifyResultSetRowUpdated(resultSet, number); 495 } 496 497 /** 498 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetRowUpdated(String, int)} 499 */ 500 protected void verifyResultSetRowUpdated(String id, int number) 501 { 502 jdbcTestModule.verifyResultSetRowUpdated(id, number); 503 } 504 505 /** 506 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetRowNotUpdated(String, int)} 507 */ 508 protected void verifyResultSetRowNotUpdated(String id, int number) 509 { 510 jdbcTestModule.verifyResultSetRowNotUpdated(id, number); 511 } 512 513 /** 514 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetRowNotUpdated(MockResultSet, int)} 515 */ 516 protected void verifyResultSetRowNotUpdated(MockResultSet resultSet, int number) 517 { 518 jdbcTestModule.verifyResultSetRowNotUpdated(resultSet, number); 519 } 520 521 /** 522 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetRowDeleted(MockResultSet, int)} 523 */ 524 protected void verifyResultSetRowDeleted(MockResultSet resultSet, int number) 525 { 526 jdbcTestModule.verifyResultSetRowDeleted(resultSet, number); 527 } 528 529 /** 530 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetRowDeleted(String, int)} 531 */ 532 protected void verifyResultSetRowDeleted(String id, int number) 533 { 534 jdbcTestModule.verifyResultSetRowDeleted(id, number); 535 } 536 537 /** 538 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetRowNotDeleted(String, int)} 539 */ 540 protected void verifyResultSetRowNotDeleted(String id, int number) 541 { 542 jdbcTestModule.verifyResultSetRowNotDeleted(id, number); 543 } 544 545 /** 546 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetRowNotDeleted(MockResultSet, int)} 547 */ 548 protected void verifyResultSetRowNotDeleted(MockResultSet resultSet, int number) 549 { 550 jdbcTestModule.verifyResultSetRowNotDeleted(resultSet, number); 551 } 552 553 /** 554 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyAllResultSetsClosed} 555 */ 556 protected void verifyAllResultSetsClosed() 557 { 558 jdbcTestModule.verifyAllResultSetsClosed(); 559 } 560 561 /** 562 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyNumberCommits(int)} 563 */ 564 protected void verifyNumberCommits(int number) 565 { 566 jdbcTestModule.verifyNumberCommits(number); 567 } 568 569 /** 570 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyNumberRollbacks(int)} 571 */ 572 protected void verifyNumberRollbacks(int number) 573 { 574 jdbcTestModule.verifyNumberRollbacks(number); 575 } 576 577 /** 578 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyNumberStatements(int)} 579 */ 580 protected void verifyNumberStatements(int number) 581 { 582 jdbcTestModule.verifyNumberStatements(number); 583 } 584 585 /** 586 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyNumberPreparedStatements(int, String)} 587 */ 588 protected void verifyNumberPreparedStatements(int number, String sql) 589 { 590 jdbcTestModule.verifyNumberPreparedStatements(number, sql); 591 } 592 593 /** 594 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyNumberPreparedStatements(int)} 595 */ 596 protected void verifyNumberPreparedStatements(int number) 597 { 598 jdbcTestModule.verifyNumberPreparedStatements(number); 599 } 600 601 /** 602 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyNumberCallableStatements(int, String)} 603 */ 604 protected void verifyNumberCallableStatements(int number, String sql) 605 { 606 jdbcTestModule.verifyNumberCallableStatements(number, sql); 607 } 608 609 /** 610 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyNumberCallableStatements(int)} 611 */ 612 protected void verifyNumberCallableStatements(int number) 613 { 614 jdbcTestModule.verifyNumberCallableStatements(number); 615 } 616 617 /** 618 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyStatementClosed(int)} 619 */ 620 protected void verifyStatementClosed(int index) 621 { 622 jdbcTestModule.verifyStatementClosed(index); 623 } 624 625 /** 626 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyPreparedStatementClosed(String)} 627 */ 628 protected void verifyPreparedStatementClosed(String sql) 629 { 630 jdbcTestModule.verifyPreparedStatementClosed(sql); 631 } 632 633 /** 634 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyPreparedStatementClosed(int)} 635 */ 636 protected void verifyPreparedStatementClosed(int index) 637 { 638 jdbcTestModule.verifyPreparedStatementClosed(index); 639 } 640 641 /** 642 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementClosed(int)} 643 */ 644 protected void verifyCallableStatementClosed(int index) 645 { 646 jdbcTestModule.verifyCallableStatementClosed(index); 647 } 648 649 /** 650 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementClosed(String)} 651 */ 652 protected void verifyCallableStatementClosed(String sql) 653 { 654 jdbcTestModule.verifyCallableStatementClosed(sql); 655 } 656 657 /** 658 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetRow(MockResultSet, int, List)} 659 */ 660 protected void verifyResultSetRow(MockResultSet resultSet, int number, List rowData) 661 { 662 jdbcTestModule.verifyResultSetRow(resultSet, number, rowData); 663 } 664 665 /** 666 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetRow(MockResultSet, int, Object[])} 667 */ 668 protected void verifyResultSetRow(MockResultSet resultSet, int number, Object[] rowData) 669 { 670 jdbcTestModule.verifyResultSetRow(resultSet, number, rowData); 671 } 672 673 /** 674 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetRow(String, int, List)} 675 */ 676 protected void verifyResultSetRow(String id, int number, List rowData) 677 { 678 jdbcTestModule.verifyResultSetRow(id, number, rowData); 679 } 680 681 /** 682 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetRow(String, int, Object[])} 683 */ 684 protected void verifyResultSetRow(String id, int number, Object[] rowData) 685 { 686 jdbcTestModule.verifyResultSetRow(id, number, rowData); 687 } 688 689 /** 690 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetColumn(String, String, List)} 691 */ 692 protected void verifyResultSetColumn(String id, String name, List columnData) 693 { 694 jdbcTestModule.verifyResultSetColumn(id, name, columnData); 695 } 696 697 /** 698 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetColumn(MockResultSet, int, List)} 699 */ 700 protected void verifyResultSetColumn(MockResultSet resultSet, int number, List columnData) 701 { 702 jdbcTestModule.verifyResultSetColumn(resultSet, number, columnData); 703 } 704 705 /** 706 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetColumn(MockResultSet, int, Object[])} 707 */ 708 protected void verifyResultSetColumn(MockResultSet resultSet, int number, Object[] columnData) 709 { 710 jdbcTestModule.verifyResultSetColumn(resultSet, number, columnData); 711 } 712 713 /** 714 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetColumn(String, int, List)} 715 */ 716 protected void verifyResultSetColumn(String id, int number, List columnData) 717 { 718 jdbcTestModule.verifyResultSetColumn(id, number, columnData); 719 } 720 721 /** 722 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetColumn(String, int, Object[])} 723 */ 724 protected void verifyResultSetColumn(String id, int number, Object[] columnData) 725 { 726 jdbcTestModule.verifyResultSetColumn(id, number, columnData); 727 } 728 729 /** 730 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetColumn(MockResultSet, String, List)} 731 */ 732 protected void verifyResultSetColumn(MockResultSet resultSet, String name, List columnData) 733 { 734 jdbcTestModule.verifyResultSetColumn(resultSet, name, columnData); 735 } 736 737 /** 738 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetColumn(MockResultSet, String, Object[])} 739 */ 740 protected void verifyResultSetColumn(MockResultSet resultSet, String name, Object[] columnData) 741 { 742 jdbcTestModule.verifyResultSetColumn(resultSet, name, columnData); 743 } 744 745 /** 746 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetColumn(String, String, Object[])} 747 */ 748 protected void verifyResultSetColumn(String id, String name, Object[] columnData) 749 { 750 jdbcTestModule.verifyResultSetColumn(id, name, columnData); 751 } 752 753 /** 754 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetEquals(String, MockResultSet)} 755 */ 756 protected void verifyResultSetEquals(String id, MockResultSet target) 757 { 758 jdbcTestModule.verifyResultSetEquals(id, target); 759 } 760 761 /** 762 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyResultSetEquals(MockResultSet, MockResultSet)} 763 */ 764 protected void verifyResultSetEquals(MockResultSet source, MockResultSet target) 765 { 766 jdbcTestModule.verifyResultSetEquals(source, target); 767 } 768 769 /** 770 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyPreparedStatementPresent(String)} 771 */ 772 protected void verifyPreparedStatementPresent(String sql) 773 { 774 jdbcTestModule.verifyPreparedStatementPresent(sql); 775 } 776 777 /** 778 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyPreparedStatementNotPresent(String)} 779 */ 780 protected void verifyPreparedStatementNotPresent(String sql) 781 { 782 jdbcTestModule.verifyPreparedStatementNotPresent(sql); 783 } 784 785 /** 786 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementPresent(String)} 787 */ 788 protected void verifyCallableStatementPresent(String sql) 789 { 790 jdbcTestModule.verifyCallableStatementPresent(sql); 791 } 792 793 /** 794 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementNotPresent(String)} 795 */ 796 protected void verifyCallableStatementNotPresent(String sql) 797 { 798 jdbcTestModule.verifyCallableStatementNotPresent(sql); 799 } 800 801 /** 802 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyPreparedStatementParameterPresent(PreparedStatement, int)} 803 */ 804 protected void verifyPreparedStatementParameterPresent(PreparedStatement statement, int indexOfParameter) 805 { 806 jdbcTestModule.verifyPreparedStatementParameterPresent(statement, indexOfParameter); 807 } 808 809 /** 810 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyPreparedStatementParameterPresent(String, int)} 811 */ 812 protected void verifyPreparedStatementParameterPresent(String sql, int indexOfParameter) 813 { 814 jdbcTestModule.verifyPreparedStatementParameterPresent(sql, indexOfParameter); 815 } 816 817 /** 818 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyPreparedStatementParameterPresent(int, int)} 819 */ 820 protected void verifyPreparedStatementParameterPresent(int indexOfStatement, int indexOfParameter) 821 { 822 jdbcTestModule.verifyPreparedStatementParameterPresent(indexOfStatement, indexOfParameter); 823 } 824 825 /** 826 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyPreparedStatementParameterNotPresent(String, int)} 827 */ 828 protected void verifyPreparedStatementParameterNotPresent(String sql, int indexOfParameter) 829 { 830 jdbcTestModule.verifyPreparedStatementParameterNotPresent(sql, indexOfParameter); 831 } 832 833 /** 834 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyPreparedStatementParameterNotPresent(PreparedStatement, int)} 835 */ 836 protected void verifyPreparedStatementParameterNotPresent(PreparedStatement statement, int indexOfParameter) 837 { 838 jdbcTestModule.verifyPreparedStatementParameterNotPresent(statement, indexOfParameter); 839 } 840 841 /** 842 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyPreparedStatementParameterNotPresent(int, int)} 843 */ 844 protected void verifyPreparedStatementParameterNotPresent(int indexOfStatement, int indexOfParameter) 845 { 846 jdbcTestModule.verifyPreparedStatementParameterNotPresent(indexOfStatement, indexOfParameter); 847 } 848 849 /** 850 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameterPresent(int, String)} 851 */ 852 protected void verifyCallableStatementParameterPresent(int indexOfStatement, String nameOfParameter) 853 { 854 jdbcTestModule.verifyCallableStatementParameterPresent(indexOfStatement, nameOfParameter); 855 } 856 857 /** 858 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameterPresent(CallableStatement, int)} 859 */ 860 protected void verifyCallableStatementParameterPresent(CallableStatement statement, int indexOfParameter) 861 { 862 jdbcTestModule.verifyCallableStatementParameterPresent(statement, indexOfParameter); 863 } 864 865 /** 866 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameterPresent(String, int)} 867 */ 868 protected void verifyCallableStatementParameterPresent(String sql, int indexOfParameter) 869 { 870 jdbcTestModule.verifyCallableStatementParameterPresent(sql, indexOfParameter); 871 } 872 873 /** 874 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameterPresent(int, int)} 875 */ 876 protected void verifyCallableStatementParameterPresent(int indexOfStatement, int indexOfParameter) 877 { 878 jdbcTestModule.verifyCallableStatementParameterPresent(indexOfStatement, indexOfParameter); 879 } 880 881 /** 882 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameterPresent(String, String)} 883 */ 884 protected void verifyCallableStatementParameterPresent(String sql, String nameOfParameter) 885 { 886 jdbcTestModule.verifyCallableStatementParameterPresent(sql, nameOfParameter); 887 } 888 889 /** 890 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameterPresent(CallableStatement, String)} 891 */ 892 protected void verifyCallableStatementParameterPresent(CallableStatement statement, String nameOfParameter) 893 { 894 jdbcTestModule.verifyCallableStatementParameterPresent(statement, nameOfParameter); 895 } 896 897 /** 898 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameterNotPresent(CallableStatement, String)} 899 */ 900 protected void verifyCallableStatementParameterNotPresent(CallableStatement statement, String nameOfParameter) 901 { 902 jdbcTestModule.verifyCallableStatementParameterNotPresent(statement, nameOfParameter); 903 } 904 905 /** 906 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameterNotPresent(int, int)} 907 */ 908 protected void verifyCallableStatementParameterNotPresent(int indexOfStatement, int indexOfParameter) 909 { 910 jdbcTestModule.verifyCallableStatementParameterNotPresent(indexOfStatement, indexOfParameter); 911 } 912 913 /** 914 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameterNotPresent(CallableStatement, int)} 915 */ 916 protected void verifyCallableStatementParameterNotPresent(CallableStatement statement, int indexOfParameter) 917 { 918 jdbcTestModule.verifyCallableStatementParameterNotPresent(statement, indexOfParameter); 919 } 920 921 /** 922 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameterNotPresent(String, int)} 923 */ 924 protected void verifyCallableStatementParameterNotPresent(String sql, int indexOfParameter) 925 { 926 jdbcTestModule.verifyCallableStatementParameterNotPresent(sql, indexOfParameter); 927 } 928 929 /** 930 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameterNotPresent(int, String)} 931 */ 932 protected void verifyCallableStatementParameterNotPresent(int indexOfStatement, String nameOfParameter) 933 { 934 jdbcTestModule.verifyCallableStatementParameterNotPresent(indexOfStatement, nameOfParameter); 935 } 936 937 /** 938 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameterNotPresent(String, String)} 939 */ 940 protected void verifyCallableStatementParameterNotPresent(String sql, String nameOfParameter) 941 { 942 jdbcTestModule.verifyCallableStatementParameterNotPresent(sql, nameOfParameter); 943 } 944 945 /** 946 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyPreparedStatementParameter(PreparedStatement, int, Object)} 947 */ 948 protected void verifyPreparedStatementParameter(PreparedStatement statement, int indexOfParameter, Object object) 949 { 950 jdbcTestModule.verifyPreparedStatementParameter(statement, indexOfParameter, object); 951 } 952 953 /** 954 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyPreparedStatementParameter(String, int, Object)} 955 */ 956 protected void verifyPreparedStatementParameter(String sql, int indexOfParameter, Object object) 957 { 958 jdbcTestModule.verifyPreparedStatementParameter(sql, indexOfParameter, object); 959 } 960 961 /** 962 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyPreparedStatementParameter(int, int, Object)} 963 */ 964 protected void verifyPreparedStatementParameter(int indexOfStatement, int indexOfParameter, Object object) 965 { 966 jdbcTestModule.verifyPreparedStatementParameter(indexOfStatement, indexOfParameter, object); 967 } 968 969 /** 970 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameter(int, String, Object)} 971 */ 972 protected void verifyCallableStatementParameter(int indexOfStatement, String nameOfParameter, Object object) 973 { 974 jdbcTestModule.verifyCallableStatementParameter(indexOfStatement, nameOfParameter, object); 975 } 976 977 /** 978 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameter(CallableStatement, int, Object)} 979 */ 980 protected void verifyCallableStatementParameter(CallableStatement statement, int indexOfParameter, Object object) 981 { 982 jdbcTestModule.verifyCallableStatementParameter(statement, indexOfParameter, object); 983 } 984 985 /** 986 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameter(String, int, Object)} 987 */ 988 protected void verifyCallableStatementParameter(String sql, int indexOfParameter, Object object) 989 { 990 jdbcTestModule.verifyCallableStatementParameter(sql, indexOfParameter, object); 991 } 992 993 /** 994 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameter(int, int, Object)} 995 */ 996 protected void verifyCallableStatementParameter(int indexOfStatement, int indexOfParameter, Object object) 997 { 998 jdbcTestModule.verifyCallableStatementParameter(indexOfStatement, indexOfParameter, object); 999 } 1000 1001 /** 1002 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameter(CallableStatement, String, Object)} 1003 */ 1004 protected void verifyCallableStatementParameter(CallableStatement statement, String nameOfParameter, Object object) 1005 { 1006 jdbcTestModule.verifyCallableStatementParameter(statement, nameOfParameter, object); 1007 } 1008 1009 /** 1010 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementParameter(String, String, Object)} 1011 */ 1012 protected void verifyCallableStatementParameter(String sql, String nameOfParameter, Object object) 1013 { 1014 jdbcTestModule.verifyCallableStatementParameter(sql, nameOfParameter, object); 1015 } 1016 1017 /** 1018 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementOutParameterRegistered(CallableStatement, int)} 1019 */ 1020 protected void verifyCallableStatementOutParameterRegistered(CallableStatement statement, int indexOfParameter) 1021 { 1022 jdbcTestModule.verifyCallableStatementOutParameterRegistered(statement, indexOfParameter); 1023 } 1024 1025 /** 1026 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementOutParameterRegistered(String, int)} 1027 */ 1028 protected void verifyCallableStatementOutParameterRegistered(String sql, int indexOfParameter) 1029 { 1030 jdbcTestModule.verifyCallableStatementOutParameterRegistered(sql, indexOfParameter); 1031 } 1032 1033 /** 1034 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementOutParameterRegistered(int, int)} 1035 */ 1036 protected void verifyCallableStatementOutParameterRegistered(int indexOfStatement, int indexOfParameter) 1037 { 1038 jdbcTestModule.verifyCallableStatementOutParameterRegistered(indexOfStatement, indexOfParameter); 1039 } 1040 1041 /** 1042 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementOutParameterRegistered(CallableStatement, String)} 1043 */ 1044 protected void verifyCallableStatementOutParameterRegistered(CallableStatement statement, String nameOfParameter) 1045 { 1046 jdbcTestModule.verifyCallableStatementOutParameterRegistered(statement, nameOfParameter); 1047 } 1048 1049 /** 1050 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementOutParameterRegistered(String, String)} 1051 */ 1052 protected void verifyCallableStatementOutParameterRegistered(String sql, String nameOfParameter) 1053 { 1054 jdbcTestModule.verifyCallableStatementOutParameterRegistered(sql, nameOfParameter); 1055 } 1056 1057 /** 1058 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifyCallableStatementOutParameterRegistered(int, String)} 1059 */ 1060 protected void verifyCallableStatementOutParameterRegistered(int indexOfStatement, String nameOfParameter) 1061 { 1062 jdbcTestModule.verifyCallableStatementOutParameterRegistered(indexOfStatement, nameOfParameter); 1063 } 1064 1065 /** 1066 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySavepointPresent(String)} 1067 */ 1068 protected void verifySavepointPresent(String name) 1069 { 1070 jdbcTestModule.verifySavepointPresent(name); 1071 } 1072 1073 /** 1074 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySavepointPresent(int)} 1075 */ 1076 protected void verifySavepointPresent(int index) 1077 { 1078 jdbcTestModule.verifySavepointPresent(index); 1079 } 1080 1081 /** 1082 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySavepointReleased(int)} 1083 */ 1084 protected void verifySavepointReleased(int index) 1085 { 1086 jdbcTestModule.verifySavepointReleased(index); 1087 } 1088 1089 /** 1090 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySavepointReleased(String)} 1091 */ 1092 protected void verifySavepointReleased(String name) 1093 { 1094 jdbcTestModule.verifySavepointReleased(name); 1095 } 1096 1097 /** 1098 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySavepointNotReleased(int)} 1099 */ 1100 protected void verifySavepointNotReleased(int index) 1101 { 1102 jdbcTestModule.verifySavepointNotReleased(index); 1103 } 1104 1105 /** 1106 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySavepointNotReleased(String)} 1107 */ 1108 protected void verifySavepointNotReleased(String name) 1109 { 1110 jdbcTestModule.verifySavepointNotReleased(name); 1111 } 1112 1113 /** 1114 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySavepointRolledBack(int)} 1115 */ 1116 protected void verifySavepointRolledBack(int index) 1117 { 1118 jdbcTestModule.verifySavepointRolledBack(index); 1119 } 1120 1121 /** 1122 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySavepointRolledBack(String)} 1123 */ 1124 protected void verifySavepointRolledBack(String name) 1125 { 1126 jdbcTestModule.verifySavepointRolledBack(name); 1127 } 1128 1129 /** 1130 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySavepointNotRolledBack(String)} 1131 */ 1132 protected void verifySavepointNotRolledBack(String name) 1133 { 1134 jdbcTestModule.verifySavepointNotRolledBack(name); 1135 } 1136 1137 /** 1138 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySavepointNotRolledBack(int)} 1139 */ 1140 protected void verifySavepointNotRolledBack(int index) 1141 { 1142 jdbcTestModule.verifySavepointNotRolledBack(index); 1143 } 1144 1145 /** 1146 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySavepointRollbacked(String)} 1147 * @deprecated 1148 */ 1149 protected void verifySavepointRollbacked(String name) 1150 { 1151 jdbcTestModule.verifySavepointRollbacked(name); 1152 } 1153 1154 /** 1155 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySavepointRollbacked(int)} 1156 * @deprecated 1157 */ 1158 protected void verifySavepointRollbacked(int index) 1159 { 1160 jdbcTestModule.verifySavepointRollbacked(index); 1161 } 1162 1163 /** 1164 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySavepointNotRollbacked(String)} 1165 * @deprecated 1166 */ 1167 protected void verifySavepointNotRollbacked(String name) 1168 { 1169 jdbcTestModule.verifySavepointNotRollbacked(name); 1170 } 1171 1172 /** 1173 * Delegates to {@link com.mockrunner.jdbc.JDBCTestModule#verifySavepointNotRollbacked(int)} 1174 * @deprecated 1175 */ 1176 protected void verifySavepointNotRollbacked(int index) 1177 { 1178 jdbcTestModule.verifySavepointNotRollbacked(index); 1179 } 1180 }