1 7 8 9 package java.sql; 10 11 56 public interface DatabaseMetaData { 57 58 61 68 boolean allProceduresAreCallable() throws SQLException ; 69 70 78 boolean allTablesAreSelectable() throws SQLException ; 79 80 87 String getURL() throws SQLException ; 88 89 95 String getUserName() throws SQLException ; 96 97 103 boolean isReadOnly() throws SQLException ; 104 105 117 boolean nullsAreSortedHigh() throws SQLException ; 118 119 131 boolean nullsAreSortedLow() throws SQLException ; 132 133 140 boolean nullsAreSortedAtStart() throws SQLException ; 141 142 149 boolean nullsAreSortedAtEnd() throws SQLException ; 150 151 157 String getDatabaseProductName() throws SQLException ; 158 159 165 String getDatabaseProductVersion() throws SQLException ; 166 167 173 String getDriverName() throws SQLException ; 174 175 181 String getDriverVersion() throws SQLException ; 182 183 188 int getDriverMajorVersion(); 189 190 195 int getDriverMinorVersion(); 196 197 203 boolean usesLocalFiles() throws SQLException ; 204 205 212 boolean usesLocalFilePerTable() throws SQLException ; 213 214 221 boolean supportsMixedCaseIdentifiers() throws SQLException ; 222 223 230 boolean storesUpperCaseIdentifiers() throws SQLException ; 231 232 239 boolean storesLowerCaseIdentifiers() throws SQLException ; 240 241 248 boolean storesMixedCaseIdentifiers() throws SQLException ; 249 250 257 boolean supportsMixedCaseQuotedIdentifiers() throws SQLException ; 258 259 266 boolean storesUpperCaseQuotedIdentifiers() throws SQLException ; 267 268 275 boolean storesLowerCaseQuotedIdentifiers() throws SQLException ; 276 277 284 boolean storesMixedCaseQuotedIdentifiers() throws SQLException ; 285 286 293 String getIdentifierQuoteString() throws SQLException ; 294 295 303 String getSQLKeywords() throws SQLException ; 304 305 313 String getNumericFunctions() throws SQLException ; 314 315 323 String getStringFunctions() throws SQLException ; 324 325 333 String getSystemFunctions() throws SQLException ; 334 335 342 String getTimeDateFunctions() throws SQLException ; 343 344 357 String getSearchStringEscape() throws SQLException ; 358 359 366 String getExtraNameCharacters() throws SQLException ; 367 368 371 378 boolean supportsAlterTableWithAddColumn() throws SQLException ; 379 380 387 boolean supportsAlterTableWithDropColumn() throws SQLException ; 388 389 399 boolean supportsColumnAliasing() throws SQLException ; 400 401 409 boolean nullPlusNonNullIsNull() throws SQLException ; 410 411 418 boolean supportsConvert() throws SQLException ; 419 420 432 boolean supportsConvert(int fromType, int toType) throws SQLException ; 433 434 440 boolean supportsTableCorrelationNames() throws SQLException ; 441 442 449 boolean supportsDifferentTableCorrelationNames() throws SQLException ; 450 451 458 boolean supportsExpressionsInOrderBy() throws SQLException ; 459 460 468 boolean supportsOrderByUnrelated() throws SQLException ; 469 470 477 boolean supportsGroupBy() throws SQLException ; 478 479 487 boolean supportsGroupByUnrelated() throws SQLException ; 488 489 498 boolean supportsGroupByBeyondSelect() throws SQLException ; 499 500 507 boolean supportsLikeEscapeClause() throws SQLException ; 508 509 517 boolean supportsMultipleResultSets() throws SQLException ; 518 519 526 boolean supportsMultipleTransactions() throws SQLException ; 527 528 534 boolean supportsNonNullableColumns() throws SQLException ; 535 536 542 boolean supportsMinimumSQLGrammar() throws SQLException ; 543 544 550 boolean supportsCoreSQLGrammar() throws SQLException ; 551 552 558 boolean supportsExtendedSQLGrammar() throws SQLException ; 559 560 567 boolean supportsANSI92EntryLevelSQL() throws SQLException ; 568 569 575 boolean supportsANSI92IntermediateSQL() throws SQLException ; 576 577 583 boolean supportsANSI92FullSQL() throws SQLException ; 584 585 592 boolean supportsIntegrityEnhancementFacility() throws SQLException ; 593 594 600 boolean supportsOuterJoins() throws SQLException ; 601 602 608 boolean supportsFullOuterJoins() throws SQLException ; 609 610 618 boolean supportsLimitedOuterJoins() throws SQLException ; 619 620 626 String getSchemaTerm() throws SQLException ; 627 628 634 String getProcedureTerm() throws SQLException ; 635 636 642 String getCatalogTerm() throws SQLException ; 643 644 652 boolean isCatalogAtStart() throws SQLException ; 653 654 661 String getCatalogSeparator() throws SQLException ; 662 663 669 boolean supportsSchemasInDataManipulation() throws SQLException ; 670 671 677 boolean supportsSchemasInProcedureCalls() throws SQLException ; 678 679 685 boolean supportsSchemasInTableDefinitions() throws SQLException ; 686 687 693 boolean supportsSchemasInIndexDefinitions() throws SQLException ; 694 695 701 boolean supportsSchemasInPrivilegeDefinitions() throws SQLException ; 702 703 709 boolean supportsCatalogsInDataManipulation() throws SQLException ; 710 711 717 boolean supportsCatalogsInProcedureCalls() throws SQLException ; 718 719 725 boolean supportsCatalogsInTableDefinitions() throws SQLException ; 726 727 733 boolean supportsCatalogsInIndexDefinitions() throws SQLException ; 734 735 741 boolean supportsCatalogsInPrivilegeDefinitions() throws SQLException ; 742 743 744 751 boolean supportsPositionedDelete() throws SQLException ; 752 753 760 boolean supportsPositionedUpdate() throws SQLException ; 761 762 769 boolean supportsSelectForUpdate() throws SQLException ; 770 771 778 boolean supportsStoredProcedures() throws SQLException ; 779 780 787 boolean supportsSubqueriesInComparisons() throws SQLException ; 788 789 796 boolean supportsSubqueriesInExists() throws SQLException ; 797 798 805 boolean supportsSubqueriesInIns() throws SQLException ; 806 807 814 boolean supportsSubqueriesInQuantifieds() throws SQLException ; 815 816 822 boolean supportsCorrelatedSubqueries() throws SQLException ; 823 824 830 boolean supportsUnion() throws SQLException ; 831 832 838 boolean supportsUnionAll() throws SQLException ; 839 840 848 boolean supportsOpenCursorsAcrossCommit() throws SQLException ; 849 850 858 boolean supportsOpenCursorsAcrossRollback() throws SQLException ; 859 860 868 boolean supportsOpenStatementsAcrossCommit() throws SQLException ; 869 870 878 boolean supportsOpenStatementsAcrossRollback() throws SQLException ; 879 880 881 882 888 897 int getMaxBinaryLiteralLength() throws SQLException ; 898 899 908 int getMaxCharLiteralLength() throws SQLException ; 909 910 919 int getMaxColumnNameLength() throws SQLException ; 920 921 930 int getMaxColumnsInGroupBy() throws SQLException ; 931 932 940 int getMaxColumnsInIndex() throws SQLException ; 941 942 951 int getMaxColumnsInOrderBy() throws SQLException ; 952 953 962 int getMaxColumnsInSelect() throws SQLException ; 963 964 972 int getMaxColumnsInTable() throws SQLException ; 973 974 983 int getMaxConnections() throws SQLException ; 984 985 994 int getMaxCursorNameLength() throws SQLException ; 995 996 1006 int getMaxIndexLength() throws SQLException ; 1007 1008 1017 int getMaxSchemaNameLength() throws SQLException ; 1018 1019 1028 int getMaxProcedureNameLength() throws SQLException ; 1029 1030 1039 int getMaxCatalogNameLength() throws SQLException ; 1040 1041 1049 int getMaxRowSize() throws SQLException ; 1050 1051 1059 boolean doesMaxRowSizeIncludeBlobs() throws SQLException ; 1060 1061 1070 int getMaxStatementLength() throws SQLException ; 1071 1072 1081 int getMaxStatements() throws SQLException ; 1082 1083 1092 int getMaxTableNameLength() throws SQLException ; 1093 1094 1103 int getMaxTablesInSelect() throws SQLException ; 1104 1105 1114 int getMaxUserNameLength() throws SQLException ; 1115 1116 1118 1126 int getDefaultTransactionIsolation() throws SQLException ; 1127 1128 1137 boolean supportsTransactions() throws SQLException ; 1138 1139 1148 boolean supportsTransactionIsolationLevel(int level) 1149 throws SQLException ; 1150 1151 1158 boolean supportsDataDefinitionAndDataManipulationTransactions() 1159 throws SQLException ; 1160 1167 boolean supportsDataManipulationTransactionsOnly() 1168 throws SQLException ; 1169 1170 1177 boolean dataDefinitionCausesTransactionCommit() 1178 throws SQLException ; 1179 1180 1187 boolean dataDefinitionIgnoredInTransactions() 1188 throws SQLException ; 1189 1190 1229 ResultSet getProcedures(String catalog, String schemaPattern, 1230 String procedureNamePattern) throws SQLException ; 1231 1232 1240 int procedureResultUnknown = 0; 1241 1242 1249 int procedureNoResult = 1; 1250 1251 1258 int procedureReturnsResult = 2; 1259 1260 1323 ResultSet getProcedureColumns(String catalog, 1324 String schemaPattern, 1325 String procedureNamePattern, 1326 String columnNamePattern) throws SQLException ; 1327 1328 1336 int procedureColumnUnknown = 0; 1337 1338 1346 int procedureColumnIn = 1; 1347 1348 1356 int procedureColumnInOut = 2; 1357 1358 1366 int procedureColumnOut = 4; 1367 1375 int procedureColumnReturn = 5; 1376 1377 1385 int procedureColumnResult = 3; 1386 1387 1395 int procedureNoNulls = 0; 1396 1397 1405 int procedureNullable = 1; 1406 1407 1416 int procedureNullableUnknown = 2; 1417 1418 1419 1462 ResultSet getTables(String catalog, String schemaPattern, 1463 String tableNamePattern, String types[]) throws SQLException ; 1464 1465 1479 ResultSet getSchemas() throws SQLException ; 1480 1481 1494 ResultSet getCatalogs() throws SQLException ; 1495 1496 1511 ResultSet getTableTypes() throws SQLException ; 1512 1513 1581 ResultSet getColumns(String catalog, String schemaPattern, 1582 String tableNamePattern, String columnNamePattern) 1583 throws SQLException ; 1584 1585 1593 int columnNoNulls = 0; 1594 1595 1603 int columnNullable = 1; 1604 1605 1613 int columnNullableUnknown = 2; 1614 1615 1651 ResultSet getColumnPrivileges(String catalog, String schema, 1652 String table, String columnNamePattern) throws SQLException ; 1653 1654 1692 ResultSet getTablePrivileges(String catalog, String schemaPattern, 1693 String tableNamePattern) throws SQLException ; 1694 1695 1738 ResultSet getBestRowIdentifier(String catalog, String schema, 1739 String table, int scope, boolean nullable) throws SQLException ; 1740 1741 1751 int bestRowTemporary = 0; 1752 1753 1762 int bestRowTransaction = 1; 1763 1764 1773 int bestRowSession = 2; 1774 1775 1783 int bestRowUnknown = 0; 1784 1785 1793 int bestRowNotPseudo = 1; 1794 1795 1803 int bestRowPseudo = 2; 1804 1805 1842 ResultSet getVersionColumns(String catalog, String schema, 1843 String table) throws SQLException ; 1844 1845 1853 int versionColumnUnknown = 0; 1854 1855 1863 int versionColumnNotPseudo = 1; 1864 1865 1873 int versionColumnPseudo = 2; 1874 1875 1902 ResultSet getPrimaryKeys(String catalog, String schema, 1903 String table) throws SQLException ; 1904 1905 1978 ResultSet getImportedKeys(String catalog, String schema, 1979 String table) throws SQLException ; 1980 1981 1997 int importedKeyCascade = 0; 1998 1999 2013 int importedKeyRestrict = 1; 2014 2015 2027 int importedKeySetNull = 2; 2028 2029 2040 int importedKeyNoAction = 3; 2041 2042 2054 int importedKeySetDefault = 4; 2055 2056 2064 int importedKeyInitiallyDeferred = 5; 2065 2066 2074 int importedKeyInitiallyImmediate = 6; 2075 2076 2084 int importedKeyNotDeferrable = 7; 2085 2086 2160 ResultSet getExportedKeys(String catalog, String schema, 2161 String table) throws SQLException ; 2162 2163 2245 ResultSet getCrossReference( 2246 String primaryCatalog, String primarySchema, String primaryTable, 2247 String foreignCatalog, String foreignSchema, String foreignTable 2248 ) throws SQLException ; 2249 2250 2297 ResultSet getTypeInfo() throws SQLException ; 2298 2299 2307 int typeNoNulls = 0; 2308 2309 2317 int typeNullable = 1; 2318 2319 2327 int typeNullableUnknown = 2; 2328 2329 2337 int typePredNone = 0; 2338 2339 2347 int typePredChar = 1; 2348 2349 2357 int typePredBasic = 2; 2358 2359 2367 int typeSearchable = 3; 2368 2369 2427 ResultSet getIndexInfo(String catalog, String schema, String table, 2428 boolean unique, boolean approximate) 2429 throws SQLException ; 2430 2431 2439 short tableIndexStatistic = 0; 2440 2441 2448 short tableIndexClustered = 1; 2449 2450 2457 short tableIndexHashed = 2; 2458 2459 2468 short tableIndexOther = 3; 2469 2470 2472 2481 boolean supportsResultSetType(int type) throws SQLException ; 2482 2483 2494 boolean supportsResultSetConcurrency(int type, int concurrency) 2495 throws SQLException ; 2496 2497 2511 boolean ownUpdatesAreVisible(int type) throws SQLException ; 2512 2513 2525 boolean ownDeletesAreVisible(int type) throws SQLException ; 2526 2527 2539 boolean ownInsertsAreVisible(int type) throws SQLException ; 2540 2541 2554 boolean othersUpdatesAreVisible(int type) throws SQLException ; 2555 2556 2569 boolean othersDeletesAreVisible(int type) throws SQLException ; 2570 2571 2584 boolean othersInsertsAreVisible(int type) throws SQLException ; 2585 2586 2599 boolean updatesAreDetected(int type) throws SQLException ; 2600 2601 2616 boolean deletesAreDetected(int type) throws SQLException ; 2617 2618 2631 boolean insertsAreDetected(int type) throws SQLException ; 2632 2633 2641 boolean supportsBatchUpdates() throws SQLException ; 2642 2643 2690 ResultSet getUDTs(String catalog, String schemaPattern, 2691 String typeNamePattern, int[] types) 2692 throws SQLException ; 2693 2694 2701 Connection getConnection() throws SQLException ; 2702 2703 2705 2713 boolean supportsSavepoints() throws SQLException ; 2714 2715 2724 boolean supportsNamedParameters() throws SQLException ; 2725 2726 2737 boolean supportsMultipleOpenResults() throws SQLException ; 2738 2739 2748 boolean supportsGetGeneratedKeys() throws SQLException ; 2749 2750 2790 ResultSet getSuperTypes(String catalog, String schemaPattern, 2791 String typeNamePattern) throws SQLException ; 2792 2793 2826 ResultSet getSuperTables(String catalog, String schemaPattern, 2827 String tableNamePattern) throws SQLException ; 2828 2829 2836 short attributeNoNulls = 0; 2837 2838 2845 short attributeNullable = 1; 2846 2847 2855 short attributeNullableUnknown = 2; 2856 2857 2927 ResultSet getAttributes(String catalog, String schemaPattern, 2928 String typeNamePattern, String attributeNamePattern) 2929 throws SQLException ; 2930 2931 2942 boolean supportsResultSetHoldability(int holdability) throws SQLException ; 2943 2944 2954 int getResultSetHoldability() throws SQLException ; 2955 2956 2963 int getDatabaseMajorVersion() throws SQLException ; 2964 2965 2972 int getDatabaseMinorVersion() throws SQLException ; 2973 2974 2982 int getJDBCMajorVersion() throws SQLException ; 2983 2984 2992 int getJDBCMinorVersion() throws SQLException ; 2993 2994 3002 int sqlStateXOpen = 1; 3003 3004 3011 int sqlStateSQL99 = 2; 3012 3013 3022 int getSQLStateType() throws SQLException ; 3023 3024 3032 boolean locatorsUpdateCopy() throws SQLException ; 3033 3034 3041 boolean supportsStatementPooling() throws SQLException ; 3042} 3043 3044 3045 3046 | Popular Tags |