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

📄 databasemetadata.java

📁 derby database source code.good for you.
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
    public int getMaxTablesInSelect() throws SqlException {        checkForClosedConnection();        return getMetaDataInfoInt(getMaxTablesInSelect__);    }    private final static int getMaxUserNameLength__ = 87;    public int getMaxUserNameLength() throws SqlException {        checkForClosedConnection();        return getMetaDataInfoInt(getMaxUserNameLength__);    }    private final static int getDefaultTransactionIsolation__ = 88;    public int getDefaultTransactionIsolation() throws SqlException {        checkForClosedConnection();        return getMetaDataInfoInt(getDefaultTransactionIsolation__);    }    private final static int supportsTransactions__ = 89;    public boolean supportsTransactions() throws SqlException {        checkForClosedConnection();        return getMetaDataInfoBoolean(supportsTransactions__);    }    // Stored Procedure will return a String containing a    // comma seperated list of all supported levels    private final static int supportsTransactionIsolationLevel__ = 90;    public boolean supportsTransactionIsolationLevel(int level) throws SqlException {        checkForClosedConnection();        return getMetaDataInfoBooleanWithType(supportsTransactionIsolationLevel__, level);    }    private final static int supportsDataDefinitionAndDataManipulationTransactions__ = 91;    public boolean supportsDataDefinitionAndDataManipulationTransactions() throws SqlException {        checkForClosedConnection();        return getMetaDataInfoBoolean(supportsDataDefinitionAndDataManipulationTransactions__);    }    private final static int supportsDataManipulationTransactionsOnly__ = 92;    public boolean supportsDataManipulationTransactionsOnly() throws SqlException {        checkForClosedConnection();        return getMetaDataInfoBoolean(supportsDataManipulationTransactionsOnly__);    }    private final static int dataDefinitionCausesTransactionCommit__ = 93;    public boolean dataDefinitionCausesTransactionCommit() throws SqlException {        checkForClosedConnection();        return getMetaDataInfoBoolean(dataDefinitionCausesTransactionCommit__);    }    private final static int dataDefinitionIgnoredInTransactions__ = 94;    public boolean dataDefinitionIgnoredInTransactions() throws SqlException {        checkForClosedConnection();        return getMetaDataInfoBoolean(dataDefinitionIgnoredInTransactions__);    }    // Stored Procedure will return a String containing a    // comma seperated list of all the supported resultSet types    private final static int supportsResultSetType__ = 95;    public boolean supportsResultSetType(int type) throws SqlException {        checkForClosedConnection();        return getMetaDataInfoBooleanWithType(supportsResultSetType__, type);    }    private final static int supportsResultSetConcurrency__ = 96;    public boolean supportsResultSetConcurrency(int type, int concurrency) throws SqlException {        checkForClosedConnection();        return getMetaDataInfoInt_SupportsResultSetConcurrency(supportsResultSetConcurrency__, type, concurrency);    }    // Stored Procedure will return a String containing a    // comma seperated list of all the supported result Set types    private final static int ownUpdatesAreVisible__ = 97;    public boolean ownUpdatesAreVisible(int type) throws SqlException {        checkForClosedConnection();        return getMetaDataInfoBooleanWithType(ownUpdatesAreVisible__, type);    }    // Stored Procedure will return a String containing a    // comma seperated list of all the supported result Set types    private final static int ownDeletesAreVisible__ = 98;    public boolean ownDeletesAreVisible(int type) throws SqlException {        checkForClosedConnection();        return getMetaDataInfoBooleanWithType(ownDeletesAreVisible__, type);    }    // Stored Procedure will return a String containing a    // comma seperated list all the supported result Set types    private final static int ownInsertsAreVisible__ = 99;    public boolean ownInsertsAreVisible(int type) throws SqlException {        checkForClosedConnection();        return getMetaDataInfoBooleanWithType(ownInsertsAreVisible__, type);    }    // Stored Procedure will return a String containing a    // comma seperated list of all the supported result Set types    private final static int othersUpdatesAreVisible__ = 100;    public boolean othersUpdatesAreVisible(int type) throws SqlException {        checkForClosedConnection();        return getMetaDataInfoBooleanWithType(othersUpdatesAreVisible__, type);    }    // Stored Procedure will return a String containing a    // comma seperated list of all the supported result Set types    private final static int othersDeletesAreVisible__ = 101;    public boolean othersDeletesAreVisible(int type) throws SqlException {        checkForClosedConnection();        return getMetaDataInfoBooleanWithType(othersDeletesAreVisible__, type);    }    // Stored Procedure will return a String containing a    // comma seperated list of all the supported result Set types    private final static int othersInsertsAreVisible__ = 102;    public boolean othersInsertsAreVisible(int type) throws SqlException {        checkForClosedConnection();        return getMetaDataInfoBooleanWithType(othersInsertsAreVisible__, type);    }    // Stored Procedure will return a String containing a    // comma seperated list of all the supported result Set types    private final static int updatesAreDetected__ = 103;    public boolean updatesAreDetected(int type) throws SqlException {        checkForClosedConnection();        return getMetaDataInfoBooleanWithType(updatesAreDetected__, type);    }    // Stored Procedure will return a String containing a    // comma seperated list of all the supported result Set types    private final static int deletesAreDetected__ = 104;    public boolean deletesAreDetected(int type) throws SqlException {        checkForClosedConnection();        return getMetaDataInfoBooleanWithType(deletesAreDetected__, type);    }    // Stored Procedure will return a String containing a    // comma seperated list of all the supported result Set types    private final static int insertsAreDetected__ = 105;    public boolean insertsAreDetected(int type) throws SqlException {        checkForClosedConnection();        return getMetaDataInfoBooleanWithType(insertsAreDetected__, type);    }    private final static int supportsBatchUpdates__ = 106;    public boolean supportsBatchUpdates() throws SqlException {        checkForClosedConnection();        return getMetaDataInfoBoolean(supportsBatchUpdates__);    }    public boolean supportsSavepoints() throws SqlException {        checkForClosedConnection();        if (productLevel_.greaterThanOrEqualTo(5, 2, 0)) {            return true;        }        return false;    }    // start tagging all abstract methods with an underscore like this !!    abstract public String getURL_() throws SqlException;    public String getURL() throws SqlException {        checkForClosedConnection();        return getURL_();    }    public String getUserName() throws SqlException {        checkForClosedConnection();        return connection_.user_;    }    public boolean isReadOnly() throws SqlException {        return false;    }    public String getDatabaseProductName() throws SqlException {        checkForClosedConnection();        return productLevel_.databaseProductName_;    }    public String getDatabaseProductVersion() throws SqlException {        checkForClosedConnection();        return productLevel_.databaseProductVersion_;    }    public String getDriverName() throws SqlException {        checkForClosedConnection();        return Configuration.dncDriverName;    }    public String getDriverVersion() throws SqlException {        checkForClosedConnection();        return Version.getDriverVersion();    }    // JDBC signature also does not throw SqlException, so we don't check for closed connection.    public int getDriverMajorVersion() {        return Version.getMajorVersion();    }    // JDBC signature also does not throw SqlException, so we don't check for closed connection.    public int getDriverMinorVersion() {        return Version.getMinorVersion();    }    //All JDBC Drivers must return false for this method. For this reason we choose    //to return FALSE    public boolean supportsMixedCaseIdentifiers() throws SqlException {        checkForClosedConnection();        return false;    }    public boolean supportsMixedCaseQuotedIdentifiers() throws SqlException {        checkForClosedConnection();        return true;    }    public String getIdentifierQuoteString() throws SqlException {        checkForClosedConnection();        return "\"";    }    public boolean supportsColumnAliasing() throws SqlException {        checkForClosedConnection();        return true;    }    public boolean nullPlusNonNullIsNull() throws SqlException {        checkForClosedConnection();        return true;    }    public boolean supportsTableCorrelationNames() throws SqlException {        checkForClosedConnection();        return true;    }    public boolean supportsLikeEscapeClause() throws SqlException {        checkForClosedConnection();        return true;    }    public boolean supportsNonNullableColumns() throws SqlException {        checkForClosedConnection();        return true;    }    public boolean supportsMinimumSQLGrammar() throws SqlException {        checkForClosedConnection();        return true;    }    public boolean supportsANSI92EntryLevelSQL() throws SqlException {        checkForClosedConnection();        return true;    }    public boolean supportsSubqueriesInExists() throws SqlException {        checkForClosedConnection();        return true;    }    public boolean supportsSubqueriesInIns() throws SqlException {        checkForClosedConnection();        return true;    }    public boolean supportsSubqueriesInQuantifieds() throws SqlException {        checkForClosedConnection();        return true;    }    public boolean supportsCorrelatedSubqueries() throws SqlException {        checkForClosedConnection();        return true;    }    //------------------------catalog query methods follow--------------------------------------------    // call stored procedure SQLProcedures    // SYSIBM.SQLProcedures(    //              CatalogName varchar(128),    //              SchemaName  varchar(128),    //              ProcName    varchar(128),    //              Options     varchar(4000))    //    public java.sql.ResultSet getProcedures(String catalog,                                            String schemaPattern,                                            String procedureNamePattern) throws SqlException {        synchronized (connection_) {            if (agent_.loggingEnabled()) {                agent_.logWriter_.traceEntry(this, "getProcedures", catalog, schemaPattern, procedureNamePattern);            }            return getProceduresX(catalog, schemaPattern, procedureNamePattern);        }    }    private ResultSet getProceduresX(String catalog,                                     String schemaPattern,                                     String procedureNamePattern) throws SqlException {        checkForClosedConnection();        ;        PreparedStatement cs = prepareMetaDataQuery("SYSIBM.SQLPROCEDURES(?,?,?,?)");        cs.setStringX(1, catalog);        cs.setStringX(2, schemaPattern);        cs.setStringX(3, procedureNamePattern);        cs.setStringX(4, getOptions());        lastGetProceduresResultSet_ = executeCatalogQuery(cs);        return lastGetProceduresResultSet_;    }    // call stored procedure SQLProcedureCols    // SYSIBM.SQLProcedureCols(    //              CatalogName varchar(128),    //              SchemaName  varchar(128),    //              ProcName    varchar(128),    //              ParamName   varchar(128),    //              Options     varchar(4000))    //    public java.sql.ResultSet getProcedureColumns(String catalog,                                                  String schemaPattern,                                                  String procedureNamePattern,                                                  String columnNamePattern) throws SqlException {        synchronized (connection_) {            if (agent_.loggingEnabled()) {                agent_.logWriter_.traceEntry(this, "getProcedureColumns", catalog, schemaPattern, procedureNamePattern, columnNamePattern);            }            return getProcedureColumnsX(catalog, schemaPattern, procedureNamePattern, columnNamePattern);

⌨️ 快捷键说明

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