📄 databasemetadata.java
字号:
* @return The version of the database product. * @exception SQLException If an error occurs. */ String getDatabaseProductVersion() throws SQLException; /** * This method returns the name of the JDBC driver. * * @return The name of the JDBC driver. * @exception SQLException If an error occurs. */ String getDriverName() throws SQLException; /** * This method returns the version of the JDBC driver. * * @return The version of the JDBC driver. * @exception SQLException If an error occurs. */ String getDriverVersion() throws SQLException; /** * This method returns the major version number of the JDBC driver. * * @return The major version number of the JDBC driver. */ int getDriverMajorVersion(); /** * This method returns the minor version number of the JDBC driver. * * @return The minor version number of the JDBC driver. */ int getDriverMinorVersion(); /** * This method tests whether or not the database uses local files to * store tables. * * @return <code>true</code> if the database uses local files, * <code>false</code> otherwise. * * @exception SQLException If an error occurs. */ boolean usesLocalFiles() throws SQLException; /** * This method tests whether or not the database uses a separate file for * each table. * * @return <code>true</code> if the database uses a separate file for each * table <code>false</code> otherwise. * * @exception SQLException If an error occurs. */ boolean usesLocalFilePerTable() throws SQLException; /** * This method tests whether or not the database supports identifiers * with mixed case. * * @return <code>true</code> if the database supports mixed case identifiers, * <code>false</code> otherwise. * * @exception SQLException If an error occurs. */ boolean supportsMixedCaseIdentifiers() throws SQLException; /** * This method tests whether or not the database treats mixed case * identifiers as all upper case. * * @return <code>true</code> if the database treats all identifiers as * upper case, <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean storesUpperCaseIdentifiers() throws SQLException; /** * This method tests whether or not the database treats mixed case * identifiers as all lower case. * * @return <code>true</code> if the database treats all identifiers as * lower case, <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean storesLowerCaseIdentifiers() throws SQLException; /** * This method tests whether or not the database stores mixed case * identifers even if it treats them as case insensitive. * * @return <code>true</code> if the database stores mixed case identifiers, * <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean storesMixedCaseIdentifiers() throws SQLException; /** * This method tests whether or not the database supports quoted identifiers * with mixed case. * * @return <code>true</code> if the database supports mixed case quoted * identifiers, <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsMixedCaseQuotedIdentifiers() throws SQLException; /** * This method tests whether or not the database treats mixed case * quoted identifiers as all upper case. * * @return <code>true</code> if the database treats all quoted identifiers * as upper case, <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean storesUpperCaseQuotedIdentifiers() throws SQLException; /** * This method tests whether or not the database treats mixed case * quoted identifiers as all lower case. * * @return <code>true</code> if the database treats all quoted identifiers * as lower case, <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean storesLowerCaseQuotedIdentifiers() throws SQLException; /** * This method tests whether or not the database stores mixed case * quoted identifers even if it treats them as case insensitive. * * @return <code>true</code> if the database stores mixed case quoted * identifiers, <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean storesMixedCaseQuotedIdentifiers() throws SQLException; /** * This metohd returns the quote string for SQL identifiers. * * @return The quote string for SQL identifers, or a space if quoting * is not supported. * @exception SQLException If an error occurs. */ String getIdentifierQuoteString() throws SQLException; /** * This method returns a comma separated list of all the SQL keywords in * the database that are not in SQL92. * * @return The list of SQL keywords not in SQL92. * @exception SQLException If an error occurs. */ String getSQLKeywords() throws SQLException; /** * This method returns a comma separated list of math functions. * * @return The list of math functions. * @exception SQLException If an error occurs. */ String getNumericFunctions() throws SQLException; /** * This method returns a comma separated list of string functions. * * @return The list of string functions. * @exception SQLException If an error occurs. */ String getStringFunctions() throws SQLException; /** * This method returns a comma separated list of of system functions. * * @return A comma separated list of system functions. * @exception SQLException If an error occurs. */ String getSystemFunctions() throws SQLException; /** * This method returns comma separated list of time/date functions. * * @return The list of time/date functions. * @exception SQLException If an error occurs. */ String getTimeDateFunctions() throws SQLException; /** * This method returns the string used to escape wildcards in search strings. * * @return The string used to escape wildcards in search strings. * @exception SQLException If an error occurs. */ String getSearchStringEscape() throws SQLException; /** * This methods returns non-standard characters that can appear in * unquoted identifiers. * * @return Non-standard characters that can appear in unquoted identifiers. * @exception SQLException If an error occurs. */ String getExtraNameCharacters() throws SQLException; /** * This method tests whether or not the database supports * "ALTER TABLE ADD COLUMN" * * @return <code>true</code> if column add supported, <code>false</code> * otherwise. * @exception SQLException If an error occurs. */ boolean supportsAlterTableWithAddColumn() throws SQLException; /** * This method tests whether or not the database supports * "ALTER TABLE DROP COLUMN" * * @return <code>true</code> if column drop supported, <code>false</code> * otherwise. * @exception SQLException If an error occurs. */ boolean supportsAlterTableWithDropColumn() throws SQLException; /** * This method tests whether or not column aliasing is supported. * * @return <code>true</code> if column aliasing is supported, * <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsColumnAliasing() throws SQLException; /** * This method tests whether the concatenation of a NULL and non-NULL * value results in a NULL. This will always be true in fully JDBC compliant * drivers. * * @return <code>true</code> if concatenating NULL and a non-NULL value * returns a NULL, <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean nullPlusNonNullIsNull() throws SQLException; /** * Tests whether or not CONVERT is supported. * * @return <code>true</code> if CONVERT is supported, <code>false</code> * otherwise. * @exception SQLException If an error occurs. */ boolean supportsConvert() throws SQLException; /** * This method tests whether or not CONVERT can be performed between the * specified types. The types are contants from <code>Types</code>. * * @param fromType The SQL type to convert from. * @param toType The SQL type to convert to. * @return <code>true</code> if the conversion can be performed, * <code>false</code> otherwise. * @see Types */ boolean supportsConvert(int fromType, int toType) throws SQLException; /** * This method tests whether or not table correlation names are * supported. This will be always be <code>true</code> in a fully JDBC * compliant driver. * * @return <code>true</code> if table correlation names are supported, * <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsTableCorrelationNames() throws SQLException; /** * This method tests whether correlation names must be different from the * name of the table. * * @return <code>true</code> if the correlation name must be different from * the table name, <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsDifferentTableCorrelationNames() throws SQLException; /** * This method tests whether or not expressions are allowed in an * ORDER BY lists. * * @return <code>true</code> if expressions are allowed in ORDER BY * lists, <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsExpressionsInOrderBy() throws SQLException; /** * This method tests whether or ORDER BY on a non-selected column is * allowed. * * @return <code>true</code> if a non-selected column can be used in an * ORDER BY, <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsOrderByUnrelated() throws SQLException; /** * This method tests whether or not GROUP BY is supported. * * @return <code>true</code> if GROUP BY is supported, <code>false</code> * otherwise. * @exception SQLException If an error occurs. */ boolean supportsGroupBy() throws SQLException; /** * This method tests whether GROUP BY on a non-selected column is * allowed. * * @return <code>true</code> if a non-selected column can be used in a * GROUP BY, <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsGroupByUnrelated() throws SQLException; /** * This method tests whether or not a GROUP BY can add columns not in the * select if it includes all the columns in the select. * * @return <code>true</code> if GROUP BY an add columns provided it includes * all columns in the select, <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsGroupByBeyondSelect() throws SQLException; /** * This method tests whether or not the escape character is supported in * LIKE expressions. A fully JDBC compliant driver will always return * <code>true</code>. * * @return <code>true</code> if escapes are supported in LIKE expressions, * <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsLikeEscapeClause() throws SQLException; /** * This method tests whether multiple result sets for a single statement are * supported. * * @return <code>true</code> if multiple result sets are supported for a * single statement, <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsMultipleResultSets() throws SQLException; /** * This method test whether or not multiple transactions may be open * at once, as long as they are on different connections. * * @return <code>true</code> if multiple transactions on different
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -