Example usage for java.sql SQLFeatureNotSupportedException SQLFeatureNotSupportedException

List of usage examples for java.sql SQLFeatureNotSupportedException SQLFeatureNotSupportedException

Introduction

In this page you can find the example usage for java.sql SQLFeatureNotSupportedException SQLFeatureNotSupportedException.

Prototype

public SQLFeatureNotSupportedException(Throwable cause) 

Source Link

Document

Constructs a SQLFeatureNotSupportedException object with a given cause.

Usage

From source file:com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.SQLDataSourceWrapper.java

public Logger getParentLogger() throws SQLFeatureNotSupportedException {
    try {/* w  ww.j a  v a2  s . c om*/
        return (Logger) invokeMethod(basicDataSource, "getParentLogger", null);
    } catch (Exception ex) {
        throw new SQLFeatureNotSupportedException(ex);
    }
}

From source file:cz.lbenda.dataman.db.DatamanDataSource.java

@Override
public Logger getParentLogger() throws SQLFeatureNotSupportedException {
    try {//  w  w w  .  ja  v  a2s  .c  o  m
        getLogWriter().print("The getParentLogger isn't supported. SLF4J is used.");
    } catch (SQLException e) {
        /* never heppend */ }
    throw new SQLFeatureNotSupportedException("The getParentLogger isn't supported. SLF4J is used.");
}

From source file:com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.BasicDataSourceWrapper.java

public Logger getParentLogger() throws SQLFeatureNotSupportedException {
    //    try { return (Logger) invokeMethod(basicDataSource != null?  basicDataSource : this, "getParentLogger", null);
    try {//  w  w w.java  2 s .  c o m
        return (Logger) invokeMethod(this, "getParentLogger", null);
    } catch (Exception ex) {
        throw new SQLFeatureNotSupportedException(ex);
    }
}

From source file:com.gs.obevo.db.impl.core.jdbc.SingleConnectionDataSource.java

public java.util.logging.Logger getParentLogger() throws SQLFeatureNotSupportedException {
    throw new SQLFeatureNotSupportedException(
            "To be implemented as getDataSource().getParentLogger() once default compile is 1.7");
}

From source file:com.facebook.presto.jdbc.PrestoConnection.java

@Override
public void setAutoCommit(boolean autoCommit) throws SQLException {
    checkOpen();//from  ww w .  java2 s .co  m
    if (!autoCommit) {
        throw new SQLFeatureNotSupportedException("Disabling auto-commit mode not supported");
    }
}

From source file:org.apache.jena.jdbc.remote.statements.RemoteEndpointPreparedStatement.java

@Override
protected void beginTransaction(ReadWrite type) throws SQLException {
    throw new SQLFeatureNotSupportedException(
            "Transactions against remote endpoint backed connections are not supported");
}

From source file:org.apache.jena.jdbc.remote.statements.RemoteEndpointPreparedStatement.java

@Override
protected void commitTransaction() throws SQLException {
    throw new SQLFeatureNotSupportedException(
            "Transactions against remote endpoint backed connections are not supported");
}

From source file:com.facebook.presto.jdbc.PrestoConnection.java

@Override
public void setReadOnly(boolean readOnly) throws SQLException {
    checkOpen();// w  w  w  . j av a2s .c o m
    if (!readOnly) {
        throw new SQLFeatureNotSupportedException("Disabling read-only mode not supported");
    }
}

From source file:org.apache.jena.jdbc.remote.statements.RemoteEndpointPreparedStatement.java

@Override
protected void rollbackTransaction() throws SQLException {
    throw new SQLFeatureNotSupportedException(
            "Transactions against remote endpoint backed connections are not supported");
}