📄 axiondatabasemetadata.java
字号:
return false; } /** * Returns <code>false</code>, since Axion currently * doesn't treat Data Definition Language (DDL) statements * like CREATE or DROP transactionally. */ public boolean dataDefinitionIgnoredInTransactions() throws SQLException { return false; } /** * Returns <code>false</code> since LOB sizes are not * counted in the {@link #getMaxRowSize maximum row size} * (which is unbounded anyway). */ public boolean doesMaxRowSizeIncludeBlobs() throws SQLException { return false; } /** * Returns <code>false</code>, since the driver does not * require local files */ public boolean usesLocalFiles() throws SQLException { return false; // XXX ??? XXX } /** * Returns <code>false</code>, since the driver does not * require local files */ public boolean usesLocalFilePerTable() throws SQLException { return false; } /** Returns <code>true</code>. */ public boolean supportsExpressionsInOrderBy() throws SQLException { return true; } /** Returns <code>false</code> since this feature is currently not supported. */ public boolean supportsCorrelatedSubqueries() throws SQLException { return false; // we don't support any subqueries } /** Returns <code>false</code> since this feature is currently not supported. */ public boolean supportsPositionedDelete() throws SQLException { return false; } /** Returns <code>false</code> since this feature is currently not supported. */ public boolean supportsPositionedUpdate() throws SQLException { return false; } /** Returns <code>0</code> since named cursors are not supported. */ public int getMaxCursorNameLength() throws SQLException { return 0; } /** Returns <code>" "</code> since quoted identifiers are not supported currently. */ public String getIdentifierQuoteString() throws SQLException { return " "; // XXX FIX ME XXX: should support " } /** Returns <code>true</code> iff <i>type</i> is {@link ResultSet#TYPE_FORWARD_ONLY}. */ public boolean supportsResultSetType(int type) throws SQLException { switch(type) { case ResultSet.TYPE_FORWARD_ONLY: return true; default: return false; } } //---------------------------- /** Currently not supported. */ public String getNumericFunctions() throws SQLException { throw new SQLException("getNumericFunctions() is not supported"); } /** Currently not supported. */ public String getSystemFunctions() throws SQLException { throw new SQLException("getSystemFunctions() is not supported"); } /** Currently not supported. */ public String getSQLKeywords() throws SQLException { throw new SQLException("getSQLKeywords() is not supported"); } /** Currently not supported. */ public String getSearchStringEscape() throws SQLException { throw new SQLException("getSearchStringEscape() is not supported"); } /** Currently not supported. */ public String getStringFunctions() throws SQLException { throw new SQLException("getStringFunctions() is not supported"); } /** Currently not supported. */ public String getTimeDateFunctions() throws SQLException { throw new SQLException("getTimeDateFunctions() is not supported"); } /** Currently not supported. */ public String getExtraNameCharacters() throws SQLException { throw new SQLException("getExtraNameCharacters() is not supported"); } /** Currently not supported. */ public boolean supportsCoreSQLGrammar() throws SQLException { throw new SQLException("supportsCoreSQLGrammar() is not supported"); } /** Currently not supported. */ public boolean supportsANSI92EntryLevelSQL() throws SQLException { throw new SQLException("supportsANSI92EntryLevelSQL() is not supported"); } /** Currently not supported. */ public boolean supportsLikeEscapeClause() throws SQLException { throw new SQLException("supportsLikeEscapeClause() is not supported"); } /** Currently not supported. */ public boolean supportsSchemasInTableDefinitions() throws SQLException { throw new SQLException("supportsSchemasInTableDefinitions() is not supported"); } /** Currently not supported. */ public boolean supportsExtendedSQLGrammar() throws SQLException { throw new SQLException("supportsExtendedSQLGrammar() is not supported"); } /** Currently not supported. */ public boolean supportsSchemasInPrivilegeDefinitions() throws SQLException { throw new SQLException("supportsSchemasInPrivilegeDefinitions() is not supported"); } /** Currently not supported. */ public boolean supportsANSI92IntermediateSQL() throws SQLException { throw new SQLException("supportsANSI92IntermediateSQL() is not supported"); } /** Currently not supported. */ public boolean supportsANSI92FullSQL() throws SQLException { throw new SQLException("supportsANSI92FullSQL() is not supported"); } /** Currently not supported. */ public boolean supportsIntegrityEnhancementFacility() throws SQLException { throw new SQLException("supportsIntegrityEnhancementFacility() is not supported"); } /** Currently not supported. */ public String getSchemaTerm() throws SQLException { throw new SQLException("getSchemaTerm() is not supported"); } /** Currently not supported. */ public String getProcedureTerm() throws SQLException { throw new SQLException("getProcedureTerm() is not supported"); } /** Currently not supported. */ public String getCatalogTerm() throws SQLException { throw new SQLException("getCatalogTerm() is not supported"); } /** Currently not supported. */ public boolean isCatalogAtStart() throws SQLException { throw new SQLException("isCatalogAtStart() is not supported"); } /** Currently not supported. */ public String getCatalogSeparator() throws SQLException { throw new SQLException("getCatalogSeparator() is not supported"); } /** Currently not supported. */ public ResultSet getProcedures(String catalog, String schemaPattern, String procedureNamePattern) throws SQLException { throw new SQLException("getProcedures() is not supported"); } /** Currently not supported. */ public ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException { throw new SQLException("getProcedureColumns() is not supported"); } /** Currently not supported. */ public ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException { throw new SQLException("getColumnPrivileges() is not supported"); } /** Currently not supported. */ public ResultSet getTablePrivileges(String catalog, String schemaPattern, String tableNamePattern) throws SQLException { throw new SQLException("getTablePrivileges() is not supported"); } /** Currently not supported. */ public ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException { throw new SQLException("getBestRowIdentifier() is not supported"); } /** Currently not supported. */ public ResultSet getVersionColumns(String catalog, String schema, String table) throws SQLException { throw new SQLException("getVersionColumns() is not supported"); } /** Currently not supported. */ public ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException { throw new SQLException("getPrimaryKeys() is not supported"); // XXX IMPLEMENT ME XXX } /** Currently not supported. */ public ResultSet getImportedKeys(String catalog, String schema, String table) throws SQLException { throw new SQLException("getImportedKeys() is not supported"); } /** Currently not supported. */ public ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException { throw new SQLException("getExportedKeys() is not supported"); } /** Currently not supported. */ public ResultSet getCrossReference(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException { throw new SQLException("getCrossReference() is not supported"); } /** Currently not supported. */ public ResultSet getIndexInfo(String catalog, String schema, String table, boolean unique, boolean approximate) throws SQLException { throw new SQLException("getIndexInfo() is not supported"); // XXX IMPLEMENT ME XXX } /** Currently not supported. */ public boolean supportsResultSetConcurrency(int type, int concurrency) throws SQLException { throw new SQLException("supportsResultSetConcurrency() is not supported"); } /** Currently not supported. */ public boolean ownUpdatesAreVisible(int type) throws SQLException { throw new SQLException("ownUpdatesAreVisible() is not supported"); } /** Currently not supported. */ public boolean ownDeletesAreVisible(int type) throws SQLException { throw new SQLException("ownDeletesAreVisible() is not supported"); } /** Currently not supported. */ public boolean ownInsertsAreVisible(int type) throws SQLException { throw new SQLException("ownInsertsAreVisible() is not supported"); } /** Currently not supported. */ public boolean othersUpdatesAreVisible(int type) throws SQLException { throw new SQLException("othersUpdatesAreVisible() is not supported"); } /** Currently not supported. */ public boolean othersDeletesAreVisible(int type) throws SQLException { throw new SQLException("othersDeletesAreVisible() is not supported"); } /** Currently not supported. */ public boolean othersInsertsAreVisible(int type) throws SQLException { throw new SQLException("othersInsertsAreVisible() is not supported"); } /** Currently not supported. */ public boolean updatesAreDetected(int type) throws SQLException { throw new SQLException("updatesAreDetected() is not supported"); } /** Currently not supported. */ public boolean deletesAreDetected(int type) throws SQLException { throw new SQLException("deletesAreDetected() is not supported"); } /** Currently not supported. */ public boolean insertsAreDetected(int type) throws SQLException { throw new SQLException("insertsAreDetected() is not supported"); } /** Currently not supported. */ public ResultSet getUDTs(String catalog, String schemaPattern, String typeNamePattern, int[] types) throws SQLException { throw new SQLException("getUDTs() is not supported"); } private AxionConnection _connection = null; private Database _db = null; private static final String AXION_VERSION = "1.0M2"; // XXX CHANGE ME ON RELEASE XXX private static final int DB_MAJOR_VERSION = 0; private static final int DB_MINOR_VERSION = 2; private static final Log _log = LogFactory.getLog(AxionDatabaseMetaData.class); // JDBC 3/JDK 1.4 methods public int getDatabaseMajorVersion() throws SQLException { return DB_MAJOR_VERSION; } public int getDatabaseMinorVersion() throws SQLException { return DB_MINOR_VERSION; } /** Always empty, super tables are currenlty not supported. */ public ResultSet getSuperTables(String arg0, String arg1, String arg2) throws SQLException { return AxionResultSet.createEmptyResultSet(); } /** Always empty, super types are currenlty not supported. */ public ResultSet getSuperTypes(String arg0, String arg1, String arg2) throws SQLException { return AxionResultSet.createEmptyResultSet(); } /** Currently always false. */ public boolean supportsGetGeneratedKeys() throws SQLException { return false; } /** Currently always false. */ public boolean supportsMultipleOpenResults() throws SQLException { return false; // per the javadoc, this refers to CallableStatements, which we don't support at all } /** Currently always false. */ public boolean supportsNamedParameters() throws SQLException { return false; // per the javadoc, this refers to CallableStatements, which we don't support at all } /** Currently always false. */ public boolean supportsSavepoints() throws SQLException { return false; } /** Currently always false. */ public boolean supportsStatementPooling() throws SQLException { return false; } /** Currently unsupported. */ public ResultSet getAttributes(String arg0, String arg1, String arg2, String arg3) throws SQLException { throw new UnsupportedOperationException("getAttributes is currently not supported"); } /** Currently unsupported. */ public int getJDBCMajorVersion() throws SQLException { throw new SQLException("getJDBCMajorVersion is currently not supported"); } /** Currently unsupported. */ public int getJDBCMinorVersion() throws SQLException { throw new SQLException("getJDBCMinorVersion is currently not supported"); } /** Currently unsupported. */ public int getResultSetHoldability() throws SQLException { throw new SQLException("getResultSetHoldability is currently not supported"); } /** Currently unsupported. */ public int getSQLStateType() throws SQLException { throw new SQLException("getSQLStateType is currently not supported"); } /** Currently unsupported. */ public boolean locatorsUpdateCopy() throws SQLException { throw new SQLException("locatorsUpdateCopy is currently not supported"); } /** Currently unsupported. */ public boolean supportsResultSetHoldability(int arg0) throws SQLException { throw new SQLException("supportsResultSetHoldability is currently not supported"); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -