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 1181 public int getDefaultTransactionIsolation() 1182 throws RemoteException, SQLException { 1183 return jdbcMetadata_.getDefaultTransactionIsolation(); 1184 } 1185 1186 1192 public boolean supportsTransactions() throws RemoteException, SQLException { 1193 return jdbcMetadata_.supportsTransactions(); 1194 } 1195 1196 1203 public boolean supportsTransactionIsolationLevel(int level) 1204 throws RemoteException, SQLException { 1205 return jdbcMetadata_.supportsTransactionIsolationLevel(level); 1206 } 1207 1208 1214 public boolean supportsDataDefinitionAndDataManipulationTransactions() 1215 throws RemoteException, SQLException { 1216 return jdbcMetadata_.supportsDataDefinitionAndDataManipulationTransactions(); 1217 } 1218 1219 1225 public boolean supportsDataManipulationTransactionsOnly() 1226 throws RemoteException, SQLException { 1227 return jdbcMetadata_.supportsDataManipulationTransactionsOnly(); 1228 } 1229 1230 1236 public boolean dataDefinitionCausesTransactionCommit() 1237 throws RemoteException, SQLException { 1238 return jdbcMetadata_.dataDefinitionCausesTransactionCommit(); 1239 } 1240 1241 1246 public boolean dataDefinitionIgnoredInTransactions() 1247 throws RemoteException, SQLException { 1248 return jdbcMetadata_.dataDefinitionIgnoredInTransactions(); 1249 } 1250 1251 1252 1285 public RJResultSetInterface getProcedures(String catalog, 1286 String schemaPattern, String procedureNamePattern) 1287 throws RemoteException, SQLException { 1288 return new RJResultSetServer(jdbcMetadata_.getProcedures(catalog, 1289 schemaPattern, procedureNamePattern)); 1290 } 1291 1292 1347 public RJResultSetInterface getProcedureColumns(String catalog, 1348 String schemaPattern, String procedureNamePattern, 1349 String columnNamePattern) throws RemoteException, SQLException { 1350 return new RJResultSetServer(jdbcMetadata_.getProcedureColumns(catalog, 1351 schemaPattern, procedureNamePattern, columnNamePattern)); 1352 } 1353 1354 1384 public RJResultSetInterface getTables(String catalog, String schemaPattern, 1385 String tableNamePattern, String types[]) 1386 throws RemoteException, SQLException { 1387 return new RJResultSetServer(jdbcMetadata_.getTables(catalog, 1388 schemaPattern, tableNamePattern, types)); 1389 } 1390 1391 1403 public RJResultSetInterface getSchemas() 1404 throws RemoteException, SQLException { 1405 return new RJResultSetServer(jdbcMetadata_.getSchemas()); 1406 } 1407 1408 1420 public RJResultSetInterface getCatalogs() 1421 throws RemoteException, SQLException { 1422 return new RJResultSetServer(jdbcMetadata_.getCatalogs()); 1423 } 1424 1425 1439 public RJResultSetInterface getTableTypes() 1440 throws RemoteException, SQLException { 1441 return new RJResultSetServer(jdbcMetadata_.getTableTypes()); 1442 } 1443 1444 1493 public RJResultSetInterface getColumns(String catalog, String schemaPattern, 1494 String tableNamePattern, String columnNamePattern) 1495 throws RemoteException, SQLException { 1496 return new RJResultSetServer(jdbcMetadata_.getColumns(catalog, 1497 schemaPattern, tableNamePattern, columnNamePattern)); 1498 } 1499 1500 1528 public RJResultSetInterface getColumnPrivileges(String catalog, String schema, 1529 String table, String columnNamePattern) throws RemoteException, SQLException { 1530 return new RJResultSetServer(jdbcMetadata_.getColumnPrivileges(catalog, 1531 schema, table, columnNamePattern)); 1532 } 1533 1534 1566 public RJResultSetInterface getTablePrivileges(String catalog, 1567 String schemaPattern, String tableNamePattern) 1568 throws RemoteException, SQLException { 1569 return new RJResultSetServer(jdbcMetadata_.getTablePrivileges(catalog, 1570 schemaPattern, tableNamePattern)); 1571 } 1572 1573 1608 public RJResultSetInterface getBestRowIdentifier(String catalog, 1609 String schema, String table, int scope, boolean nullable) 1610 throws RemoteException, SQLException { 1611 return new RJResultSetServer(jdbcMetadata_.getBestRowIdentifier(catalog, 1612 schema, table, scope, nullable)); 1613 } 1614 1615 1644 public RJResultSetInterface getVersionColumns(String catalog, String schema, 1645 String table) throws RemoteException, SQLException { 1646 return new RJResultSetServer(jdbcMetadata_.getVersionColumns(catalog, 1647 schema, table)); 1648 } 1649 1650 1671 public RJResultSetInterface getPrimaryKeys(String catalog, String schema, 1672 String table) throws RemoteException, SQLException { 1673 return new RJResultSetServer(jdbcMetadata_.getPrimaryKeys(catalog, 1674 schema, table)); 1675 } 1676 1677 1744 public RJResultSetInterface getImportedKeys(String catalog, String schema, 1745 String table) throws RemoteException, SQLException { 1746 return new RJResultSetServer(jdbcMetadata_.getImportedKeys(catalog, 1747 schema, table)); 1748 } 1749 1750 1817 public RJResultSetInterface getExportedKeys(String catalog, String schema, 1818 String table) throws RemoteException, SQLException { 1819 return new RJResultSetServer(jdbcMetadata_.getExportedKeys(catalog, 1820 schema, table)); 1821 } 1822 1823 1898 public RJResultSetInterface getCrossReference( 1899 String primaryCatalog, String primarySchema, String primaryTable, 1900 String foreignCatalog, String foreignSchema, String foreignTable) 1901 throws RemoteException, SQLException { 1902 return new RJResultSetServer(jdbcMetadata_.getCrossReference( 1903 primaryCatalog, primarySchema, primaryTable, 1904 foreignCatalog, foreignSchema, foreignTable)); 1905 } 1906 1907 1952 public RJResultSetInterface getTypeInfo() 1953 throws RemoteException, SQLException { 1954 return new RJResultSetServer(jdbcMetadata_.getTypeInfo()); 1955 } 1956 1957 2008 public RJResultSetInterface getIndexInfo(String catalog, String schema, 2009 String table, boolean unique, boolean approximate) 2010 throws RemoteException, SQLException { 2011 return new RJResultSetServer(jdbcMetadata_.getIndexInfo(catalog, 2012 schema, table, unique, approximate)); 2013 } 2014 2015 2017public boolean updatesAreDetected(int type) throws RemoteException, SQLException 2018 { 2019 return jdbcMetadata_.updatesAreDetected(type); 2020 } 2021 2022public boolean supportsResultSetType(int type) throws RemoteException, SQLException 2023 { 2024 return jdbcMetadata_.supportsResultSetType(type); 2025 } 2026 2027public boolean supportsResultSetConcurrency(int type, 2028 int concurrency) throws RemoteException, SQLException 2029 { 2030 return jdbcMetadata_.supportsResultSetConcurrency(type,concurrency); 2031 } 2032 2033public boolean ownUpdatesAreVisible(int type) throws RemoteException, SQLException 2034 { 2035 return jdbcMetadata_.ownUpdatesAreVisible(type); 2036 } 2037 2038public boolean ownInsertsAreVisible(int type) throws RemoteException, SQLException 2039 { 2040 return jdbcMetadata_.ownInsertsAreVisible(type); 2041 } 2042 2043public boolean ownDeletesAreVisible(int type) throws RemoteException, SQLException 2044 { 2045 return jdbcMetadata_.ownDeletesAreVisible(type); 2046 } 2047 2048public boolean othersUpdatesAreVisible(int type) throws RemoteException, SQLException 2049 { 2050 return jdbcMetadata_.othersUpdatesAreVisible(type); 2051 } 2052 2053public boolean othersInsertsAreVisible(int type) throws RemoteException, SQLException 2054 { 2055 return jdbcMetadata_.othersInsertsAreVisible(type); 2056 } 2057 2058public boolean othersDeletesAreVisible(int type) throws RemoteException, SQLException 2059 { 2060 return jdbcMetadata_.othersDeletesAreVisible(type); 2061 } 2062 2063public boolean insertsAreDetected(int type) throws RemoteException, SQLException 2064 { 2065 return jdbcMetadata_.insertsAreDetected(type); 2066 } 2067 2068 2069 public RJResultSetInterface getUDTs(String catalog, String schemaPattern, 2070 String typeNamePattern, int[] types) throws RemoteException, SQLException { 2071 return new RJResultSetServer( 2072 jdbcMetadata_.getUDTs(catalog,schemaPattern,typeNamePattern,types)); 2073 } 2074 2075 2076public boolean supportsBatchUpdates() throws RemoteException, SQLException 2077 { 2078 return jdbcMetadata_.supportsBatchUpdates(); 2079 } 2080 2081public Connection getConnection() throws RemoteException, SQLException 2082 { 2083 return jdbcMetadata_.getConnection(); 2084 } 2085 2086public boolean deletesAreDetected(int type) throws RemoteException, SQLException 2087 { 2088 return jdbcMetadata_.deletesAreDetected(type); 2089 } 2090 2091 2093 public boolean supportsSavepoints() throws RemoteException, SQLException { 2094 return jdbcMetadata_.supportsSavepoints(); 2095 } 2096 2097 public boolean supportsNamedParameters() 2098 throws RemoteException, SQLException { 2099 return jdbcMetadata_.supportsNamedParameters(); 2100 } 2101 2102 public boolean supportsMultipleOpenResults() 2103 throws RemoteException, SQLException { 2104 return jdbcMetadata_.supportsMultipleOpenResults(); 2105 } 2106 2107 public boolean supportsGetGeneratedKeys() 2108 throws RemoteException, SQLException { 2109 return jdbcMetadata_.supportsGetGeneratedKeys(); 2110 } 2111 2112 public RJResultSetInterface getSuperTypes(String catalog, 2113 String schemaPattern, String typeNamePattern) 2114 throws RemoteException, SQLException { 2115 return new RJResultSetServer( 2116 jdbcMetadata_.getSuperTypes(catalog, schemaPattern, typeNamePattern)); 2117 } 2118 2119 public RJResultSetInterface getSuperTables(String catalog, 2120 String schemaPattern, String tableNamePattern) 2121 throws RemoteException, SQLException { 2122 return new RJResultSetServer( 2123 jdbcMetadata_.getSuperTables(catalog, schemaPattern, tableNamePattern)); 2124 } 2125 2126 public RJResultSetInterface getAttributes(String catalog, 2127 String schemaPattern, String typeNamePattern, String attributeNamePattern) 2128 throws RemoteException, SQLException { 2129 return new RJResultSetServer( 2130 jdbcMetadata_.getAttributes(catalog, schemaPattern, typeNamePattern, 2131 attributeNamePattern)); 2132 } 2133 2134 public boolean supportsResultSetHoldability(int holdability) 2135 throws RemoteException, SQLException { 2136 return jdbcMetadata_.supportsResultSetHoldability(holdability); 2137 } 2138 2139 public int getResultSetHoldability() throws RemoteException, SQLException { 2140 return jdbcMetadata_.getResultSetHoldability(); 2141 } 2142 2143 public int getDatabaseMajorVersion() throws RemoteException, SQLException { 2144 return jdbcMetadata_.getDatabaseMajorVersion(); 2145 } 2146 2147 public int getDatabaseMinorVersion() throws RemoteException, SQLException { 2148 return jdbcMetadata_.getDatabaseMinorVersion(); 2149 } 2150 2151 public int getJDBCMajorVersion() throws RemoteException, SQLException { 2152 return jdbcMetadata_.getJDBCMajorVersion(); 2153 } 2154 2155 public int getJDBCMinorVersion() throws RemoteException, SQLException { 2156 return jdbcMetadata_.getJDBCMinorVersion(); 2157 } 2158 2159 public int getSQLStateType() throws RemoteException, SQLException { 2160 return jdbcMetadata_.getSQLStateType(); 2161 } 2162 2163 public boolean locatorsUpdateCopy() throws RemoteException, SQLException { 2164 return jdbcMetadata_.locatorsUpdateCopy(); 2165 } 2166 2167 public boolean supportsStatementPooling() 2168 throws RemoteException, SQLException { 2169 return jdbcMetadata_.supportsStatementPooling(); 2170 } 2171 2172}; 2173 2174 | Popular Tags |