| 1 2 11 12 package org.objectweb.rmijdbc; 13 14 import java.sql.*; 15 16 import java.rmi.*; 17 import java.rmi.server.UnicastRemoteObject ; 18 import java.rmi.server.Unreferenced ; 19 20 40 public class RJDatabaseMetaDataServer 41 extends UnicastRemoteObject  42 implements RJDatabaseMetaDataInterface, Unreferenced { 43 44 java.sql.DatabaseMetaData jdbcMetadata_; 45 46 public RJDatabaseMetaDataServer(java.sql.DatabaseMetaData d) 47 throws RemoteException, SQLException { 48 super(RJJdbcServer.rmiJdbcListenerPort, RJJdbcServer.rmiClientSocketFactory, RJJdbcServer.rmiServerSocketFactory); 49 jdbcMetadata_ = d; 50 } 51 52 public void unreferenced() { Runtime.getRuntime().gc(); } 53 54 57 63 public boolean allProceduresAreCallable() 64 throws RemoteException, SQLException { 65 return jdbcMetadata_.allProceduresAreCallable(); 66 } 67 68 74 public boolean allTablesAreSelectable() throws RemoteException, SQLException { 75 return jdbcMetadata_.allTablesAreSelectable(); 76 } 77 78 83 public String getURL() throws RemoteException, SQLException { 84 return jdbcMetadata_.getURL(); 85 } 86 87 92 public String getUserName() throws RemoteException, SQLException { 93 return jdbcMetadata_.getUserName(); 94 } 95 96 101 public boolean isReadOnly() throws RemoteException, SQLException { 102 return jdbcMetadata_.isReadOnly(); 103 } 104 105 110 public boolean nullsAreSortedHigh() throws RemoteException, SQLException { 111 return jdbcMetadata_.nullsAreSortedHigh(); 112 } 113 114 119 public boolean nullsAreSortedLow() throws RemoteException, SQLException { 120 return jdbcMetadata_.nullsAreSortedLow(); 121 } 122 123 128 public boolean nullsAreSortedAtStart() throws RemoteException, SQLException { 129 return jdbcMetadata_.nullsAreSortedAtStart(); 130 } 131 132 137 public boolean nullsAreSortedAtEnd() throws RemoteException, SQLException { 138 return jdbcMetadata_.nullsAreSortedAtEnd(); 139 } 140 141 146 public String getDatabaseProductName() throws RemoteException, SQLException { 147 return jdbcMetadata_.getDatabaseProductName(); 148 } 149 150 155 public String getDatabaseProductVersion() throws RemoteException, SQLException { 156 return jdbcMetadata_.getDatabaseProductVersion(); 157 } 158 159 164 public String getDriverName() throws RemoteException, SQLException { 165 return "RmiJdbc!" + jdbcMetadata_.getDriverName(); 166 } 167 168 173 public String getDriverVersion() throws RemoteException, SQLException { 174 return jdbcMetadata_.getDriverVersion(); 175 } 176 177 182 public int getDriverMajorVersion() { 183 return jdbcMetadata_.getDriverMajorVersion(); 184 } 185 186 191 public int getDriverMinorVersion() { 192 return jdbcMetadata_.getDriverMinorVersion(); 193 } 194 195 200 public boolean usesLocalFiles() throws RemoteException, SQLException { 201 return jdbcMetadata_.usesLocalFiles(); 202 } 203 204 209 public boolean usesLocalFilePerTable() throws RemoteException, SQLException { 210 return jdbcMetadata_.usesLocalFilePerTable(); 211 } 212 213 221 public boolean supportsMixedCaseIdentifiers() 222 throws RemoteException, SQLException { 223 return jdbcMetadata_.supportsMixedCaseIdentifiers(); 224 } 225 226 232 public boolean storesUpperCaseIdentifiers() throws RemoteException, SQLException { 233 return jdbcMetadata_.storesUpperCaseIdentifiers(); 234 } 235 236 242 public boolean storesLowerCaseIdentifiers() throws RemoteException, SQLException { 243 return jdbcMetadata_.storesLowerCaseIdentifiers(); 244 } 245 246 252 public boolean storesMixedCaseIdentifiers() throws RemoteException, SQLException { 253 return jdbcMetadata_.storesMixedCaseIdentifiers(); 254 } 255 256 264 public boolean supportsMixedCaseQuotedIdentifiers() 265 throws RemoteException, SQLException { 266 return jdbcMetadata_.supportsMixedCaseQuotedIdentifiers(); 267 } 268 269 275 public boolean storesUpperCaseQuotedIdentifiers() 276 throws RemoteException, SQLException { 277 return jdbcMetadata_.storesUpperCaseQuotedIdentifiers(); 278 } 279 280 286 public boolean storesLowerCaseQuotedIdentifiers() 287 throws RemoteException, SQLException { 288 return jdbcMetadata_.storesLowerCaseQuotedIdentifiers(); 289 } 290 291 297 public boolean storesMixedCaseQuotedIdentifiers() 298 throws RemoteException, SQLException { 299 return jdbcMetadata_.storesMixedCaseQuotedIdentifiers(); 300 } 301 302 310 public String getIdentifierQuoteString() throws RemoteException, SQLException { 311 return jdbcMetadata_.getIdentifierQuoteString(); 312 } 313 314 320 public String getSQLKeywords() throws RemoteException, SQLException { 321 return jdbcMetadata_.getSQLKeywords(); 322 } 323 324 329 public String getNumericFunctions() throws RemoteException, SQLException { 330 return jdbcMetadata_.getNumericFunctions(); 331 } 332 333 338 public String getStringFunctions() throws RemoteException, SQLException { 339 return jdbcMetadata_.getStringFunctions(); 340 } 341 342 347 public String getSystemFunctions() throws RemoteException, SQLException { 348 return jdbcMetadata_.getSystemFunctions(); 349 } 350 351 356 public String getTimeDateFunctions() throws RemoteException, SQLException { 357 return jdbcMetadata_.getTimeDateFunctions(); 358 } 359 360 369 public String getSearchStringEscape() throws RemoteException, SQLException { 370 return jdbcMetadata_.getSearchStringEscape(); 371 } 372 373 379 public String getExtraNameCharacters() throws RemoteException, SQLException { 380 return jdbcMetadata_.getExtraNameCharacters(); 381 } 382 383 386 391 public boolean supportsAlterTableWithAddColumn() 392 throws RemoteException, SQLException { 393 return jdbcMetadata_.supportsAlterTableWithAddColumn(); 394 } 395 396 401 public boolean supportsAlterTableWithDropColumn() 402 throws RemoteException, SQLException { 403 return jdbcMetadata_.supportsAlterTableWithDropColumn(); 404 } 405 406 417 public boolean supportsColumnAliasing() throws RemoteException, SQLException { 418 return jdbcMetadata_.supportsColumnAliasing(); 419 } 420 421 428 public boolean nullPlusNonNullIsNull() throws RemoteException, SQLException { 429 return jdbcMetadata_.nullPlusNonNullIsNull(); 430 } 431 432 437 public boolean supportsConvert() throws RemoteException, SQLException { 438 return jdbcMetadata_.supportsConvert(); 439 } 440 441 449 public boolean supportsConvert(int fromType, int toType) 450 throws RemoteException, SQLException { 451 return jdbcMetadata_.supportsConvert(); 452 } 453 454 461 public boolean supportsTableCorrelationNames() 462 throws RemoteException, SQLException { 463 return jdbcMetadata_.supportsTableCorrelationNames(); 464 } 465 466 472 public boolean supportsDifferentTableCorrelationNames() 473 throws RemoteException, SQLException { 474 return jdbcMetadata_.supportsDifferentTableCorrelationNames(); 475 } 476 477 482 public boolean supportsExpressionsInOrderBy() 483 throws RemoteException, SQLException { 484 return jdbcMetadata_.supportsExpressionsInOrderBy(); 485 } 486 487 492 public boolean supportsOrderByUnrelated() throws RemoteException, SQLException { 493 return jdbcMetadata_.supportsOrderByUnrelated(); 494 } 495 496 501 public boolean supportsGroupBy() throws RemoteException, SQLException { 502 return jdbcMetadata_.supportsGroupBy(); 503 } 504 505 510 public boolean supportsGroupByUnrelated() throws RemoteException, SQLException { 511 return jdbcMetadata_.supportsGroupByUnrelated(); 512 } 513 514 520 public boolean supportsGroupByBeyondSelect() throws RemoteException, SQLException { 521 return jdbcMetadata_.supportsGroupByBeyondSelect(); 522 } 523 524 531 public boolean supportsLikeEscapeClause() throws RemoteException, SQLException { 532 return jdbcMetadata_.supportsLikeEscapeClause(); 533 } 534 535 540 public boolean supportsMultipleResultSets() throws RemoteException, SQLException { 541 return jdbcMetadata_.supportsMultipleResultSets(); 542 } 543 544 550 public boolean supportsMultipleTransactions() 551 throws RemoteException, SQLException { 552 return jdbcMetadata_.supportsMultipleTransactions(); 553 } 554 555 562 public boolean supportsNonNullableColumns() throws RemoteException, SQLException { 563 return jdbcMetadata_.supportsNonNullableColumns(); 564 } 565 566 573 public boolean supportsMinimumSQLGrammar() throws RemoteException, SQLException { 574 return jdbcMetadata_.supportsMinimumSQLGrammar(); 575 } 576 577 582 public boolean supportsCoreSQLGrammar() throws RemoteException, SQLException { 583 return jdbcMetadata_.supportsCoreSQLGrammar(); 584 } 585 586 591 public boolean supportsExtendedSQLGrammar() throws RemoteException, SQLException { 592 return jdbcMetadata_.supportsExtendedSQLGrammar(); 593 } 594 595 602 public boolean supportsANSI92EntryLevelSQL() throws RemoteException, SQLException { 603 return jdbcMetadata_.supportsANSI92EntryLevelSQL(); 604 } 605 606 611 public boolean supportsANSI92IntermediateSQL() 612 throws RemoteException, SQLException { 613 return jdbcMetadata_.supportsANSI92IntermediateSQL(); 614 } 615 616 621 public boolean supportsANSI92FullSQL() throws RemoteException, SQLException { 622 return jdbcMetadata_.supportsANSI92FullSQL(); 623 } 624 625 630 public boolean supportsIntegrityEnhancementFacility() 631 throws RemoteException, SQLException { 632 return jdbcMetadata_.supportsIntegrityEnhancementFacility(); 633 } 634 635 640 public boolean supportsOuterJoins() throws RemoteException, SQLException { 641 return jdbcMetadata_.supportsOuterJoins(); 642 } 643 644 649 public boolean supportsFullOuterJoins() throws RemoteException, SQLException { 650 return jdbcMetadata_.supportsFullOuterJoins(); 651 } 652 653 659 public boolean supportsLimitedOuterJoins() 660 throws RemoteException, SQLException { 661 return jdbcMetadata_.supportsLimitedOuterJoins(); 662 } 663 664 669 public String getSchemaTerm() throws RemoteException, SQLException { 670 return jdbcMetadata_.getSchemaTerm(); 671 } 672 673 678 public String getProcedureTerm() throws RemoteException, SQLException { 679 return jdbcMetadata_.getProcedureTerm(); 680 } 681 682 687 public String getCatalogTerm() throws RemoteException, SQLException { 688 return jdbcMetadata_.getCatalogTerm(); 689 } 690 691 697 public boolean isCatalogAtStart() throws RemoteException, SQLException { 698 return jdbcMetadata_.isCatalogAtStart(); 699 } 700 701 706 public String getCatalogSeparator() throws RemoteException, SQLException { 707 return jdbcMetadata_.getCatalogSeparator(); 708 } 709 710 715 public boolean supportsSchemasInDataManipulation() 716 throws RemoteException, SQLException { 717 return jdbcMetadata_.supportsSchemasInDataManipulation(); 718 } 719 720 725 public boolean supportsSchemasInProcedureCalls() 726 throws RemoteException, SQLException { 727 return jdbcMetadata_.supportsSchemasInProcedureCalls(); 728 } 729 730 735 public boolean supportsSchemasInTableDefinitions() 736 throws RemoteException, SQLException { 737 return jdbcMetadata_.supportsSchemasInTableDefinitions(); 738 } 739 740 745 public boolean supportsSchemasInIndexDefinitions() 746 throws RemoteException, SQLException { 747 return jdbcMetadata_.supportsSchemasInIndexDefinitions(); 748 } 749 750 755 public boolean supportsSchemasInPrivilegeDefinitions() 756 throws RemoteException, SQLException { 757 return jdbcMetadata_.supportsSchemasInPrivilegeDefinitions(); 758 } 759 760 765 public boolean supportsCatalogsInDataManipulation() 766 throws RemoteException, SQLException { 767 return jdbcMetadata_.supportsCatalogsInDataManipulation(); 768 } 769 770 775 public boolean supportsCatalogsInProcedureCalls() 776 throws RemoteException, SQLException { 777 return jdbcMetadata_.supportsCatalogsInProcedureCalls(); 778 } 779 780 785 public boolean supportsCatalogsInTableDefinitions() 786 throws RemoteException, SQLException { 787 return jdbcMetadata_.supportsCatalogsInTableDefinitions(); 788 } 789 790 795 public boolean supportsCatalogsInIndexDefinitions() 796 throws RemoteException, SQLException { 797 return jdbcMetadata_.supportsCatalogsInIndexDefinitions(); 798 } 799 800 805 public boolean supportsCatalogsInPrivilegeDefinitions() 806 throws RemoteException, SQLException { 807 return jdbcMetadata_.supportsCatalogsInPrivilegeDefinitions(); 808 } 809 810 811 816 public boolean supportsPositionedDelete() 817 throws RemoteException, SQLException { 818 return jdbcMetadata_.supportsPositionedDelete(); 819 } 820 821 826 public boolean supportsPositionedUpdate() 827 throws RemoteException, SQLException { 828 return jdbcMetadata_.supportsPositionedUpdate(); 829 } 830 831 836 public boolean supportsSelectForUpdate() 837 throws RemoteException, SQLException { 838 return jdbcMetadata_.supportsSelectForUpdate(); 839 } 840 841 847 public boolean supportsStoredProcedures() 848 throws RemoteException, SQLException { 849 return jdbcMetadata_.supportsStoredProcedures(); 850 } 851 852 859 public boolean supportsSubqueriesInComparisons() 860 throws RemoteException, SQLException { 861 return jdbcMetadata_.supportsSubqueriesInComparisons(); 862 } 863 864 871 public boolean supportsSubqueriesInExists() 872 throws RemoteException, SQLException { 873 return jdbcMetadata_.supportsSubqueriesInExists(); 874 } 875 876 883 public boolean supportsSubqueriesInIns() 884 throws RemoteException, SQLException { 885 return jdbcMetadata_.supportsSubqueriesInIns(); 886 } 887 888 895 public boolean supportsSubqueriesInQuantifieds() 896 throws RemoteException, SQLException { 897 return jdbcMetadata_.supportsSubqueriesInQuantifieds(); 898 } 899 900 907 public boolean supportsCorrelatedSubqueries() 908 throws RemoteException, SQLException { 909 return jdbcMetadata_.supportsCorrelatedSubqueries(); 910 } 911 912 917 public boolean supportsUnion() throws RemoteException, SQLException { 918 return jdbcMetadata_.supportsUnion(); 919 } 920 921 926 public boolean supportsUnionAll() throws RemoteException, SQLException { 927 return jdbcMetadata_.supportsUnionAll(); 928 } 929 930 936 public boolean supportsOpenCursorsAcrossCommit() 937 throws RemoteException, SQLException { 938 return jdbcMetadata_.supportsOpenCursorsAcrossCommit(); 939 } 940 941 947 public boolean supportsOpenCursorsAcrossRollback() 948 throws RemoteException, SQLException { 949 return jdbcMetadata_.supportsOpenCursorsAcrossRollback(); 950 } 951 952 958 public boolean supportsOpenStatementsAcrossCommit() 959 throws RemoteException, SQLException { 960 return jdbcMetadata_.supportsOpenStatementsAcrossCommit(); 961 } 962 963 969 public boolean supportsOpenStatementsAcrossRollback() 970 throws RemoteException, SQLException { 971 return jdbcMetadata_.supportsOpenStatementsAcrossRollback(); 972 } 973 974 980 985 public int getMaxBinaryLiteralLength() throws RemoteException, SQLException { 986 return jdbcMetadata_.getMaxBinaryLiteralLength(); 987 } 988 989 994 public int getMaxCharLiteralLength() throws RemoteException, SQLException { 995 return jdbcMetadata_.getMaxCharLiteralLength(); 996 } 997 998 1003 public int getMaxColumnNameLength() throws RemoteException, SQLException { 1004 return jdbcMetadata_.getMaxColumnNameLength(); 1005 } 1006 1007 1012 public int getMaxColumnsInGroupBy() throws RemoteException, SQLException { 1013 return jdbcMetadata_.getMaxColumnsInGroupBy(); 1014 } 1015 1016 1021 public int getMaxColumnsInIndex() throws RemoteException, SQLException { 1022 return jdbcMetadata_.getMaxColumnsInIndex(); 1023 } 1024 1025 1030 public int getMaxColumnsInOrderBy() throws RemoteException, SQLException { 1031 return jdbcMetadata_.getMaxColumnsInOrderBy(); 1032 } 1033 1034 1039 public int getMaxColumnsInSelect() throws RemoteException, SQLException { 1040 return jdbcMetadata_.getMaxColumnsInSelect(); 1041 } 1042 1043 1048 public int getMaxColumnsInTable() throws RemoteException, SQLException { 1049 return jdbcMetadata_.getMaxColumnsInTable(); 1050 } 1051 1052 1057 public int getMaxConnections() throws RemoteException, SQLException { 1058 return jdbcMetadata_.getMaxConnections(); 1059 } 1060 1061 1066 public int getMaxCursorNameLength() throws RemoteException, SQLException { 1067 return jdbcMetadata_.getMaxCursorNameLength(); 1068 } 1069 1070 1075 public int getMaxIndexLength() throws RemoteException, SQLException { 1076 return jdbcMetadata_.getMaxIndexLength(); 1077 } 1078 1079 1084 public int getMaxSchemaNameLength() throws RemoteException, SQLException { 1085 return jdbcMetadata_.getMaxSchemaNameLength(); 1086 } 1087 1088 1093 public int getMaxProcedureNameLength() throws RemoteException, SQLException { 1094 return jdbcMetadata_.getMaxProcedureNameLength(); 1095 } 1096 1097 1102 public int getMaxCatalogNameLength() throws RemoteException, SQLException { 1103 return jdbcMetadata_.getMaxCatalogNameLength(); 1104 } 1105 1106 1111 public int getMaxRowSize() throws RemoteException, SQLException { 1112 return jdbcMetadata_.getMaxRowSize(); 1113 } 1114 1115 1121 public boolean doesMaxRowSizeIncludeBlobs() 1122 throws RemoteException, SQLException { 1123 return jdbcMetadata_.doesMaxRowSizeIncludeBlobs(); 1124 } 1125 1126 1131 public int getMaxStatementLength() throws RemoteException, SQLException { 1132 return jdbcMetadata_.getMaxStatementLength(); 1133 } 1134 1135 1141 public int getMaxStatements() throws RemoteException, SQLException { 1142 return jdbcMetadata_.getMaxStatements(); 1143 } 1144 1145 1150 public int getMaxTableNameLength() throws RemoteException, SQLException { 1151 return jdbcMetadata_.getMaxTableNameLength(); 1152 } 1153 1154 1159 public int getMaxTablesInSelect() throws RemoteException, SQLException { 1160 return jdbcMetadata_.getMaxTablesInSelect(); 1161 } 1162 1163 1168 public int getMaxUserNameLength() throws RemoteException, SQLException { 1169 return jdbcMetadata_.getMaxUserNameLength(); 1170 } 1171 1172 1174 |