List of usage examples for java.sql SQLFeatureNotSupportedException SQLFeatureNotSupportedException
public SQLFeatureNotSupportedException(Throwable cause)
SQLFeatureNotSupportedException
object with a given cause
. From source file:org.apache.hive.jdbc.HiveStatement.java
@Override public void addBatch(String sql) throws SQLException { throw new SQLFeatureNotSupportedException("Method not supported"); }
From source file:com.facebook.presto.jdbc.PrestoConnection.java
@Override public void setTransactionIsolation(int level) throws SQLException { checkOpen();/*from w w w . j av a2 s.c om*/ throw new SQLFeatureNotSupportedException("Transactions are not yet supported"); }
From source file:org.apache.hive.jdbc.HiveStatement.java
@Override public void clearBatch() throws SQLException { throw new SQLFeatureNotSupportedException("Method not supported"); }
From source file:com.facebook.presto.jdbc.PrestoConnection.java
@Override public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException { checkResultSet(resultSetType, resultSetConcurrency); throw new SQLFeatureNotSupportedException("prepareCall"); }
From source file:com.facebook.presto.jdbc.PrestoConnection.java
@Override public Map<String, Class<?>> getTypeMap() throws SQLException { throw new SQLFeatureNotSupportedException("getTypeMap"); }
From source file:org.apache.jena.jdbc.remote.connections.RemoteEndpointConnection.java
@Override protected JenaStatement createStatementInternal(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException { if (this.isClosed()) throw new SQLException("Cannot create a statement after the connection was closed"); if (resultSetType == ResultSet.TYPE_SCROLL_SENSITIVE) throw new SQLFeatureNotSupportedException( "Remote endpoint backed connection do not support scroll sensitive result sets"); if (resultSetConcurrency != ResultSet.CONCUR_READ_ONLY) throw new SQLFeatureNotSupportedException( "Remote endpoint backed connections only support read-only result sets"); return new RemoteEndpointStatement(this, this.client, resultSetType, ResultSet.FETCH_FORWARD, 0, resultSetHoldability);//w ww .jav a 2s .c om }
From source file:com.facebook.presto.jdbc.PrestoConnection.java
@Override public void setTypeMap(Map<String, Class<?>> map) throws SQLException { throw new SQLFeatureNotSupportedException("setTypeMap"); }
From source file:com.facebook.presto.jdbc.PrestoConnection.java
@Override public void setHoldability(int holdability) throws SQLException { checkOpen();// w w w. jav a 2 s. co m if (holdability != ResultSet.HOLD_CURSORS_OVER_COMMIT) { throw new SQLFeatureNotSupportedException("Changing holdability not supported"); } }
From source file:com.facebook.presto.jdbc.PrestoConnection.java
@Override public Savepoint setSavepoint() throws SQLException { throw new SQLFeatureNotSupportedException("setSavepoint"); }
From source file:com.facebook.presto.jdbc.PrestoConnection.java
@Override public Savepoint setSavepoint(String name) throws SQLException { throw new SQLFeatureNotSupportedException("setSavepoint"); }