@Override public ResultSet getSchemas(String catalog, String schemaPattern) throws SQLException { checkOpen(); return super.getSchemas(catalog, schemaPattern); }
@Override public int getResultSetHoldability() { // Can't throw any SQLException because Avatica's getResultSetHoldability() // is missing "throws SQLException". try { checkOpen(); } catch (SQLException e) { throw new RuntimeException(e.getMessage(), e); } return super.getResultSetHoldability(); }
@Override public boolean allProceduresAreCallable() throws SQLException { checkOpen(); return super.allProceduresAreCallable(); }
public boolean storesMixedCaseIdentifiers() throws SQLException { return !caseSensitive() && unquotedCasing() == Casing.UNCHANGED; }
public boolean storesMixedCaseQuotedIdentifiers() throws SQLException { return !caseSensitive() && quotedCasing() == Casing.UNCHANGED; }
@Override public boolean dataDefinitionIgnoredInTransactions() throws SQLException { checkOpen(); return super.dataDefinitionIgnoredInTransactions(); }
@Override public boolean autoCommitFailureClosesAllResultSets() throws SQLException { checkOpen(); return super.autoCommitFailureClosesAllResultSets(); }
@Override public boolean dataDefinitionCausesTransactionCommit() throws SQLException { checkOpen(); return super.dataDefinitionCausesTransactionCommit(); }
@Override public boolean doesMaxRowSizeIncludeBlobs() throws SQLException { checkOpen(); if (!getServerMetaSupported()) { return super.doesMaxRowSizeIncludeBlobs(); } return getServerMeta().getBlobIncludedInMaxRowSize(); }
@Override public boolean allTablesAreSelectable() throws SQLException { checkOpen(); if (!getServerMetaSupported()) { return super.allTablesAreSelectable(); } return getServerMeta().getAllTablesSelectable(); }
@Override public boolean deletesAreDetected(int type) throws SQLException { checkOpen(); try { return super.deletesAreDetected(type); } catch (RuntimeException e) { if ("todo: implement this method".equals(e.getMessage())) { throw new SQLFeatureNotSupportedException( "deletesAreDetected(int) is not supported", e); } else { throw new SQLException(e.getMessage(), e); } } }
public boolean storesMixedCaseIdentifiers() throws SQLException { return !caseSensitive() && unquotedCasing() == Casing.UNCHANGED; }
public boolean storesMixedCaseQuotedIdentifiers() throws SQLException { return !caseSensitive() && quotedCasing() == Casing.UNCHANGED; }
@Override public boolean dataDefinitionIgnoredInTransactions() throws SQLException { throwIfClosed(); return super.dataDefinitionIgnoredInTransactions(); }
@Override public boolean autoCommitFailureClosesAllResultSets() throws SQLException { throwIfClosed(); return super.autoCommitFailureClosesAllResultSets(); }
@Override public boolean dataDefinitionCausesTransactionCommit() throws SQLException { throwIfClosed(); return super.dataDefinitionCausesTransactionCommit(); }
@Override public boolean doesMaxRowSizeIncludeBlobs() throws SQLException { throwIfClosed(); if (!getServerMetaSupported()) { return super.doesMaxRowSizeIncludeBlobs(); } return getServerMeta().getBlobIncludedInMaxRowSize(); }
@Override public boolean allTablesAreSelectable() throws SQLException { throwIfClosed(); if (!getServerMetaSupported()) { return super.allTablesAreSelectable(); } return getServerMeta().getAllTablesSelectable(); }
@Override public boolean deletesAreDetected(int type) throws SQLException { throwIfClosed(); try { return super.deletesAreDetected(type); } catch (RuntimeException e) { if ("todo: implement this method".equals(e.getMessage())) { throw new SQLFeatureNotSupportedException( "deletesAreDetected(int) is not supported", e); } else { throw new SQLException(e.getMessage(), e); } } }
@Override public ResultSet getSchemas() throws SQLException { checkOpen(); try { return super.getSchemas(); } catch(DrillRuntimeException e) { Throwables.throwIfInstanceOf(e.getCause(), SQLException.class); throw e; } }