| 1 2 9 10 package org.objectweb.rmijdbc; 11 12 import java.sql.*; 13 import java.rmi.RemoteException ; 14 15 35 public class RJDatabaseMetaData 36 implements java.sql.DatabaseMetaData , java.io.Serializable { 37 38 RJDatabaseMetaDataInterface rmiMetadata_; 39 Connection connection_; 40 41 public RJDatabaseMetaData(RJDatabaseMetaDataInterface d, Connection c) { 42 rmiMetadata_ = d; 43 connection_ = c; 44 } 45 46 49 55 public boolean allProceduresAreCallable() throws SQLException { 56 try { 57 return rmiMetadata_.allProceduresAreCallable(); 58 } catch(RemoteException e) { 59 throw new java.sql.SQLException (e.getMessage()); 60 } 61 } 62 63 69 public boolean allTablesAreSelectable() throws SQLException { 70 try { 71 return rmiMetadata_.allTablesAreSelectable(); 72 } catch(RemoteException e) { 73 throw new java.sql.SQLException (e.getMessage()); 74 } 75 } 76 77 82 public String getURL() throws SQLException { 83 try { 84 return rmiMetadata_.getURL(); 85 } catch(RemoteException e) { 86 throw new java.sql.SQLException (e.getMessage()); 87 } 88 } 89 90 95 public String getUserName() throws SQLException { 96 try { 97 return rmiMetadata_.getUserName(); 98 } catch(RemoteException e) { 99 throw new java.sql.SQLException (e.getMessage()); 100 } 101 } 102 103 108 public boolean isReadOnly() throws SQLException { 109 try { 110 return rmiMetadata_.isReadOnly(); 111 } catch(RemoteException e) { 112 throw new java.sql.SQLException (e.getMessage()); 113 } 114 } 115 116 121 public boolean nullsAreSortedHigh() throws SQLException { 122 try { 123 return rmiMetadata_.nullsAreSortedHigh(); 124 } catch(RemoteException e) { 125 throw new java.sql.SQLException (e.getMessage()); 126 } 127 } 128 129 134 public boolean nullsAreSortedLow() throws SQLException { 135 try { 136 return rmiMetadata_.nullsAreSortedLow(); 137 } catch(RemoteException e) { 138 throw new java.sql.SQLException (e.getMessage()); 139 } 140 } 141 142 147 public boolean nullsAreSortedAtStart() throws SQLException { 148 try { 149 return rmiMetadata_.nullsAreSortedAtStart(); 150 } catch(RemoteException e) { 151 throw new java.sql.SQLException (e.getMessage()); 152 } 153 } 154 155 160 public boolean nullsAreSortedAtEnd() throws SQLException { 161 try { 162 return rmiMetadata_.nullsAreSortedAtEnd(); 163 } catch(RemoteException e) { 164 throw new java.sql.SQLException (e.getMessage()); 165 } 166 } 167 168 173 public String getDatabaseProductName() throws SQLException { 174 try { 175 return rmiMetadata_.getDatabaseProductName(); 176 } catch(RemoteException e) { 177 throw new java.sql.SQLException (e.getMessage()); 178 } 179 } 180 181 186 public String getDatabaseProductVersion() throws SQLException { 187 try { 188 return rmiMetadata_.getDatabaseProductVersion(); 189 } catch(RemoteException e) { 190 throw new java.sql.SQLException (e.getMessage()); 191 } 192 } 193 194 199 public String getDriverName() throws SQLException { 200 try { 201 return rmiMetadata_.getDriverName(); 202 } catch(RemoteException e) { 203 throw new java.sql.SQLException (e.getMessage()); 204 } 205 } 206 207 212 public String getDriverVersion() throws SQLException { 213 try { 214 return rmiMetadata_.getDriverVersion(); 215 } catch(RemoteException e) { 216 throw new java.sql.SQLException (e.getMessage()); 217 } 218 } 219 220 225 public int getDriverMajorVersion() { 226 try { 227 return rmiMetadata_.getDriverMajorVersion(); 228 } catch(Exception e) { 229 return 0; 230 } 231 } 232 233 238 public int getDriverMinorVersion() { 239 try { 240 return rmiMetadata_.getDriverMinorVersion(); 241 } catch(Exception e) { 242 return 0; 243 } 244 } 245 246 251 public boolean usesLocalFiles() throws SQLException { 252 try { 253 return rmiMetadata_.usesLocalFiles(); 254 } catch(RemoteException e) { 255 throw new java.sql.SQLException (e.getMessage()); 256 } 257 } 258 259 264 public boolean usesLocalFilePerTable() throws SQLException { 265 try { 266 return rmiMetadata_.usesLocalFilePerTable(); 267 } catch(RemoteException e) { 268 throw new java.sql.SQLException (e.getMessage()); 269 } 270 } 271 272 280 public boolean supportsMixedCaseIdentifiers() throws SQLException { 281 try { 282 return rmiMetadata_.supportsMixedCaseIdentifiers(); 283 } catch(RemoteException e) { 284 throw new java.sql.SQLException (e.getMessage()); 285 } 286 } 287 288 294 public boolean storesUpperCaseIdentifiers() throws SQLException { 295 try { 296 return rmiMetadata_.storesUpperCaseIdentifiers(); 297 } catch(RemoteException e) { 298 throw new java.sql.SQLException (e.getMessage()); 299 } 300 } 301 302 308 public boolean storesLowerCaseIdentifiers() throws SQLException { 309 try { 310 return rmiMetadata_.storesLowerCaseIdentifiers(); 311 } catch(RemoteException e) { 312 throw new java.sql.SQLException (e.getMessage()); 313 } 314 } 315 316 322 public boolean storesMixedCaseIdentifiers() throws SQLException { 323 try { 324 return rmiMetadata_.storesMixedCaseIdentifiers(); 325 } catch(RemoteException e) { 326 throw new java.sql.SQLException (e.getMessage()); 327 } 328 } 329 330 338 public boolean supportsMixedCaseQuotedIdentifiers() throws SQLException { 339 try { 340 return rmiMetadata_.supportsMixedCaseQuotedIdentifiers(); 341 } catch(RemoteException e) { 342 throw new java.sql.SQLException (e.getMessage()); 343 } 344 } 345 346 352 public boolean storesUpperCaseQuotedIdentifiers() throws SQLException { 353 try { 354 return rmiMetadata_.storesUpperCaseQuotedIdentifiers(); 355 } catch(RemoteException e) { 356 throw new java.sql.SQLException (e.getMessage()); 357 } 358 } 359 360 366 public boolean storesLowerCaseQuotedIdentifiers() throws SQLException { 367 try { 368 return rmiMetadata_.storesLowerCaseQuotedIdentifiers(); 369 } catch(RemoteException e) { 370 throw new java.sql.SQLException (e.getMessage()); 371 } 372 } 373 374 380 public boolean storesMixedCaseQuotedIdentifiers() throws SQLException { 381 try { 382 return rmiMetadata_.storesMixedCaseQuotedIdentifiers(); 383 } catch(RemoteException e) { 384 throw new java.sql.SQLException (e.getMessage()); 385 } 386 } 387 388 396 public String getIdentifierQuoteString() throws SQLException { 397 try { 398 return rmiMetadata_.getIdentifierQuoteString(); 399 } catch(RemoteException e) { 400 throw new java.sql.SQLException (e.getMessage()); 401 } 402 } 403 404 410 public String getSQLKeywords() throws SQLException { 411 try { 412 return rmiMetadata_.getSQLKeywords(); 413 } catch(RemoteException e) { 414 throw new java.sql.SQLException (e.getMessage()); 415 } 416 } 417 418 423 public String getNumericFunctions() throws SQLException { 424 try { 425 return rmiMetadata_.getNumericFunctions(); 426 } catch(RemoteException e) { 427 throw new java.sql.SQLException (e.getMessage()); 428 } 429 } 430 431 436 public String getStringFunctions() throws SQLException { 437 try { 438 return rmiMetadata_.getStringFunctions(); 439 } catch(RemoteException e) { 440 throw new java.sql.SQLException (e.getMessage()); 441 } 442 } 443 444 449 public String getSystemFunctions() throws SQLException { 450 try { 451 return rmiMetadata_.getSystemFunctions(); 452 } catch(RemoteException e) { 453 throw new java.sql.SQLException (e.getMessage()); 454 } 455 } 456 457 462 public String getTimeDateFunctions() throws SQLException { 463 try { 464 return rmiMetadata_.getTimeDateFunctions(); 465 } catch(RemoteException e) { 466 throw new java.sql.SQLException (e.getMessage()); 467 } 468 } 469 470 479 public String getSearchStringEscape() throws SQLException { 480 try { 481 return rmiMetadata_.getSearchStringEscape(); 482 } catch(RemoteException e) { 483 throw new java.sql.SQLException (e.getMessage()); 484 } 485 } 486 487 493 public String getExtraNameCharacters() throws SQLException { 494 try { 495 return rmiMetadata_.getExtraNameCharacters(); 496 } catch(RemoteException e) { 497 throw new java.sql.SQLException (e.getMessage()); 498 } 499 } 500 501 504 509 public boolean supportsAlterTableWithAddColumn() throws SQLException { 510 try { 511 return rmiMetadata_.supportsAlterTableWithAddColumn(); 512 } catch(RemoteException e) { 513 throw new java.sql.SQLException (e.getMessage()); 514 } 515 } 516 517 522 public boolean supportsAlterTableWithDropColumn() throws SQLException { 523 try { 524 return rmiMetadata_.supportsAlterTableWithDropColumn(); 525 } catch(RemoteException e) { 526 throw new java.sql.SQLException (e.getMessage()); 527 } 528 } 529 530 541 public boolean supportsColumnAliasing() throws SQLException { 542 try { 543 return rmiMetadata_.supportsColumnAliasing(); 544 } catch(RemoteException e) { 545 throw new java.sql.SQLException (e.getMessage()); 546 } 547 } 548 549 556 public boolean nullPlusNonNullIsNull() throws SQLException { 557 try { 558 return rmiMetadata_.nullPlusNonNullIsNull(); 559 } catch(RemoteException e) { 560 throw new java.sql.SQLException (e.getMessage()); 561 } 562 } 563 564 569 public boolean supportsConvert() throws SQLException { 570 try { 571 return rmiMetadata_.supportsConvert(); 572 } catch(RemoteException e) { 573 throw new java.sql.SQLException (e.getMessage()); 574 } 575 } 576 577 585 public boolean supportsConvert(int fromType, int toType) throws SQLException { 586 try { 587 return rmiMetadata_.supportsConvert(); 588 } catch(RemoteException e) { 589 throw new java.sql.SQLException (e.getMessage()); 590 } 591 } 592 593 600 public boolean supportsTableCorrelationNames() throws SQLException { 601 try { 602 return rmiMetadata_.supportsTableCorrelationNames(); 603 } catch(RemoteException e) { 604 throw new java.sql.SQLException (e.getMessage()); 605 } 606 } 607 608 614 public boolean supportsDifferentTableCorrelationNames() throws SQLException { 615 try { 616 return rmiMetadata_.supportsDifferentTableCorrelationNames(); 617 } catch(RemoteException e) { 618 throw new java.sql.SQLException (e.getMessage()); 619 } 620 } 621 622 627 public boolean supportsExpressionsInOrderBy() throws SQLException { 628 try { 629 return rmiMetadata_.supportsExpressionsInOrderBy(); 630 } catch(RemoteException e) { 631 throw new java.sql.SQLException (e.getMessage()); 632 } 633 } 634 635 640 public boolean supportsOrderByUnrelated() throws SQLException { 641 try { 642 return rmiMetadata_.supportsOrderByUnrelated(); 643 } catch(RemoteException e) { 644 throw new java.sql.SQLException (e.getMessage()); 645 } 646 } 647 648 653 public boolean supportsGroupBy() throws SQLException { 654 try { 655 return rmiMetadata_.supportsGroupBy(); 656 } catch(RemoteException e) { 657 throw new java.sql.SQLException (e.getMessage()); 658 } 659 } 660 661 666 public boolean supportsGroupByUnrelated() throws SQLException { 667 try { 668 return rmiMetadata_.supportsGroupByUnrelated(); 669 } catch(RemoteException e) { 670 throw new java.sql.SQLException (e.getMessage()); 671 } 672 } 673 674 680 public boolean supportsGroupByBeyondSelect() throws SQLException { 681 try { 682 return rmiMetadata_.supportsGroupByBeyondSelect(); 683 } catch(RemoteException e) { 684 throw new java.sql.SQLException (e.getMessage()); 685 } 686 } 687 688 695 public boolean supportsLikeEscapeClause() throws SQLException { 696 try { 697 return rmiMetadata_.supportsLikeEscapeClause(); 698 } catch(RemoteException e) { 699 throw new java.sql.SQLException (e.getMessage()); 700 } 701 } 702 703 708 public boolean supportsMultipleResultSets() throws SQLException { 709 try { 710 return rmiMetadata_.supportsMultipleResultSets(); 711 } catch(RemoteException e) { 712 throw new java.sql.SQLException (e.getMessage()); 713 } 714 } 715 716 722 public boolean supportsMultipleTransactions() throws SQLException { 723 try { 724 return rmiMetadata_.supportsMultipleTransactions(); 725 } catch(RemoteException e) { 726 throw new java.sql.SQLException (e.getMessage()); 727 } 728 } 729 730 737 public boolean supportsNonNullableColumns() throws SQLException { 738 try { 739 return rmiMetadata_.supportsNonNullableColumns(); 740 } catch(RemoteException e) { 741 throw new java.sql.SQLException (e.getMessage()); 742 } 743 } 744 745 752 public boolean supportsMinimumSQLGrammar() throws SQLException { 753 try { 754 return rmiMetadata_.supportsMinimumSQLGrammar(); 755 } catch(RemoteException e) { 756 throw new java.sql.SQLException (e.getMessage()); 757 } 758 } 759 760 765 public boolean supportsCoreSQLGrammar() throws SQLException { 766 try { 767 return rmiMetadata_.supportsCoreSQLGrammar(); 768 } catch(RemoteException e) { 769 throw new java.sql.SQLException (e.getMessage()); 770 } 771 } 772 773 778 public boolean supportsExtendedSQLGrammar() throws SQLException { 779 try { 780 return rmiMetadata_.supportsExtendedSQLGrammar(); 781 } catch(RemoteException e) { 782 throw new java.sql.SQLException (e.getMessage()); 783 } 784 } 785 786 793 public boolean supportsANSI92EntryLevelSQL() throws SQLException { 794 try { 795 return rmiMetadata_.supportsANSI92EntryLevelSQL(); 796 } catch(RemoteException e) { 797 throw new java.sql.SQLException (e.getMessage()); 798 } 799 } 800 801 806 public boolean supportsANSI92IntermediateSQL() throws SQLException { 807 try { 808 return rmiMetadata_.supportsANSI92IntermediateSQL(); 809 } catch(RemoteException e) { 810 throw new java.sql.SQLException (e.getMessage()); 811 } 812 } 813 814 819 public boolean supportsANSI92FullSQL() throws SQLException { 820 try { 821 return rmiMetadata_.supportsANSI92FullSQL(); 822 } catch(RemoteException e) { 823 throw new java.sql.SQLException (e.getMessage()); 824 } 825 } 826 827 832 public boolean supportsIntegrityEnhancementFacility() throws SQLException { 833 try { 834 return rmiMetadata_.supportsIntegrityEnhancementFacility(); 835 } catch(RemoteException e) { 836 throw new java.sql.SQLException (e.getMessage()); 837 } 838 } 839 840 845 public boolean supportsOuterJoins() throws SQLException { 846 try { 847 return rmiMetadata_.supportsOuterJoins(); 848 } catch(RemoteException e) { 849 throw new java.sql.SQLException (e.getMessage()); 850 } 851 } 852 853 858 public boolean supportsFullOuterJoins() throws SQLException { 859 try { 860 return rmiMetadata_.supportsFullOuterJoins(); 861 } catch(RemoteException e) { 862 throw new java.sql.SQLException (e.getMessage()); 863 } 864 } 865 866 872 public boolean supportsLimitedOuterJoins() throws SQLException { 873 try { 874 return rmiMetadata_.supportsLimitedOuterJoins(); 875 } catch(RemoteException e) { 876 throw new java.sql.SQLException (e.getMessage()); 877 } 878 } 879 880 885 public String getSchemaTerm() throws SQLException { 886 try { 887 return rmiMetadata_.getSchemaTerm(); 888 } catch(RemoteException e) { 889 throw new java.sql.SQLException (e.getMessage()); 890 } 891 } 892 893 898 public String getProcedureTerm() throws SQLException { 899 try { 900 return rmiMetadata_.getProcedureTerm(); 901 } catch(RemoteException e) { 902 throw new java.sql.SQLException (e.getMessage()); 903 } 904 } 905 906 911 public String getCatalogTerm() throws SQLException { 912 try { 913 return rmiMetadata_.getCatalogTerm(); 914 } catch(RemoteException e) { 915 throw new java.sql.SQLException (e.getMessage()); 916 } 917 } 918 919 925 public boolean isCatalogAtStart() throws SQLException { 926 try { 927 return rmiMetadata_.isCatalogAtStart(); 928 } catch(RemoteException e) { 929 throw new java.sql.SQLException (e.getMessage()); 930 } 931 } 932 933 938 public String getCatalogSeparator() throws SQLException { 939 try { 940 return rmiMetadata_.getCatalogSeparator(); 941 } catch(RemoteException e) { 942 throw new java.sql.SQLException (e.getMessage()); 943 } 944 } 945 946 951 public boolean supportsSchemasInDataManipulation() throws SQLException { 952 try { 953 return rmiMetadata_.supportsSchemasInDataManipulation(); 954 } catch(RemoteException e) { 955 throw new java.sql.SQLException (e.getMessage()); 956 } 957 } 958 959 964 public boolean supportsSchemasInProcedureCalls() throws SQLException { 965 try { 966 return rmiMetadata_.supportsSchemasInProcedureCalls();
|