1 package com.mockobjects.sql; 2 3 import java.sql.Connection ; 4 import java.sql.DatabaseMetaData ; 5 import java.sql.ResultSet ; 6 import java.sql.SQLException ; 7 import com.mockobjects.MockObject; 8 9 public class MockDatabaseMetaData extends MockObject 10 implements DatabaseMetaData { 11 12 private String myDriverName; 13 14 public void setupDriverName(String driverName) { 15 myDriverName = driverName; 16 } 17 18 public boolean supportsANSI92FullSQL() throws SQLException { 19 notImplemented(); 20 return false; 21 } 22 23 public boolean supportsANSI92EntryLevelSQL() throws SQLException { 24 notImplemented(); 25 return false; 26 } 27 28 public boolean supportsStatementPooling() throws SQLException { 29 notImplemented(); 30 return false; 31 } 32 33 public boolean supportsMixedCaseQuotedIdentifiers() throws SQLException { 34 notImplemented(); 35 return false; 36 } 37 38 public boolean supportsSubqueriesInComparisons() throws SQLException { 39 notImplemented(); 40 return false; 41 } 42 43 public boolean supportsMultipleOpenResults() throws SQLException { 44 notImplemented(); 45 return false; 46 } 47 48 public ResultSet getProcedures(String a0, String a1, String a2) 49 throws SQLException { 50 notImplemented(); 51 return null; 52 } 53 54 public String getSystemFunctions() throws SQLException { 55 notImplemented(); 56 return null; 57 } 58 59 public boolean supportsUnionAll() throws SQLException { 60 notImplemented(); 61 return false; 62 } 63 64 public int getDatabaseMinorVersion() throws SQLException { 65 notImplemented(); 66 return 0; 67 } 68 69 public boolean supportsResultSetConcurrency(int a0, int a1) 70 throws SQLException { 71 notImplemented(); 72 return false; 73 } 74 75 public ResultSet getCatalogs() throws SQLException { 76 notImplemented(); 77 return null; 78 } 79 80 public boolean usesLocalFilePerTable() throws SQLException { 81 notImplemented(); 82 return false; 83 } 84 85 public boolean supportsResultSetHoldability(int a0) throws SQLException { 86 notImplemented(); 87 return false; 88 } 89 90 public ResultSet getIndexInfo(String a0, String a1, String a2, boolean a3, 91 boolean a4) throws SQLException { 92 notImplemented(); 93 return null; 94 } 95 96 public boolean supportsExpressionsInOrderBy() throws SQLException { 97 notImplemented(); 98 return false; 99 } 100 101 public String getDatabaseProductName() throws SQLException { 102 notImplemented(); 103 return null; 104 } 105 106 public boolean supportsIntegrityEnhancementFacility() throws SQLException { 107 notImplemented(); 108 return false; 109 } 110 111 public int getMaxBinaryLiteralLength() throws SQLException { 112 notImplemented(); 113 return 0; 114 } 115 116 public boolean supportsLimitedOuterJoins() throws SQLException { 117 notImplemented(); 118 return false; 119 } 120 121 public boolean storesUpperCaseQuotedIdentifiers() throws SQLException { 122 notImplemented(); 123 return false; 124 } 125 126 public boolean supportsMultipleResultSets() throws SQLException { 127 notImplemented(); 128 return false; 129 } 130 131 public boolean supportsFullOuterJoins() throws SQLException { 132 notImplemented(); 133 return false; 134 } 135 136 public boolean ownDeletesAreVisible(int a0) throws SQLException { 137 notImplemented(); 138 return false; 139 } 140 141 public ResultSet getPrimaryKeys(String a0, String a1, String a2) 142 throws SQLException { 143 notImplemented(); 144 return null; 145 } 146 147 public int getMaxColumnsInIndex() throws SQLException { 148 notImplemented(); 149 return 0; 150 } 151 152 public ResultSet getExportedKeys(String a0, String a1, String a2) 153 throws SQLException { 154 notImplemented(); 155 return null; 156 } 157 158 public boolean locatorsUpdateCopy() throws SQLException { 159 notImplemented(); 160 return false; 161 } 162 163 public ResultSet getTables(String a0, String a1, String a2, String [] a3) 164 throws SQLException { 165 notImplemented(); 166 return null; 167 } 168 169 public int getMaxColumnsInTable() throws SQLException { 170 notImplemented(); 171 return 0; 172 } 173 174 public String getDriverVersion() throws SQLException { 175 notImplemented(); 176 return null; 177 } 178 179 public boolean supportsBatchUpdates() throws SQLException { 180 notImplemented(); 181 return false; 182 } 183 184 public int getMaxTablesInSelect() throws SQLException { 185 notImplemented(); 186 return 0; 187 } 188 189 public Connection getConnection() throws SQLException { 190 notImplemented(); 191 return null; 192 } 193 194 public boolean supportsNonNullableColumns() throws SQLException { 195 notImplemented(); 196 return false; 197 } 198 199 public int getMaxColumnsInOrderBy() throws SQLException { 200 notImplemented(); 201 return 0; 202 } 203 204 public boolean supportsOrderByUnrelated() throws SQLException { 205 notImplemented(); 206 return false; 207 } 208 209 public boolean supportsCatalogsInIndexDefinitions() throws SQLException { 210 notImplemented(); 211 return false; 212 } 213 214 public int getJDBCMajorVersion() throws SQLException { 215 notImplemented(); 216 return 0; 217 } 218 219 public String getExtraNameCharacters() throws SQLException { 220 notImplemented(); 221 return null; 222 } 223 224 public boolean nullsAreSortedLow() throws SQLException { 225 notImplemented(); 226 return false; 227 } 228 229 public ResultSet getAttributes(String a0, String a1, String a2, String a3) 230 throws SQLException { 231 notImplemented(); 232 return null; 233 } 234 235 public boolean updatesAreDetected(int a0) throws SQLException { 236 notImplemented(); 237 return false; 238 } 239 240 public boolean supportsDataManipulationTransactionsOnly() 241 throws SQLException { 242 notImplemented(); 243 return false; 244 } 245 246 public int getMaxConnections() throws SQLException { 247 notImplemented(); 248 return 0; 249 } 250 251 public boolean supportsOpenCursorsAcrossCommit() throws SQLException { 252 notImplemented(); 253 return false; 254 } 255 256 public ResultSet getUDTs(String a0, String a1, String a2, int[] a3) 257 throws SQLException { 258 notImplemented(); 259 return null; 260 } 261 262 public ResultSet getTableTypes() throws SQLException { 263 notImplemented(); 264 return null; 265 } 266 267 public int getResultSetHoldability() throws SQLException { 268 notImplemented(); 269 return 0; 270 } 271 272 public boolean insertsAreDetected(int a0) throws SQLException { 273 notImplemented(); 274 return false; 275 } 276 277 public ResultSet getSchemas() throws SQLException { 278 notImplemented(); 279 return null; 280 } 281 282 public int getMaxCatalogNameLength() throws SQLException { 283 notImplemented(); 284 return 0; 285 } 286 287 public int getDefaultTransactionIsolation() throws SQLException { 288 notImplemented(); 289 return 0; 290 } 291 292 public String getURL() throws SQLException { 293 notImplemented(); 294 return null; 295 } 296 297 public boolean usesLocalFiles() throws SQLException { 298 notImplemented(); 299 return false; 300 } 301 302 public boolean supportsExtendedSQLGrammar() throws SQLException { 303 notImplemented(); 304 return false; 305 } 306 307 public boolean supportsSchemasInProcedureCalls() throws SQLException { 308 notImplemented(); 309 return false; 310 } 311 312 public ResultSet getSuperTypes(String a0, String a1, String a2) 313 throws SQLException { 314 notImplemented(); 315 return null; 316 } 317 318 public int getMaxStatements() throws SQLException { 319 notImplemented(); 320 return 0; 321 } 322 323 public int getMaxCharLiteralLength() throws SQLException { 324 notImplemented(); 325 return 0; 326 } 327 328 public boolean supportsTransactionIsolationLevel(int a0) 329 throws SQLException { 330 notImplemented(); 331 return false; 332 } 333 334 public boolean supportsTableCorrelationNames() throws SQLException { 335 notImplemented(); 336 return false; 337 } 338 339 public String getSearchStringEscape() throws SQLException { 340 notImplemented(); 341 return null; 342 } 343 344 public boolean deletesAreDetected(int a0) throws SQLException { 345 notImplemented(); 346 return false; 347 } 348 349 public boolean supportsColumnAliasing() throws SQLException { 350 notImplemented(); 351 return false; 352 } 353 354 public boolean isReadOnly() throws SQLException { 355 notImplemented(); 356 return false; 357 } 358 359 public boolean supportsLikeEscapeClause() throws SQLException { 360 notImplemented(); 361 return false; 362 } 363 364 public boolean storesLowerCaseIdentifiers() throws SQLException { 365 notImplemented(); 366 return false; 367 } 368 369 public boolean storesMixedCaseQuotedIdentifiers() throws SQLException { 370 notImplemented(); 371 return false; 372 } 373 374 public boolean supportsMultipleTransactions() throws SQLException { 375 notImplemented(); 376 return false; 377 } 378 379 public String getProcedureTerm() throws SQLException { 380 notImplemented(); 381 return null; 382 } 383 384 public int getMaxStatementLength() throws SQLException { 385 notImplemented(); 386 return 0; 387 } 388 389 public boolean nullPlusNonNullIsNull() throws SQLException { 390 notImplemented(); 391 return false; 392 } 393 394 public boolean supportsGroupByBeyondSelect() throws SQLException { 395 notImplemented(); 396 return false; 397 } 398 399 public int getDriverMajorVersion() { 400 notImplemented(); 401 return 0; 402 } 403 404 public boolean supportsCoreSQLGrammar() throws SQLException { 405 notImplemented(); 406 return false; 407 } 408 409 public boolean supportsPositionedUpdate() throws SQLException { 410 notImplemented(); 411 return false; 412 } 413 414 public boolean supportsCatalogsInPrivilegeDefinitions() 415 throws SQLException { 416 notImplemented(); 417 return false; 418 } 419 420 public boolean supportsGetGeneratedKeys() throws SQLException { 421 notImplemented(); 422 return false; 423 } 424 425 public ResultSet getImportedKeys(String a0, String a1, String a2) 426 throws SQLException { 427 notImplemented(); 428 return null; 429 } 430 431 public String getIdentifierQuoteString() throws SQLException { 432 notImplemented(); 433 return null; 434 } 435 436 public ResultSet getSuperTables(String a0, String a1, String a2) 437 throws SQLException { 438 notImplemented(); 439 return null; 440 } 441 442 public boolean nullsAreSortedHigh() throws SQLException { 443 notImplemented(); 444 return false; 445 } 446 447 public String getNumericFunctions() throws SQLException { 448 notImplemented(); 449 return null; 450 } 451 452 public boolean supportsSchemasInIndexDefinitions() throws SQLException { 453 notImplemented(); 454 return false; 455 } 456 457 public boolean supportsGroupByUnrelated() throws SQLException { 458 notImplemented(); 459 return false; 460 } 461 462 public ResultSet getTypeInfo() throws SQLException { 463 notImplemented(); 464 return null; 465 } 466 467 public boolean supportsTransactions() throws SQLException { 468 notImplemented(); 469 return false; 470 } 471 472 public boolean supportsPositionedDelete() throws SQLException { 473 notImplemented(); 474 return false; 475 } 476 477 public int getMaxProcedureNameLength() throws SQLException { 478 notImplemented(); 479 return 0; 480 } 481 482 public boolean supportsOuterJoins() throws SQLException { 483 notImplemented(); 484 return false; 485 } 486 487 public boolean supportsOpenCursorsAcrossRollback() throws SQLException { 488 notImplemented(); 489 return false; 490 } 491 492 public boolean storesMixedCaseIdentifiers() throws SQLException { 493 notImplemented(); 494 return false; 495 } 496 497 public int getDatabaseMajorVersion() throws SQLException { 498 notImplemented(); 499 return 0; 500 } 501 502 public int getMaxColumnsInSelect() throws SQLException { 503 notImplemented(); 504 return 0; 505 } 506 507 public boolean dataDefinitionIgnoredInTransactions() throws SQLException { 508 notImplemented(); 509 return false; 510 } 511 512 public String getCatalogTerm() throws SQLException { 513 notImplemented(); 514 return null; 515 } 516 517 public int getMaxRowSize() throws SQLException { 518 notImplemented(); 519 return 0; 520 } 521 522 public String getUserName() throws SQLException { 523 notImplemented(); 524 return null; 525 } 526 527 public boolean allProceduresAreCallable() throws SQLException { 528 notImplemented(); 529 return false; 530 } 531 532 public boolean nullsAreSortedAtStart() throws SQLException { 533 notImplemented(); 534 return false; 535 } 536 537 public boolean storesUpperCaseIdentifiers() throws SQLException { 538 notImplemented(); 539 return false; 540 } 541 542 public boolean supportsCatalogsInDataManipulation() throws SQLException { 543 notImplemented(); 544 return false; 545 } 546 547 public ResultSet getBestRowIdentifier(String a0, String a1, String a2, 548 int a3, boolean a4) throws SQLException { 549 notImplemented(); 550 return null; 551 } 552 553 public boolean storesLowerCaseQuotedIdentifiers() throws SQLException { 554 notImplemented(); 555 return false; 556 } 557 558 public boolean nullsAreSortedAtEnd() throws SQLException { 559 notImplemented(); 560 return false; 561 } 562 563 public String getSQLKeywords() throws SQLException { 564 notImplemented(); 565 return null; 566 } 567 568 public ResultSet getCrossReference(String a0, String a1, String a2, 569 String a3, String a4, String a5) throws SQLException { 570 notImplemented(); 571 return null; 572 } 573 574 public boolean isCatalogAtStart() throws SQLException { 575 notImplemented(); 576 return false; 577 } 578 579 public boolean supportsNamedParameters() throws SQLException { 580 notImplemented(); 581 return false; 582 } 583 584 public boolean supportsSubqueriesInIns() throws SQLException { 585 notImplemented(); 586 return false; 587 } 588 589 public ResultSet getVersionColumns(String a0, String a1, String a2) 590 throws SQLException { 591 notImplemented(); 592 return null; 593 } 594 595 public boolean othersInsertsAreVisible(int a0) throws SQLException { 596 notImplemented(); 597 return false; 598 } 599 600 public boolean supportsANSI92IntermediateSQL() throws SQLException { 601 notImplemented(); 602 return false; 603 } 604 605 public boolean supportsCatalogsInTableDefinitions() throws SQLException { 606 notImplemented(); 607 return false; 608 } 609 610 public int getJDBCMinorVersion() throws SQLException { 611 notImplemented(); 612 return 0; 613 } 614 615 public String getStringFunctions() throws SQLException { 616 notImplemented(); 617 return null; 618 } 619 620 public boolean supportsDataDefinitionAndDataManipulationTransactions() 621 throws SQLException { 622 notImplemented(); 623 return false; 624 } 625 626 public ResultSet getColumnPrivileges(String a0, String a1, String a2, 627 String a3) throws SQLException { 628 notImplemented(); 629 return null; 630 } 631 632 public boolean dataDefinitionCausesTransactionCommit() 633 throws SQLException { 634 notImplemented(); 635 return false; 636 } 637 638 public boolean supportsSubqueriesInExists() throws SQLException { 639 notImplemented(); 640 return false; 641 } 642 643 public int getMaxUserNameLength() throws SQLException { 644 notImplemented(); 645 return 0; 646 } 647 648 public int getMaxIndexLength() throws SQLException { 649 notImplemented(); 650 return 0; 651 } 652 653 public String getDriverName() throws SQLException { 654 return myDriverName; 655 } 656 657 public boolean othersUpdatesAreVisible(int a0) throws SQLException { 658 notImplemented(); 659 return false; 660 } 661 662 public boolean supportsSavepoints() throws SQLException { 663 notImplemented(); 664 return false; 665 } 666 667 public boolean supportsMixedCaseIdentifiers() throws SQLException { 668 notImplemented(); 669 return false; 670 } 671 672 public String getCatalogSeparator() throws SQLException { 673 notImplemented(); 674 return null; 675 } 676 677 public boolean supportsSchemasInPrivilegeDefinitions() 678 throws SQLException { 679 notImplemented(); 680 return false; 681 } 682 683 public int getMaxColumnsInGroupBy() throws SQLException { 684 notImplemented(); 685 return 0; 686 } 687 688 public boolean supportsDifferentTableCorrelationNames() 689 throws SQLException { 690 notImplemented(); 691 return false; 692 } 693 694 public boolean supportsSubqueriesInQuantifieds() throws SQLException { 695 notImplemented(); 696 return false; 697 } 698 699 public boolean supportsResultSetType(int a0) throws SQLException { 700 notImplemented(); 701 return false; 702 } 703 704 public String getDatabaseProductVersion() throws SQLException { 705 notImplemented(); 706 return null; 707 } 708 709 public int getSQLStateType() throws SQLException { 710 notImplemented(); 711 return 0; 712 } 713 714 public boolean supportsSelectForUpdate() throws SQLException { 715 notImplemented(); 716 return false; 717 } 718 719 public int getMaxTableNameLength() throws SQLException { 720 notImplemented(); 721 return 0; 722 } 723 724 public boolean supportsUnion() throws SQLException { 725 notImplemented(); 726 return false; 727 } 728 729 public boolean supportsOpenStatementsAcrossCommit() throws SQLException { 730 notImplemented(); 731 return false; 732 } 733 734 public ResultSet getColumns(String a0, String a1, String a2, String a3) 735 throws SQLException { 736 notImplemented(); 737 return null; 738 } 739 740 public boolean supportsAlterTableWithDropColumn() throws SQLException { 741 notImplemented(); 742 return false; 743 } 744 745 public boolean supportsStoredProcedures() throws SQLException { 746 notImplemented(); 747 return false; 748 } 749 750 public boolean othersDeletesAreVisible(int a0) throws SQLException { 751 notImplemented(); 752 return false; 753 } 754 755 public String getSchemaTerm() throws SQLException { 756 notImplemented(); 757 return null; 758 } 759 760 public int getDriverMinorVersion() { 761 notImplemented(); 762 return 0; 763 } 764 765 public int getMaxSchemaNameLength() throws SQLException { 766 notImplemented(); 767 return 0; 768 } 769 770 public boolean doesMaxRowSizeIncludeBlobs() throws SQLException { 771 notImplemented(); 772 return false; 773 } 774 775 public ResultSet getTablePrivileges(String a0, String a1, String a2) 776 throws SQLException { 777 notImplemented(); 778 return null; 779 } 780 781 public boolean supportsSchemasInDataManipulation() throws SQLException { 782 notImplemented(); 783 return false; 784 } 785 786 public int getMaxCursorNameLength() throws SQLException { 787 notImplemented(); 788 return 0; 789 } 790 791 public boolean supportsAlterTableWithAddColumn() throws SQLException { 792 notImplemented(); 793 return false; 794 } 795 796 public boolean supportsOpenStatementsAcrossRollback() throws SQLException { 797 notImplemented(); 798 return false; 799 } 800 801 public int getMaxColumnNameLength() throws SQLException { 802 notImplemented(); 803 return 0; 804 } 805 806 public boolean ownInsertsAreVisible(int a0) throws SQLException { 807 notImplemented(); 808 return false; 809 } 810 811 public boolean supportsGroupBy() throws SQLException { 812 notImplemented(); 813 return false; 814 } 815 816 public boolean supportsConvert(int a0, int a1) throws SQLException { 817 notImplemented(); 818 return false; 819 } 820 821 public boolean supportsConvert() throws SQLException { 822 notImplemented(); 823 return false; 824 } 825 826 public boolean supportsCorrelatedSubqueries() throws SQLException { 827 notImplemented(); 828 return false; 829 } 830 831 public String getTimeDateFunctions() throws SQLException { 832 notImplemented(); 833 return null; 834 } 835 836 public boolean supportsSchemasInTableDefinitions() throws SQLException { 837 notImplemented(); 838 return false; 839 } 840 841 public boolean supportsCatalogsInProcedureCalls() throws SQLException { 842 notImplemented(); 843 return false; 844 } 845 846 public boolean allTablesAreSelectable() throws SQLException { 847 notImplemented(); 848 return false; 849 } 850 851 public boolean supportsMinimumSQLGrammar() throws SQLException { 852 notImplemented(); 853 return false; 854 } 855 856 public boolean ownUpdatesAreVisible(int a0) throws SQLException { 857 notImplemented(); 858 return false; 859 } 860 861 public ResultSet getProcedureColumns(String a0, String a1, String a2, 862 String a3) throws SQLException { 863 notImplemented(); 864 return null; 865 } 866 867 } 868 | Popular Tags |