⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 databasemetadata.java

📁 java数据库源代码 请看看啊 提点宝贵的意见
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
     *     * @return the maximum number of characters allowed in a cursor name;     *      a result of zero means that there is no limit or the limit      *      is not known     * @exception SQLException if a database access error occurs     */    int getMaxCursorNameLength() throws SQLException;    /**     * Retrieves the maximum number of bytes this database allows for an      * index, including all of the parts of the index.     *     * @return the maximum number of bytes allowed; this limit includes the      *      composite of all the constituent parts of the index;     *      a result of zero means that there is no limit or the limit      *      is not known     * @exception SQLException if a database access error occurs     */    int getMaxIndexLength() throws SQLException;    /**     * Retrieves the maximum number of characters that this database allows in a     * schema name.     *     * @return the maximum number of characters allowed in a schema name;     *      a result of zero means that there is no limit or the limit      *      is not known     * @exception SQLException if a database access error occurs     */    int getMaxSchemaNameLength() throws SQLException;    /**     * Retrieves the maximum number of characters that this database allows in a     * procedure name.     *     * @return the maximum number of characters allowed in a procedure name;     *      a result of zero means that there is no limit or the limit      *      is not known     * @exception SQLException if a database access error occurs     */    int getMaxProcedureNameLength() throws SQLException;    /**     * Retrieves the maximum number of characters that this database allows in a     * catalog name.     *     * @return the maximum number of characters allowed in a catalog name;     *      a result of zero means that there is no limit or the limit      *      is not known     * @exception SQLException if a database access error occurs     */    int getMaxCatalogNameLength() throws SQLException;    /**     * Retrieves the maximum number of bytes this database allows in     * a single row.     *     * @return the maximum number of bytes allowed for a row; a result of      *         zero means that there is no limit or the limit is not known     * @exception SQLException if a database access error occurs     */    int getMaxRowSize() throws SQLException;    /**     * Retrieves whether the return value for the method      * <code>getMaxRowSize</code> includes the SQL data types      * <code>LONGVARCHAR</code> and <code>LONGVARBINARY</code>.     *     * @return <code>true</code> if so; <code>false</code> otherwise      * @exception SQLException if a database access error occurs     */    boolean doesMaxRowSizeIncludeBlobs() throws SQLException;    /**     * Retrieves the maximum number of characters this database allows in     * an SQL statement.     *     * @return the maximum number of characters allowed for an SQL statement;     *      a result of zero means that there is no limit or the limit      *      is not known     * @exception SQLException if a database access error occurs     */    int getMaxStatementLength() throws SQLException;    /**     * Retrieves the maximum number of active statements to this database     * that can be open at the same time.     *     * @return the maximum number of statements that can be open at one time;     *      a result of zero means that there is no limit or the limit      *      is not known     * @exception SQLException if a database access error occurs     */    int getMaxStatements() throws SQLException;    /**     * Retrieves the maximum number of characters this database allows in     * a table name.     *     * @return the maximum number of characters allowed for a table name;     *      a result of zero means that there is no limit or the limit      *      is not known     * @exception SQLException if a database access error occurs     */    int getMaxTableNameLength() throws SQLException;    /**     * Retrieves the maximum number of tables this database allows in a     * <code>SELECT</code> statement.     *     * @return the maximum number of tables allowed in a <code>SELECT</code>      *         statement; a result of zero means that there is no limit or      *         the limit is not known     * @exception SQLException if a database access error occurs     */    int getMaxTablesInSelect() throws SQLException;    /**     * Retrieves the maximum number of characters this database allows in     * a user name.     *     * @return the maximum number of characters allowed for a user name;     *      a result of zero means that there is no limit or the limit      *      is not known     * @exception SQLException if a database access error occurs     */    int getMaxUserNameLength() throws SQLException;    //----------------------------------------------------------------------    /**     * Retrieves this database's default transaction isolation level.  The     * possible values are defined in <code>java.sql.Connection</code>.     *     * @return the default isolation level      * @exception SQLException if a database access error occurs     * @see Connection     */    int getDefaultTransactionIsolation() throws SQLException;    /**     * Retrieves whether this database supports transactions. If not, invoking the     * method <code>commit</code> is a noop, and the isolation level is      * <code>TRANSACTION_NONE</code>.     *     * @return <code>true</code> if transactions are supported;      *         <code>false</code> otherwise      * @exception SQLException if a database access error occurs     */    boolean supportsTransactions() throws SQLException;    /**     * Retrieves whether this database supports the given transaction isolation level.     *     * @param level one of the transaction isolation levels defined in      *         <code>java.sql.Connection</code>     * @return <code>true</code> if so; <code>false</code> otherwise      * @exception SQLException if a database access error occurs     * @see Connection     */    boolean supportsTransactionIsolationLevel(int level)	throws SQLException;    /**     * Retrieves whether this database supports both data definition and      * data manipulation statements within a transaction.     *     * @return <code>true</code> if so; <code>false</code> otherwise      * @exception SQLException if a database access error occurs     */    boolean supportsDataDefinitionAndDataManipulationTransactions()	throws SQLException;    /**     * Retrieves whether this database supports only data manipulation      * statements within a transaction.     *     * @return <code>true</code> if so; <code>false</code> otherwise     * @exception SQLException if a database access error occurs     */    boolean supportsDataManipulationTransactionsOnly()	throws SQLException;    /**     * Retrieves whether a data definition statement within a transaction forces     * the transaction to commit.     *     * @return <code>true</code> if so; <code>false</code> otherwise      * @exception SQLException if a database access error occurs     */    boolean dataDefinitionCausesTransactionCommit()	throws SQLException;    /**     * Retrieves whether this database ignores a data definition statement      * within a transaction.     *     * @return <code>true</code> if so; <code>false</code> otherwise      * @exception SQLException if a database access error occurs     */    boolean dataDefinitionIgnoredInTransactions()	throws SQLException;    /**     * Retrieves a description of the stored procedures available in the given     * catalog.     * <P>     * Only procedure descriptions matching the schema and     * procedure name criteria are returned.  They are ordered by     * <code>PROCEDURE_SCHEM</code> and <code>PROCEDURE_NAME</code>.     *     * <P>Each procedure description has the the following columns:     *  <OL>     *	<LI><B>PROCEDURE_CAT</B> String => procedure catalog (may be <code>null</code>)     *	<LI><B>PROCEDURE_SCHEM</B> String => procedure schema (may be <code>null</code>)     *	<LI><B>PROCEDURE_NAME</B> String => procedure name     *  <LI> reserved for future use     *  <LI> reserved for future use     *  <LI> reserved for future use     *	<LI><B>REMARKS</B> String => explanatory comment on the procedure     *	<LI><B>PROCEDURE_TYPE</B> short => kind of procedure:     *      <UL>     *      <LI> procedureResultUnknown - May return a result     *      <LI> procedureNoResult - Does not return a result     *      <LI> procedureReturnsResult - Returns a result     *      </UL>     *  </OL>     *     * @param catalog a catalog name; must match the catalog name as it     *        is stored in the database; "" retrieves those without a catalog;     *        <code>null</code> means that the catalog name should not be used to narrow     *        the search     * @param schemaPattern a schema name pattern; must match the schema name     *        as it is stored in the database; "" retrieves those without a schema;     *        <code>null</code> means that the schema name should not be used to narrow     *        the search     * @param procedureNamePattern a procedure name pattern; must match the     *        procedure name as it is stored in the database      * @return <code>ResultSet</code> - each row is a procedure description      * @exception SQLException if a database access error occurs     * @see #getSearchStringEscape      */    ResultSet getProcedures(String catalog, String schemaPattern,			    String procedureNamePattern) throws SQLException;    /**     * Indicates that it is not known whether the procedure returns     * a result.     * <P>     * A possible value for column <code>PROCEDURE_TYPE</code> in the     * <code>ResultSet</code> object returned by the method     * <code>getProcedures</code>.     */    int procedureResultUnknown	= 0;    /**     * Indicates that the procedure does not return a result.     * <P>     * A possible value for column <code>PROCEDURE_TYPE</code> in the     * <code>ResultSet</code> object returned by the method     * <code>getProcedures</code>.     */    int procedureNoResult		= 1;    /**     * Indicates that the procedure returns a result.     * <P>     * A possible value for column <code>PROCEDURE_TYPE</code> in the     * <code>ResultSet</code> object returned by the method     * <code>getProcedures</code>.     */    int procedureReturnsResult	= 2;    /**     * Retrieves a description of the given catalog's stored procedure parameter     * and result columns.     *     * <P>Only descriptions matching the schema, procedure and     * parameter name criteria are returned.  They are ordered by     * PROCEDURE_SCHEM and PROCEDURE_NAME. Within this, the return value,     * if any, is first. Next are the parameter descriptions in call     * order. The column descriptions follow in column number order.     *     * <P>Each row in the <code>ResultSet</code> is a parameter description or     * column description with the following fields:     *  <OL>     *	<LI><B>PROCEDURE_CAT</B> String => procedure catalog (may be <code>null</code>)     *	<LI><B>PROCEDURE_SCHEM</B> String => procedure schema (may be <code>null</code>)     *	<LI><B>PROCEDURE_NAME</B> String => procedure name     *	<LI><B>COLUMN_NAME</B> String => column/parameter name      *	<LI><B>COLUMN_TYPE</B> Short => kind of column/parameter:     *      <UL>     *      <LI> procedureColumnUnknown - nobody knows     *      <LI> procedureColumnIn - IN parameter     *      <LI> procedureColumnInOut - INOUT parameter     *      <LI> procedureColumnOut - OUT parameter     *      <LI> procedureColumnReturn - procedure return value     *      <LI> procedureColumnResult - result column in <code>ResultSet</code>     *      </UL>     *  <LI><B>DATA_TYPE</B> int => SQL type from java.sql.Types     *	<LI><B>TYPE_NAME</B> String => SQL type name, for a UDT type the     *  type name is fully qualified     *	<LI><B>PRECISION</B> int => precision     *	<LI><B>LENGTH</B> int => length in bytes of data     *	<LI><B>SCALE</B> short => scale     *	<LI><B>RADIX</B> short => radix     *	<LI><B>NULLABLE</B> short => can it contain NULL.     *      <UL>     *      <LI> procedureNoNulls - does not allow NULL values     *      <LI> procedureNullable - allows NULL values     *      <LI> procedureNullableUnknown - nullability unknown     *      </UL>     *	<LI><B>REMARKS</B> String => comment describing parameter/column     *  </OL>     *     * <P><B>Note:</B> Some databases may not return the column     * descriptions for a procedure. Additional columns beyond     * REMARKS can be defined by the database.     *     * @param catalog a catalog name; must match the catalog name as it     *        is stored in the database; "" retrieves those without a catalog;     *        <code>null</code> means that the catalog name should not be used to narrow     *        the search     * @param schemaPattern a schema name pattern; must match the schema name     *        as it is stored in the database; "" retrieves those without a schema;     *        <code>null</code> means that the schema name should not be used to narrow     *        the search     * @param procedureNamePattern a procedure name pattern; must match the     *        procedure name as it is stored in the database      * @param columnNamePattern a column name pattern; must match the column name

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -