📄 databasemetadata.java
字号:
* <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsOpenCursorsAcrossCommit() throws SQLException; /** * This method tests whether or not the database supports cursors * remaining open across rollbacks. * * @return <code>true</code> if cursors can remain open across rollbacks, * <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsOpenCursorsAcrossRollback() throws SQLException; /** * This method tests whether or not the database supports statements * remaining open across commits. * * @return <code>true</code> if statements can remain open across commits, * <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsOpenStatementsAcrossCommit() throws SQLException; /** * This method tests whether or not the database supports statements * remaining open across rollbacks. * * @return <code>true</code> if statements can remain open across rollbacks, * <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsOpenStatementsAcrossRollback() throws SQLException; /** * This method returns the number of hex characters allowed in an inline * binary literal. * * @return The number of hex characters allowed in a binary literal, 0 meaning * either an unknown or unlimited number. * @exception SQLException If an error occurs. */ int getMaxBinaryLiteralLength() throws SQLException; /** * This method returns the maximum length of a character literal. * * @return The maximum length of a character literal. * @exception SQLException If an error occurs. */ int getMaxCharLiteralLength() throws SQLException; /** * This method returns the maximum length of a column name. * * @return The maximum length of a column name. * @exception SQLException If an error occurs. */ int getMaxColumnNameLength() throws SQLException; /** * This method returns the maximum number of columns in a GROUP BY statement. * * @return The maximum number of columns in a GROUP BY statement. * @exception SQLException If an error occurs. */ int getMaxColumnsInGroupBy() throws SQLException; /** * This method returns the maximum number of columns in an index. * * @return The maximum number of columns in an index. * @exception SQLException If an error occurs. */ int getMaxColumnsInIndex() throws SQLException; /** * This method returns the maximum number of columns in an ORDER BY statement. * * @return The maximum number of columns in an ORDER BY statement. * @exception SQLException If an error occurs. */ int getMaxColumnsInOrderBy() throws SQLException; /** * This method returns the maximum number of columns in a SELECT statement. * * @return The maximum number of columns in a SELECT statement. * @exception SQLException If an error occurs. */ int getMaxColumnsInSelect() throws SQLException; /** * This method returns the maximum number of columns in a table. * * @return The maximum number of columns in a table. * @exception SQLException If an error occurs. */ int getMaxColumnsInTable() throws SQLException; /** * This method returns the maximum number of connections this client * can have to the database. * * @return The maximum number of database connections. * @SQLException If an error occurs. */ int getMaxConnections() throws SQLException; /** * This method returns the maximum length of a cursor name. * * @return The maximum length of a cursor name. * @exception SQLException If an error occurs. */ int getMaxCursorNameLength() throws SQLException; /** * This method returns the maximum length of an index. * * @return The maximum length of an index. * @exception SQLException If an error occurs. */ int getMaxIndexLength() throws SQLException; /** * This method returns the maximum length of a schema name. * * @return The maximum length of a schema name. * @exception SQLException If an error occurs. */ int getMaxSchemaNameLength() throws SQLException; /** * This method returns the maximum length of a procedure name. * * @return The maximum length of a procedure name. * @exception SQLException If an error occurs. */ int getMaxProcedureNameLength() throws SQLException; /** * This method returns the maximum length of a catalog name. * * @return The maximum length of a catalog name. * @exception SQLException If an error occurs. */ int getMaxCatalogNameLength() throws SQLException; /** * This method returns the maximum size of a row in bytes. * * @return The maximum size of a row. * @exception SQLException If an error occurs. */ int getMaxRowSize() throws SQLException; /** * This method tests whether or not the maximum row size includes BLOB's * * @return <code>true</code> if the maximum row size includes BLOB's, * <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean doesMaxRowSizeIncludeBlobs() throws SQLException; /** * This method includes the maximum length of a SQL statement. * * @return The maximum length of a SQL statement. * @exception SQLException If an error occurs. */ int getMaxStatementLength() throws SQLException; /** * This method returns the maximum number of statements that can be * active at any time. * * @return The maximum number of statements that can be active at any time. * @exception SQLException If an error occurs. */ int getMaxStatements() throws SQLException; /** * This method returns the maximum length of a table name. * * @return The maximum length of a table name. * @exception SQLException If an error occurs. */ int getMaxTableNameLength() throws SQLException; /** * This method returns the maximum number of tables that may be referenced * in a SELECT statement. * * @return The maximum number of tables allowed in a SELECT statement. * @exception SQLException If an error occurs. */ int getMaxTablesInSelect() throws SQLException; /** * This method returns the maximum length of a user name. * * @return The maximum length of a user name. * @exception SQLException If an error occurs. */ int getMaxUserNameLength() throws SQLException; /** * This method returns the default transaction isolation level of the * database. * * @return The default transaction isolation level of the database. * @exception SQLException If an error occurs. * @see Connection */ int getDefaultTransactionIsolation() throws SQLException; /** * This method tests whether or not the database supports transactions. * * @return <code>true</code> if the database supports transactions, * <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsTransactions() throws SQLException; /** * This method tests whether or not the database supports the specified * transaction isolation level. * * @param level The transaction isolation level. * * @return <code>true</code> if the specified transaction isolation level * is supported, <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsTransactionIsolationLevel(int level) throws SQLException; /** * This method tests whether or not DDL and DML statements allowed within * the same transaction. * * @return <code>true</code> if DDL and DML statements are allowed in the * same transaction, <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsDataDefinitionAndDataManipulationTransactions() throws SQLException; /** * This method tests whether or not only DML statement are allowed * inside a transaction. * * @return <code>true</code> if only DML statements are allowed in * transactions, <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean supportsDataManipulationTransactionsOnly() throws SQLException; /** * This method tests whether or not a DDL statement will cause the * current transaction to be automatically committed. * * @return <code>true</code> if DDL causes an immediate transaction commit, * <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean dataDefinitionCausesTransactionCommit() throws SQLException; /** * This method tests whether or not DDL statements are ignored in * transactions. * * @return <code>true</code> if DDL statements are ignored in transactions, * <code>false</code> otherwise. * @exception SQLException If an error occurs. */ boolean dataDefinitionIgnoredInTransactions() throws SQLException; /** * This method returns a list of all the stored procedures matching the * specified pattern in the given schema and catalog. This is returned * a <code>ResultSet</code> with the following columns: * <p> * <ol> * <li>PROCEDURE_CAT - The catalog the procedure is in, which may be * <code>null</code>.</li> * <li>PROCEDURE_SCHEM - The schema the procedures is in, which may be * <code>null</code>.</li> * <li>PROCEDURE_NAME - The name of the procedure.</li> * <li>Unused</li> * <li>Unused</li> * <li>Unused</li> * <li>REMARKS - A description of the procedure</li> * <li>PROCEDURE_TYPE - Indicates the return type of the procedure, which * is one of the contstants defined in this class * (<code>procedureResultUnknown</code>, <code>procedureNoResult</code>, or * <code>procedureReturnsResult</code>).</li> * </ol> * * @param catalog The name of the catalog to return stored procedured from, * or "" to return procedures from all catalogs. * @param schemaPattern A schema pattern for the schemas to return stored * procedures from, or "" to return procedures from all schemas. * @param namePattern The pattern of procedures names to return. * @returns A <code>ResultSet</code> with all the requested procedures. * @exception SQLException If an error occurs. */ ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern) throws SQLException; /** * This method returns a list of the parameter and result columns for * the requested stored procedures. This is returned in the form of a * <code>ResultSet</code> with the following columns: * <p> * <ol> * <li>PROCEDURE_CAT - The catalog the procedure is in, which may be * <code>null</code>.</li> * <li>PROCEDURE_SCHEM - The schema the procedures is in, which may be * <code>null</code>.</li> * <li>PROCEDURE_NAME - The name of the procedure.</li> * <li>COLUMN_NAME - The name of the column</li> * <li>COLUMN_TYPE - The type of the column, which will be one of the * contants defined in this class (<code>procedureColumnUnknown</code>, * <code>procedureColumnIn</code>, <code>procedureColumnInOut</code>, * <code>procedureColumnOut</code>, <code>procedureColumnReturn</code>, * or <code>procedureColumnResult</code>).</li> * <li>DATA_TYPE - The SQL type of the column. This is one of the constants * defined in <code>Types</code>.</li> * <li>TYPE_NAME - The string name of the data type for this column.</li> * <li>PRECISION - The precision of the column.</li> * <li>LENGTH - The length of the column in bytes</li> * <li>SCALE - The scale of the column.</li> * <li>RADIX - The radix of the column.</li> * <li>NULLABLE - Whether or not the column is NULLABLE. This is one of * the constants defined in this class (<code>procedureNoNulls</code>, * <code>procedureNullable</code>, or <code>procedureNullableUnknown</code>)</li> * <li>REMARKS - A description of the column.</li> * </ol> * * @param catalog The name of the catalog to return stored procedured from, * or "" to return procedures from all catalogs. * @param schemaPattern A schema pattern for the schemas to return stored * procedures from, or "" to return procedures from all schemas. * @param namePattern The pattern of procedures names to return. * @param columnPattern The pattern of column names to return. * @returns A <code>ResultSet</code> with all the requested procedures. * @exception SQLException If an error occurs. */ ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException; /** * This method returns a list of the requested table as a * <code>ResultSet</code> with the following columns: * * <ol>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -