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

📄 simpletextdatabasemetadata.java

📁 codebook!
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
    //-----------------------------------------------------------------------    public boolean supportsSubqueriesInComparisons()        throws SQLException    {        // The SimpleText driver does not support subqueries        return false;    }    //-----------------------------------------------------------------------    // supportsSubqueriesInExists - JDBC API    // Are subqueries in exists expressions supported?    //    // A JDBC compliant driver always returns true.    //-----------------------------------------------------------------------    public boolean supportsSubqueriesInExists()        throws SQLException    {        // The SimpleText driver does not support subqueries        return false;    }    //-----------------------------------------------------------------------    // supportsSubqueriesInIns - JDBC API    // Are subqueries in "in" statements supported?    //    // A JDBC compliant driver always returns true.    //-----------------------------------------------------------------------    public boolean supportsSubqueriesInIns()        throws SQLException    {        // The SimpleText driver does not support subqueries        return false;    }    //-----------------------------------------------------------------------    // supportsSubqueriesInQuantifieds - JDBC API    // Are subqueries in quantified expressions supported?    //    // A JDBC compliant driver always returns true.    //-----------------------------------------------------------------------    public boolean supportsSubqueriesInQuantifieds()        throws SQLException    {        // The SimpleText driver does not support subqueries        return false;    }    //-----------------------------------------------------------------------    // supportsCorrelatedSubqueries - JDBC API    // Are correlated subqueries supported?    //    // A JDBC compliant driver always returns true.    //-----------------------------------------------------------------------    public boolean supportsCorrelatedSubqueries()        throws SQLException    {        // The SimpleText driver does not support subqueries        return false;    }    //-----------------------------------------------------------------------    // supportsUnion - JDBC API    // Is SQL UNION supported?    //    // A JDBC compliant driver always returns true.    //-----------------------------------------------------------------------    public boolean supportsUnion()        throws SQLException    {        // The SimpleText driver does not support unions        return false;    }    //-----------------------------------------------------------------------    // supportsUnionAll - JDBC API    // Is SQL UNION ALL supported?    //    // A JDBC compliant driver always returns true.    //-----------------------------------------------------------------------    public boolean supportsUnionAll()        throws SQLException    {        // The SimpleText driver does not support unions        return false;    }    //-----------------------------------------------------------------------    // supportsOpenCursorsAcrossCommit - JDBC API    // Can cursors remain open across commits?    //-----------------------------------------------------------------------    public boolean supportsOpenCursorsAcrossCommit()        throws SQLException    {        // The SimpleText driver does not support transactions; it is        // always in auto-commit mode.  The cursor remains open after        // a transaction is auto-committed        return true;    }    //-----------------------------------------------------------------------    // supportsOpenCursorsAcrossRollback - JDBC API    // Can cursors remain open across rollbacks?    //-----------------------------------------------------------------------    public boolean supportsOpenCursorsAcrossRollback()        throws SQLException    {        // The SimpleText driver does not support transactions; it is        // always in auto-commit mode.  The cursor remains open after        // a transaction is auto-committed.  A rollback has no effect.        return true;    }    //-----------------------------------------------------------------------    // supportsOpenStatementsAcrossCommit - JDBC API    // Can statements remain open across commits?    //-----------------------------------------------------------------------    public boolean supportsOpenStatementsAcrossCommit()        throws SQLException    {        // The SimpleText driver does not support transactions; it is        // always in auto-commit mode.  The statement remains open after        // a transaction is auto-committed        return true;    }    //-----------------------------------------------------------------------    // supportsOpenStatementsAcrossRollback - JDBC API    // Can statements remain open across rollbacks?    //-----------------------------------------------------------------------    public boolean supportsOpenStatementsAcrossRollback()        throws SQLException    {        // The SimpleText driver does not support transactions; it is        // always in auto-commit mode.  The statement remains open after        // a transaction is auto-committed.  A rollback has no effect.        return true;    }    //-----------------------------------------------------------------------    // getMaxBinaryLiteralLength - JDBC API    // How many hex characters can you have in an inline binary literal?    //-----------------------------------------------------------------------    public int getMaxBinaryLiteralLength()        throws SQLException    {        // The SimpleText driver does not have a limit.  0 indicates no        // limit, or the limit is not known.        return 0;    }    //-----------------------------------------------------------------------    // getMaxCharLiteralLength - JDBC API    // What's the max length for a character literal?    //-----------------------------------------------------------------------    public int getMaxCharLiteralLength()        throws SQLException    {        // The SimpleText driver does not have a limit.  0 indicates no        // limit, or the limit is not known.        return 0;    }    //-----------------------------------------------------------------------    // getMaxColumnNameLength - JDBC API    // What's the limit on column name length?    //-----------------------------------------------------------------------    public int getMaxColumnNameLength()        throws SQLException    {        return SimpleTextDefine.MAX_COLUMN_NAME_LEN;    }    //-----------------------------------------------------------------------    // getMaxColumnsInGroupBy - JDBC API    // What's the maximum number of columns in a "GROUP BY" clause?    //-----------------------------------------------------------------------    public int getMaxColumnsInGroupBy()        throws SQLException    {        // The SimpleText driver does not support GROUP BY        return 0;    }    //-----------------------------------------------------------------------    // getMaxColumnsInIndex - JDBC API    // What's the maximum number of columns allowed in an index?    //-----------------------------------------------------------------------    public int getMaxColumnsInIndex()        throws SQLException    {        // The SimpleText driver does not support indexes        return 0;    }    //-----------------------------------------------------------------------    // getMaxColumnsInOrderBy - JDBC API    // What's the maximum number of columns in an "ORDER BY" clause?    //-----------------------------------------------------------------------    public int getMaxColumnsInOrderBy()        throws SQLException    {        // The SimpleText driver does not support ORDER BY        return 0;    }    //-----------------------------------------------------------------------    // getMaxColumnsInSelect - JDBC API    // What's the maximum number of columns in a "SELECT" list?    //-----------------------------------------------------------------------    public int getMaxColumnsInSelect()        throws SQLException    {        // The SimpleText driver does not have a limit.  0 indicates no        // limit, or the limit is not known.        return 0;    }    //-----------------------------------------------------------------------    // getMaxColumnsInTable - JDBC API    // What's maximum number of columns in a table?    //-----------------------------------------------------------------------    public int getMaxColumnsInTable()        throws SQLException    {        return SimpleTextDefine.MAX_COLUMNS_IN_TABLE;    }    //-----------------------------------------------------------------------    // getMaxConnections - JDBC API    // How many active connections can we have at a time to this database?    //-----------------------------------------------------------------------    public int getMaxConnections()        throws SQLException    {        // The SimpleText driver does not have a limit.  0 indicates no        // limit, or the limit is not known.        return 0;    }    //-----------------------------------------------------------------------    // getMaxCursorNameLength - JDBC API    // What's the maximum cursor name length?    //-----------------------------------------------------------------------    public int getMaxCursorNameLength()        throws SQLException    {        // The SimpleText driver does not support named cursors        return 0;    }    //-----------------------------------------------------------------------    // getMaxIndexLength - JDBC API    // What's the maximum length of an index (in bytes)?    //-----------------------------------------------------------------------    public int getMaxIndexLength()        throws SQLException    {        // The SimpleText driver does not support indexes        return 0;    }    //-----------------------------------------------------------------------    // getMaxSchemaNameLength - JDBC API    // What's the maximum length allowed for a schema name?    //-----------------------------------------------------------------------    public int getMaxSchemaNameLength()        throws SQLException    {        // The SimpleText driver does not support schemas        return 0;    }    //-----------------------------------------------------------------------    // getMaxProcedureNameLength - JDBC API    // What's the maximum length of a procedure name?    //-----------------------------------------------------------------------    public int getMaxProcedureNameLength()        throws SQLException    {        // The SimpleText driver does not support stored procedures        return 0;    }    //-----------------------------------------------------------------------    // getMaxCatalogNameLength - JDBC API    // What's the maximum length of a catalog name?    //-----------------------------------------------------------------------    public int getMaxCatalogNameLength()        throws SQLException    {        return SimpleTextDefine.MAX_CATALOG_NAME_LEN;    }    //-----------------------------------------------------------------------    // getMaxRowSize - JDBC API    // What's the maximum length of a single row?    //-----------------------------------------------------------------------    public int getMaxRowSize()        throws SQLException    {        // The SimpleText driver does not have a limit.  0 indicates no        // limit, or the limit is not known.        return 0;    }    //-----------------------------------------------------------------------    // doesMaxRowSizeIncludeBlobs - JDBC API    // Did getMaxRowSize() include LONGVARCHAR and LONGVARBINARY    // blobs?    //-----------------------------------------------------------------------    public boolean doesMaxRowSizeIncludeBlobs()        throws SQLException    {        return false;    }    //-----------------------------------------------------------------------    // getMaxStatementLength - JDBC API    // What's the maximum length of a SQL statement?    //-----------------------------------------------------------------------    public int getMaxStatementLength()        throws SQLException    {        // The SimpleText driver does not have a limit.  0 indicates no        // limit, or the limit is not known.        return 0;

⌨️ 快捷键说明

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