sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1631808 [1/2] - in /sis/branches/JDK8/storage/sis-shapefile/src: main/java/org/apache/sis/internal/ main/java/org/apache/sis/internal/shapefile/ main/java/org/apache/sis/internal/shapefile/jdbc/ main/resources/ main/resources/org/ main/res...
Date Tue, 14 Oct 2014 16:12:45 GMT
Author: desruisseaux
Date: Tue Oct 14 16:12:44 2014
New Revision: 1631808

URL: http://svn.apache.org/r1631808
Log:
Initial commit of Marc Le Bihan's work on JDBC driver.
https://issues.apache.org/jira/browse/SIS-180

Added:
    sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/
    sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/
    sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/
    sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractConnection.java   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractJDBC.java   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractResultSet.java   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractStatement.java   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/DBFConnection.java   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/DBFDriver.java   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/DBFResultSet.java   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/DBFStatement.java   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/InvalidDbaseFileFormatException.java   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/package-info.java   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/apache/
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/apache/sis/
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/apache/sis/internal/
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/apache/sis/internal/shapefile/
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/apache/sis/internal/shapefile/jdbc/
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/apache/sis/internal/shapefile/jdbc/AbstractJDBC.properties   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/apache/sis/internal/shapefile/jdbc/AbstractJDBC_en.properties   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/apache/sis/internal/shapefile/jdbc/AbstractJDBC_fr.properties   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/apache/sis/internal/shapefile/jdbc/DBFConnection.properties   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/apache/sis/internal/shapefile/jdbc/DBFConnection_en.properties   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/apache/sis/internal/shapefile/jdbc/DBFConnection_fr.properties   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/apache/sis/internal/shapefile/jdbc/DBFResultSet.properties   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/apache/sis/internal/shapefile/jdbc/DBFResultSet_en.properties   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/apache/sis/internal/shapefile/jdbc/DBFResultSet_fr.properties   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/apache/sis/internal/shapefile/jdbc/DBFStatement.properties   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/apache/sis/internal/shapefile/jdbc/DBFStatement_en.properties   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/main/resources/org/apache/sis/internal/shapefile/jdbc/DBFStatement_fr.properties   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/test/java/org/apache/sis/internal/
    sis/branches/JDK8/storage/sis-shapefile/src/test/java/org/apache/sis/internal/shapefile/
    sis/branches/JDK8/storage/sis-shapefile/src/test/java/org/apache/sis/internal/shapefile/jdbc/
    sis/branches/JDK8/storage/sis-shapefile/src/test/java/org/apache/sis/internal/shapefile/jdbc/ConnectionTest.java   (with props)
    sis/branches/JDK8/storage/sis-shapefile/src/test/java/org/apache/sis/internal/shapefile/jdbc/ResultSetTest.java   (with props)
Modified:
    sis/branches/JDK8/storage/sis-shapefile/src/test/java/org/apache/sis/test/suite/ShapefileTestSuite.java

Added: sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractConnection.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractConnection.java?rev=1631808&view=auto
==============================================================================
--- sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractConnection.java (added)
+++ sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractConnection.java [UTF-8] Tue Oct 14 16:12:44 2014
@@ -0,0 +1,440 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.sis.internal.shapefile.jdbc;
+
+import static java.util.logging.Level.*;
+
+import java.sql.*;
+import java.util.*;
+import java.util.concurrent.*;
+
+/**
+ * This base class holds all the unimplemented feature of a Connection.
+ * (In order to avoid having a Connection implementation of thousand lines and unreadable).
+ *
+ * @author  Marc Le Bihan
+ * @version 0.5
+ * @since   0.5
+ * @module
+ */
+abstract public class AbstractConnection extends AbstractJDBC implements Connection {
+    /**
+     * @see java.sql.Wrapper#unwrap(java.lang.Class)
+     */
+    @Override
+    public <T> T unwrap(@SuppressWarnings("unused") Class<T> iface) throws SQLException {
+        throw unsupportedOperation(Connection.class, "unwrap(..)");
+    }
+
+    /**
+     * No non-standard features are currently handled.
+     * @see java.sql.Wrapper#isWrapperFor(java.lang.Class)
+     */
+    @Override
+    public boolean isWrapperFor(@SuppressWarnings("unused") Class<?> iface) {
+        return false;
+    }
+
+    /**
+     * @see java.sql.Connection#prepareCall(java.lang.String)
+     */
+    @Override
+    public CallableStatement prepareCall(@SuppressWarnings("unused") String sql) throws SQLException {
+        throw unsupportedOperation(Connection.class, "prepareCall");
+    }
+
+    /**
+     * @see java.sql.Connection#nativeSQL(java.lang.String)
+     */
+    @Override
+    public String nativeSQL(String sql) {
+        return sql; // We do nothing at the moment.
+    }
+
+    /**
+     * Commit / rollback are currently ignored (autocommit = true).
+     * @see java.sql.Connection#setAutoCommit(boolean)
+     */
+    @Override
+    public void setAutoCommit(boolean autoCommit){
+        format(WARNING, "log.autocommit_ignored", autoCommit);
+    }
+
+    /**
+     * Currently the autocommit state is not handled : always true.
+     * @see java.sql.Connection#getAutoCommit()
+     */
+    @Override
+    public boolean getAutoCommit() {
+        return true;
+    }
+
+    /**
+     * @see java.sql.Connection#commit()
+     */
+    @Override
+    public void commit() {
+        format(WARNING, "log.commit_rollback_ignored");
+    }
+
+    /**
+     * @see java.sql.Connection#rollback()
+     */
+    @Override
+    public void rollback() {
+        format(WARNING, "log.commit_rollback_ignored");
+    }
+
+    /**
+     * @see java.sql.Connection#getMetaData()
+     */
+    @Override
+    public DatabaseMetaData getMetaData() throws SQLException {
+        throw unsupportedOperation(Connection.class, "getMetaData()");
+    }
+
+    /**
+     * @see java.sql.Connection#setReadOnly(boolean)
+     */
+    @Override
+    public void setReadOnly(@SuppressWarnings("unused") boolean readOnly) {
+        logUnsupportedOperation(WARNING, Connection.class, "setReadOnly(..)");
+    }
+
+    /**
+     * @see java.sql.Connection#isReadOnly()
+     */
+    @Override
+    public boolean isReadOnly() {
+        return false;
+    }
+
+    /**
+     * @see java.sql.Connection#setCatalog(java.lang.String)
+     */
+    @Override
+    public void setCatalog(@SuppressWarnings("unused") String catalog) {
+        logUnsupportedOperation(WARNING, Connection.class, "setCatalog(..)");
+    }
+
+    /**
+     * @see java.sql.Connection#getCatalog()
+     */
+    @Override
+    public String getCatalog() throws SQLException {
+        throw unsupportedOperation(Connection.class, "getCatalog()");
+    }
+
+    /**
+     * @see java.sql.Connection#setTransactionIsolation(int)
+     */
+    @Override
+    public void setTransactionIsolation(@SuppressWarnings("unused") int level) {
+        logUnsupportedOperation(WARNING, Connection.class, "transaction isolation");
+    }
+
+    /**
+     * @see java.sql.Connection#getTransactionIsolation()
+     */
+    @Override
+    public int getTransactionIsolation() {
+        return 0; // No guarantees of anything.
+    }
+
+    /**
+     * @see java.sql.Connection#getWarnings()
+     */
+    @Override
+    public SQLWarning getWarnings() {
+        logUnsupportedOperation(WARNING, Connection.class, "returning SQL warnings");
+        return null;
+    }
+
+    /**
+     * @see java.sql.Connection#clearWarnings()
+     */
+    @Override
+    public void clearWarnings() {
+        logUnsupportedOperation(WARNING, Connection.class, "clearing SQL warnings");
+    }
+
+    /**
+     * @see java.sql.Connection#prepareCall(java.lang.String, int, int)
+     */
+    @Override
+    public CallableStatement prepareCall(@SuppressWarnings("unused") String sql, @SuppressWarnings("unused") int resultSetType, @SuppressWarnings("unused") int resultSetConcurrency) throws SQLException {
+        throw unsupportedOperation(Connection.class, "stored procedures (prepareCall(..))");
+    }
+
+    /**
+     * @see java.sql.Connection#getTypeMap()
+     */
+    @Override
+    public Map<String, Class<?>> getTypeMap() {
+        logUnsupportedOperation(WARNING, Connection.class, "getTypeMap()");
+        return new HashMap<>();
+    }
+
+    /**
+     * @see java.sql.Connection#setTypeMap(java.util.Map)
+     */
+    @Override
+    public void setTypeMap(@SuppressWarnings("unused") Map<String, Class<?>> map) {
+        logUnsupportedOperation(WARNING, Connection.class, "setTypeMap(..)");
+    }
+
+    /**
+     * @see java.sql.Connection#prepareStatement(java.lang.String, int, int)
+     */
+    @Override
+    public PreparedStatement prepareStatement(@SuppressWarnings("unused") String sql, @SuppressWarnings("unused") int resultSetType, @SuppressWarnings("unused") int resultSetConcurrency) throws SQLException {
+        throw unsupportedOperation(Connection.class, "prepareStatement(String sql, int resultSetType, int resultSetConcurrency)");
+    }
+
+    /**
+     * @see java.sql.Connection#setHoldability(int)
+     */
+    @Override
+    public void setHoldability(@SuppressWarnings("unused") int holdability) {
+        logUnsupportedOperation(WARNING, Connection.class, "setHoldability(..)");
+    }
+
+    /**
+     * @see java.sql.Connection#getHoldability()
+     */
+    @Override
+    public int getHoldability() throws SQLException {
+        throw unsupportedOperation(Connection.class, "getHoldability()");
+    }
+
+    /**
+     * @see java.sql.Connection#setSavepoint()
+     */
+    @Override
+    public Savepoint setSavepoint() throws SQLException {
+        throw unsupportedOperation(Connection.class, "setSavepoint()");
+    }
+
+    /**
+     * @see java.sql.Connection#setSavepoint(java.lang.String)
+     */
+    @Override
+    public Savepoint setSavepoint(@SuppressWarnings("unused") String name) throws SQLException {
+        throw unsupportedOperation(Connection.class, "setSavepoint(..)");
+    }
+
+    /**
+     * @see java.sql.Connection#rollback(java.sql.Savepoint)
+     */
+    @Override
+    public void rollback(@SuppressWarnings("unused") Savepoint savepoint) throws SQLException {
+        throw unsupportedOperation(Connection.class, "rollback(Savepoint)");
+    }
+
+    /**
+     * @see java.sql.Connection#releaseSavepoint(java.sql.Savepoint)
+     */
+    @Override
+    public void releaseSavepoint(@SuppressWarnings("unused") Savepoint savepoint) throws SQLException {
+        throw unsupportedOperation(Connection.class, "releaseSavepoint(Savepoint)");
+    }
+
+    /**
+     * @see java.sql.Connection#createStatement(int, int, int)
+     */
+    @Override
+    public Statement createStatement(@SuppressWarnings("unused") int resultSetType, @SuppressWarnings("unused") int resultSetConcurrency, @SuppressWarnings("unused") int resultSetHoldability) throws SQLException {
+        throw unsupportedOperation(Connection.class, "createStatement(int, int, int)");
+    }
+
+    /**
+     * @see java.sql.Connection#prepareStatement(java.lang.String, int, int, int)
+     */
+    @Override
+    public PreparedStatement prepareStatement(@SuppressWarnings("unused") String sql, @SuppressWarnings("unused") int resultSetType, @SuppressWarnings("unused") int resultSetConcurrency, @SuppressWarnings("unused") int resultSetHoldability) throws SQLException {
+        throw unsupportedOperation(Connection.class, "prepareStatement(String, int, int, int)");
+    }
+
+    /**
+     * @see java.sql.Connection#prepareCall(java.lang.String, int, int, int)
+     */
+    @Override
+    public CallableStatement prepareCall(@SuppressWarnings("unused") String sql, @SuppressWarnings("unused") int resultSetType, @SuppressWarnings("unused") int resultSetConcurrency, @SuppressWarnings("unused") int resultSetHoldability) throws SQLException {
+        throw unsupportedOperation(Connection.class, "stored procedures (prepareCall(String, int, int, int))");
+    }
+
+    /**
+     * @see java.sql.Connection#prepareStatement(java.lang.String)
+     */
+    @Override
+    public PreparedStatement prepareStatement(@SuppressWarnings("unused") String sql) throws SQLException {
+        throw unsupportedOperation(Connection.class, "prepareStatement(String sql)");
+    }
+
+    /**
+     * @see java.sql.Connection#prepareStatement(java.lang.String, int)
+     */
+    @Override
+    public PreparedStatement prepareStatement(@SuppressWarnings("unused") String sql, @SuppressWarnings("unused") int autoGeneratedKeys) throws SQLException {
+        throw unsupportedOperation(Connection.class, "prepareStatement with autogenerated keys (prepareStatement(String, int))");
+    }
+
+    /**
+     * @see java.sql.Connection#prepareStatement(java.lang.String, int[])
+     */
+    @Override
+    public PreparedStatement prepareStatement(@SuppressWarnings("unused") String sql, @SuppressWarnings("unused") int[] columnIndexes) throws SQLException {
+        throw unsupportedOperation(Connection.class, "prepareStatement with autogenerated keys (prepareStatement(String, int[]))");
+    }
+
+    /**
+     * @see java.sql.Connection#prepareStatement(java.lang.String, java.lang.String[])
+     */
+    @Override
+    public PreparedStatement prepareStatement(@SuppressWarnings("unused") String sql, @SuppressWarnings("unused") String[] columnNames) throws SQLException {
+        throw unsupportedOperation(Connection.class, "prepareStatement with autogenerated keys (prepareStatement(String, String[]))");
+    }
+
+    /**
+     * @see java.sql.Connection#createClob()
+     */
+    @Override
+    public Clob createClob() throws SQLException {
+        throw unsupportedOperation(Connection.class, "createClob()");
+    }
+
+    /**
+     * @see java.sql.Connection#createBlob()
+     */
+    @Override
+    public Blob createBlob() throws SQLException {
+        throw unsupportedOperation(Connection.class, "createBlob()");
+    }
+
+    /**
+     * @see java.sql.Connection#createNClob()
+     */
+    @Override
+    public NClob createNClob() throws SQLException {
+        throw unsupportedOperation(Connection.class, "createNClob()");
+    }
+
+    /**
+     * @see java.sql.Connection#createSQLXML()
+     */
+    @Override
+    public SQLXML createSQLXML() throws SQLException {
+        throw unsupportedOperation(Connection.class, "createSQLXML()");
+    }
+
+    /**
+     * @see java.sql.Connection#setClientInfo(java.lang.String, java.lang.String)
+     */
+    @Override
+    public void setClientInfo(@SuppressWarnings("unused") String name, @SuppressWarnings("unused") String value) {
+        logUnsupportedOperation(WARNING, Connection.class, "setClientInfo(..)");
+    }
+
+    /**
+     * @see java.sql.Connection#setClientInfo(java.util.Properties)
+     */
+    @Override
+    public void setClientInfo(@SuppressWarnings("unused") Properties properties) {
+        logUnsupportedOperation(WARNING, Connection.class, "setClientInfo(Properties)");
+    }
+
+    /**
+     * @see java.sql.Connection#getClientInfo(java.lang.String)
+     */
+    @Override
+    public String getClientInfo(@SuppressWarnings("unused") String name) throws SQLException {
+        throw unsupportedOperation(Connection.class, "getClientInfo(String name)");
+    }
+
+    /**
+     * @see java.sql.Connection#getClientInfo()
+     */
+    @Override
+    public Properties getClientInfo() throws SQLException {
+        throw unsupportedOperation(Connection.class, "getClientInfo()");
+    }
+
+    /**
+     * @see java.sql.Connection#createArrayOf(java.lang.String, java.lang.Object[])
+     */
+    @Override
+    public Array createArrayOf(@SuppressWarnings("unused") String typeName, @SuppressWarnings("unused") Object[] elements) throws SQLException {
+        throw unsupportedOperation(Connection.class, "createArrayOf(String typeName, Object[] elements)");
+    }
+
+    /**
+     * @see java.sql.Connection#createStruct(java.lang.String, java.lang.Object[])
+     */
+    @Override
+    public Struct createStruct(@SuppressWarnings("unused") String typeName, @SuppressWarnings("unused") Object[] attributes) throws SQLException {
+        throw unsupportedOperation(Connection.class, "createStruct(String typeName, Object[] attributes)");
+    }
+
+    /**
+     * @see java.sql.Connection#setSchema(java.lang.String)
+     */
+    @Override
+    public void setSchema(@SuppressWarnings("unused") String schema) throws SQLException {
+        throw unsupportedOperation(Connection.class, "setSchema(String schema)");
+    }
+
+    /**
+     * @see java.sql.Connection#getSchema()
+     */
+    @Override
+    public String getSchema() throws SQLException {
+        throw unsupportedOperation(Connection.class, "getSchema()");
+    }
+
+    /**
+     * @see java.sql.Connection#abort(java.util.concurrent.Executor)
+     */
+    @Override
+    public void abort(@SuppressWarnings("unused") Executor executor) throws SQLException {
+        throw unsupportedOperation(Connection.class, "abort(Executor executor)");
+    }
+
+    /**
+     * @see java.sql.Connection#setNetworkTimeout(java.util.concurrent.Executor, int)
+     */
+    @Override
+    public void setNetworkTimeout(@SuppressWarnings("unused") Executor executor, @SuppressWarnings("unused") int milliseconds) {
+        logUnsupportedOperation(WARNING, Connection.class, "setNetworkTimeout(Executor executor, int milliseconds)");
+    }
+
+    /**
+     * @see java.sql.Connection#getNetworkTimeout()
+     */
+    @Override
+    public int getNetworkTimeout() {
+        logUnsupportedOperation(WARNING, Connection.class, "getNetworkTimeout()");
+        return 0;
+    }
+
+    /**
+     * @see java.sql.Connection#createStatement(int, int)
+     */
+    @Override
+    public Statement createStatement(@SuppressWarnings("unused") int resultSetType, @SuppressWarnings("unused") int resultSetConcurrency) throws SQLException {
+        throw unsupportedOperation(Connection.class, "createStatement(int resultSetType, int resultSetConcurrency)");
+    }
+}

Propchange: sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractConnection.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractConnection.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain;charset=UTF-8

Added: sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractJDBC.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractJDBC.java?rev=1631808&view=auto
==============================================================================
--- sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractJDBC.java (added)
+++ sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractJDBC.java [UTF-8] Tue Oct 14 16:12:44 2014
@@ -0,0 +1,128 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.sis.internal.shapefile.jdbc;
+
+import java.text.*;
+import java.util.*;
+import java.util.logging.*;
+import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
+
+
+/**
+ * Base class for each JDBC class.
+ *
+ * @author  Marc Le Bihan
+ * @version 0.5
+ * @since   0.5
+ * @module
+ */
+public abstract class AbstractJDBC {
+    /** Logger. */
+    private Logger logger = Logger.getLogger(getClass().getSimpleName());
+
+    /**
+     * Format a resource bundle message.
+     *
+     * @param classForResourceBundleName class from which ResourceBundle name will be extracted.
+     * @param key Message key.
+     * @param args Message arguments.
+     * @return Message.
+     */
+    final String format(Class<?> classForResourceBundleName, String key, Object... args) {
+        Objects.requireNonNull(classForResourceBundleName, "Class from with the ResourceBundle name is extracted cannot be null.");
+        Objects.requireNonNull(key, "Message key cannot be bull.");
+
+        ResourceBundle rsc = ResourceBundle.getBundle(classForResourceBundleName.getName());
+        MessageFormat format = new MessageFormat(rsc.getString(key));
+        return format.format(args);
+    }
+
+    /**
+     * Format a resource bundle message.
+     *
+     * @param key Message key.
+     * @param args Message arguments.
+     * @return Message.
+     */
+    final String format(String key, Object... args) {
+        return format(getClass(), key, args);
+    }
+
+    /**
+     * Format a resource bundle message and before returning it, log it.
+     *
+     * @param logLevel Log Level.
+     * @param key Message key.
+     * @param args Message arguments.
+     * @return Message.
+     */
+    final String format(Level logLevel, String key, Object... args) {
+        String message = format(key, args);
+        logger.log(logLevel, message);
+        return(message);
+    }
+
+    /**
+     * Format a resource bundle message and before returning it, log it.
+     *
+     * @param classForResourceBundleName class from which ResourceBundle name will be extracted.
+     * @param logLevel Log Level.
+     * @param key Message key.
+     * @param args Message arguments.
+     * @return Message.
+     */
+    final String format(Level logLevel, Class<?> classForResourceBundleName, String key, Object... args) {
+        String message = format(classForResourceBundleName, key, args);
+        logger.log(logLevel, message);
+        return(message);
+    }
+
+    /**
+     * Returns an unsupported operation exception.
+     *
+     * @param unhandledInterface Interface we cannot handle.
+     * @param methodOrWishedFeatureName The feature / call the caller attempted.
+     */
+    final SQLException unsupportedOperation(Class<?> unhandledInterface, String methodOrWishedFeatureName) {
+        Objects.requireNonNull(unhandledInterface, "The unhandled interface cannot be null.");
+
+        String message = logUnsupportedOperation(Level.SEVERE, unhandledInterface, methodOrWishedFeatureName);
+        return new SQLFeatureNotSupportedException(message);
+    }
+
+    /**
+     * log an unsupported feature as a warning.
+     *
+     * @param logLevel Log Level.
+     * @param unhandledInterface Interface we cannot handle.
+     * @param methodOrWishedFeatureName The feature / call the caller attempted.
+     * @return The message that has been logged.
+     */
+    final String logUnsupportedOperation(Level logLevel, Class<?> unhandledInterface, String methodOrWishedFeatureName) {
+        Objects.requireNonNull(unhandledInterface, "The unhandled interface cannot be null.");
+        return format(logLevel, AbstractJDBC.class, "excp.unsupported_driver_feature", unhandledInterface.getClass(), methodOrWishedFeatureName);
+    }
+
+    /**
+     * Return the class logger.
+     * @return logger.
+     */
+    public Logger getLogger() {
+        return logger;
+    }
+}

Propchange: sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractJDBC.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractJDBC.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain;charset=UTF-8

Added: sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractResultSet.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractResultSet.java?rev=1631808&view=auto
==============================================================================
--- sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractResultSet.java (added)
+++ sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractResultSet.java [UTF-8] Tue Oct 14 16:12:44 2014
@@ -0,0 +1,1287 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.sis.internal.shapefile.jdbc;
+
+import java.io.*;
+import java.math.*;
+import java.net.*;
+import java.sql.*;
+import java.sql.Date;
+import java.util.*;
+
+
+/**
+ * This base class holds all the unimplemented feature of a ResultSet.
+ * (In order to avoid having a ResultSet implementation of thousand lines and unreadable).
+ *
+ * @author  Marc Le Bihan
+ * @version 0.5
+ * @since   0.5
+ * @module
+ */
+abstract public class AbstractResultSet extends AbstractJDBC implements ResultSet {
+    /**
+     * @see java.sql.Wrapper#unwrap(java.lang.Class)
+     */
+    @Override
+    public <T> T unwrap(@SuppressWarnings("unused") Class<T> iface) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.Wrapper#isWrapperFor(java.lang.Class)
+     */
+    @Override
+    public boolean isWrapperFor(@SuppressWarnings("unused") Class<?> iface) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#wasNull()
+     */
+    @Override
+    public boolean wasNull() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getAsciiStream(int)
+     */
+    @Override
+    public InputStream getAsciiStream(@SuppressWarnings("unused") int columnIndex) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getUnicodeStream(int)
+     */
+    @Override
+    @Deprecated
+    public InputStream getUnicodeStream(@SuppressWarnings("unused") int columnIndex) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getBinaryStream(int)
+     */
+    @Override
+    public InputStream getBinaryStream(@SuppressWarnings("unused") int columnIndex) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getAsciiStream(java.lang.String)
+     */
+    @Override
+    public InputStream getAsciiStream(@SuppressWarnings("unused") String columnLabel) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getUnicodeStream(java.lang.String)
+     */
+    @Override
+    @Deprecated
+    public InputStream getUnicodeStream(@SuppressWarnings("unused") String columnLabel) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getBinaryStream(java.lang.String)
+     */
+    @Override
+    public InputStream getBinaryStream(@SuppressWarnings("unused") String columnLabel) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getWarnings()
+     */
+    @Override
+    public SQLWarning getWarnings() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#clearWarnings()
+     */
+    @Override
+    public void clearWarnings() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getCursorName()
+     */
+    @Override
+    public String getCursorName() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+
+    /**
+     * @see java.sql.ResultSet#findColumn(java.lang.String)
+     */
+    @Override
+    public int findColumn(@SuppressWarnings("unused") String columnLabel) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getCharacterStream(int)
+     */
+    @Override
+    public Reader getCharacterStream(@SuppressWarnings("unused") int columnIndex) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getCharacterStream(java.lang.String)
+     */
+    @Override
+    public Reader getCharacterStream(@SuppressWarnings("unused") String columnLabel) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#isBeforeFirst()
+     */
+    @Override
+    public boolean isBeforeFirst() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#isAfterLast()
+     */
+    @Override
+    public boolean isAfterLast() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#isFirst()
+     */
+    @Override
+    public boolean isFirst() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#isLast()
+     */
+    @Override
+    public boolean isLast() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#beforeFirst()
+     */
+    @Override
+    public void beforeFirst() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#afterLast()
+     */
+    @Override
+    public void afterLast() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#first()
+     */
+    @Override
+    public boolean first() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#last()
+     */
+    @Override
+    public boolean last() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getRow()
+     */
+    @Override
+    public int getRow() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#absolute(int)
+     */
+    @Override
+    public boolean absolute(@SuppressWarnings("unused") int row) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#relative(int)
+     */
+    @Override
+    public boolean relative(@SuppressWarnings("unused") int rows) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#previous()
+     */
+    @Override
+    public boolean previous() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#setFetchDirection(int)
+     */
+    @Override
+    public void setFetchDirection(@SuppressWarnings("unused") int direction) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getFetchDirection()
+     */
+    @Override
+    public int getFetchDirection() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#setFetchSize(int)
+     */
+    @Override
+    public void setFetchSize(@SuppressWarnings("unused") int rows) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getFetchSize()
+     */
+    @Override
+    public int getFetchSize() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getType()
+     */
+    @Override
+    public int getType() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getConcurrency()
+     */
+    @Override
+    public int getConcurrency() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#rowUpdated()
+     */
+    @Override
+    public boolean rowUpdated() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#rowInserted()
+     */
+    @Override
+    public boolean rowInserted() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#rowDeleted()
+     */
+    @Override
+    public boolean rowDeleted() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateNull(int)
+     */
+    @Override
+    public void updateNull(@SuppressWarnings("unused") int columnIndex) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBoolean(int, boolean)
+     */
+    @Override
+    public void updateBoolean(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") boolean x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateByte(int, byte)
+     */
+    @Override
+    public void updateByte(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") byte x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateShort(int, short)
+     */
+    @Override
+    public void updateShort(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") short x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateInt(int, int)
+     */
+    @Override
+    public void updateInt(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") int x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateLong(int, long)
+     */
+    @Override
+    public void updateLong(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") long x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateFloat(int, float)
+     */
+    @Override
+    public void updateFloat(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") float x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateDouble(int, double)
+     */
+    @Override
+    public void updateDouble(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") double x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBigDecimal(int, java.math.BigDecimal)
+     */
+    @Override
+    public void updateBigDecimal(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") BigDecimal x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateString(int, java.lang.String)
+     */
+    @Override
+    public void updateString(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") String x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBytes(int, byte[])
+     */
+    @Override
+    public void updateBytes(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") byte[] x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateDate(int, java.sql.Date)
+     */
+    @Override
+    public void updateDate(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Date x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateTime(int, java.sql.Time)
+     */
+    @Override
+    public void updateTime(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Time x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateTimestamp(int, java.sql.Timestamp)
+     */
+    @Override
+    public void updateTimestamp(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Timestamp x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateAsciiStream(int, java.io.InputStream, int)
+     */
+    @Override
+    public void updateAsciiStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") InputStream x, @SuppressWarnings("unused") int length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBinaryStream(int, java.io.InputStream, int)
+     */
+    @Override
+    public void updateBinaryStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") InputStream x, @SuppressWarnings("unused") int length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateCharacterStream(int, java.io.Reader, int)
+     */
+    @Override
+    public void updateCharacterStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader x, @SuppressWarnings("unused") int length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateObject(int, java.lang.Object, int)
+     */
+    @Override
+    public void updateObject(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Object x, @SuppressWarnings("unused") int scaleOrLength) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateObject(int, java.lang.Object)
+     */
+    @Override
+    public void updateObject(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Object x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateNull(java.lang.String)
+     */
+    @Override
+    public void updateNull(@SuppressWarnings("unused") String columnLabel) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBoolean(java.lang.String, boolean)
+     */
+    @Override
+    public void updateBoolean(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") boolean x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateByte(java.lang.String, byte)
+     */
+    @Override
+    public void updateByte(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") byte x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateShort(java.lang.String, short)
+     */
+    @Override
+    public void updateShort(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") short x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateInt(java.lang.String, int)
+     */
+    @Override
+    public void updateInt(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") int x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateLong(java.lang.String, long)
+     */
+    @Override
+    public void updateLong(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") long x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateFloat(java.lang.String, float)
+     */
+    @Override
+    public void updateFloat(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") float x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateDouble(java.lang.String, double)
+     */
+    @Override
+    public void updateDouble(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") double x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBigDecimal(java.lang.String, java.math.BigDecimal)
+     */
+    @Override
+    public void updateBigDecimal(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") BigDecimal x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateString(java.lang.String, java.lang.String)
+     */
+    @Override
+    public void updateString(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") String x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBytes(java.lang.String, byte[])
+     */
+    @Override
+    public void updateBytes(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") byte[] x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateDate(java.lang.String, java.sql.Date)
+     */
+    @Override
+    public void updateDate(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Date x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateTime(java.lang.String, java.sql.Time)
+     */
+    @Override
+    public void updateTime(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Time x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateTimestamp(java.lang.String, java.sql.Timestamp)
+     */
+    @Override
+    public void updateTimestamp(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Timestamp x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateAsciiStream(java.lang.String, java.io.InputStream, int)
+     */
+    @Override
+    public void updateAsciiStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") InputStream x, @SuppressWarnings("unused") int length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBinaryStream(java.lang.String, java.io.InputStream, int)
+     */
+    @Override
+    public void updateBinaryStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") InputStream x, @SuppressWarnings("unused") int length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateCharacterStream(java.lang.String, java.io.Reader, int)
+     */
+    @Override
+    public void updateCharacterStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader, @SuppressWarnings("unused") int length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateObject(java.lang.String, java.lang.Object, int)
+     */
+    @Override
+    public void updateObject(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Object x, @SuppressWarnings("unused") int scaleOrLength) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateObject(java.lang.String, java.lang.Object)
+     */
+    @Override
+    public void updateObject(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Object x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#insertRow()
+     */
+    @Override
+    public void insertRow() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateRow()
+     */
+    @Override
+    public void updateRow() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#deleteRow()
+     */
+    @Override
+    public void deleteRow() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#refreshRow()
+     */
+    @Override
+    public void refreshRow() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#cancelRowUpdates()
+     */
+    @Override
+    public void cancelRowUpdates() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#moveToInsertRow()
+     */
+    @Override
+    public void moveToInsertRow() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#moveToCurrentRow()
+     */
+    @Override
+    public void moveToCurrentRow() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getRef(int)
+     */
+    @Override
+    public Ref getRef(@SuppressWarnings("unused") int columnIndex) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getBlob(int)
+     */
+    @Override
+    public Blob getBlob(@SuppressWarnings("unused") int columnIndex) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getClob(int)
+     */
+    @Override
+    public Clob getClob(@SuppressWarnings("unused") int columnIndex) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getArray(int)
+     */
+    @Override
+    public Array getArray(@SuppressWarnings("unused") int columnIndex) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getObject(java.lang.String, java.util.Map)
+     */
+    @Override
+    public Object getObject(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Map<String, Class<?>> map) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getRef(java.lang.String)
+     */
+    @Override
+    public Ref getRef(@SuppressWarnings("unused") String columnLabel) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getBlob(java.lang.String)
+     */
+    @Override
+    public Blob getBlob(@SuppressWarnings("unused") String columnLabel) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getClob(java.lang.String)
+     */
+    @Override
+    public Clob getClob(@SuppressWarnings("unused") String columnLabel) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getArray(java.lang.String)
+     */
+    @Override
+    public Array getArray(@SuppressWarnings("unused") String columnLabel) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getDate(int, java.util.Calendar)
+     */
+    @Override
+    public Date getDate(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Calendar cal) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getDate(java.lang.String, java.util.Calendar)
+     */
+    @Override
+    public Date getDate(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Calendar cal) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getTime(int, java.util.Calendar)
+     */
+    @Override
+    public Time getTime(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Calendar cal) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getTime(java.lang.String, java.util.Calendar)
+     */
+    @Override
+    public Time getTime(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Calendar cal) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getTimestamp(int, java.util.Calendar)
+     */
+    @Override
+    public Timestamp getTimestamp(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Calendar cal) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getTimestamp(java.lang.String, java.util.Calendar)
+     */
+    @Override
+    public Timestamp getTimestamp(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Calendar cal) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getURL(int)
+     */
+    @Override
+    public URL getURL(@SuppressWarnings("unused") int columnIndex) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getURL(java.lang.String)
+     */
+    @Override
+    public URL getURL(@SuppressWarnings("unused") String columnLabel) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateRef(int, java.sql.Ref)
+     */
+    @Override
+    public void updateRef(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Ref x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateRef(java.lang.String, java.sql.Ref)
+     */
+    @Override
+    public void updateRef(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Ref x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBlob(int, java.sql.Blob)
+     */
+    @Override
+    public void updateBlob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Blob x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBlob(java.lang.String, java.sql.Blob)
+     */
+    @Override
+    public void updateBlob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Blob x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateClob(int, java.sql.Clob)
+     */
+    @Override
+    public void updateClob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Clob x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateClob(java.lang.String, java.sql.Clob)
+     */
+    @Override
+    public void updateClob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Clob x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateArray(int, java.sql.Array)
+     */
+    @Override
+    public void updateArray(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Array x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateArray(java.lang.String, java.sql.Array)
+     */
+    @Override
+    public void updateArray(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Array x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getRowId(int)
+     */
+    @Override
+    public RowId getRowId(@SuppressWarnings("unused") int columnIndex) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getRowId(java.lang.String)
+     */
+    @Override
+    public RowId getRowId(@SuppressWarnings("unused") String columnLabel) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateRowId(int, java.sql.RowId)
+     */
+    @Override
+    public void updateRowId(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") RowId x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateRowId(java.lang.String, java.sql.RowId)
+     */
+    @Override
+    public void updateRowId(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") RowId x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getHoldability()
+     */
+    @Override
+    public int getHoldability() throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateNString(int, java.lang.String)
+     */
+    @Override
+    public void updateNString(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") String nString) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateNString(java.lang.String, java.lang.String)
+     */
+    @Override
+    public void updateNString(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") String nString) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateNClob(int, java.sql.NClob)
+     */
+    @Override
+    public void updateNClob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") NClob nClob) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateNClob(java.lang.String, java.sql.NClob)
+     */
+    @Override
+    public void updateNClob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") NClob nClob) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getNClob(int)
+     */
+    @Override
+    public NClob getNClob(@SuppressWarnings("unused") int columnIndex) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getNClob(java.lang.String)
+     */
+    @Override
+    public NClob getNClob(@SuppressWarnings("unused") String columnLabel) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getSQLXML(int)
+     */
+    @Override
+    public SQLXML getSQLXML(@SuppressWarnings("unused") int columnIndex) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getSQLXML(java.lang.String)
+     */
+    @Override
+    public SQLXML getSQLXML(@SuppressWarnings("unused") String columnLabel) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateSQLXML(int, java.sql.SQLXML)
+     */
+    @Override
+    public void updateSQLXML(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") SQLXML xmlObject) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateSQLXML(java.lang.String, java.sql.SQLXML)
+     */
+    @Override
+    public void updateSQLXML(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") SQLXML xmlObject) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getNString(int)
+     */
+    @Override
+    public String getNString(@SuppressWarnings("unused") int columnIndex) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getNString(java.lang.String)
+     */
+    @Override
+    public String getNString(@SuppressWarnings("unused") String columnLabel) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getNCharacterStream(int)
+     */
+    @Override
+    public Reader getNCharacterStream(@SuppressWarnings("unused") int columnIndex) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getNCharacterStream(java.lang.String)
+     */
+    @Override
+    public Reader getNCharacterStream(@SuppressWarnings("unused") String columnLabel) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateNCharacterStream(int, java.io.Reader, long)
+     */
+    @Override
+    public void updateNCharacterStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader x, @SuppressWarnings("unused") long length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateNCharacterStream(java.lang.String, java.io.Reader, long)
+     */
+    @Override
+    public void updateNCharacterStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader, @SuppressWarnings("unused") long length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateAsciiStream(int, java.io.InputStream, long)
+     */
+    @Override
+    public void updateAsciiStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") InputStream x, @SuppressWarnings("unused") long length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBinaryStream(int, java.io.InputStream, long)
+     */
+    @Override
+    public void updateBinaryStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") InputStream x, @SuppressWarnings("unused") long length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateCharacterStream(int, java.io.Reader, long)
+     */
+    @Override
+    public void updateCharacterStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader x, @SuppressWarnings("unused") long length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateAsciiStream(java.lang.String, java.io.InputStream, long)
+     */
+    @Override
+    public void updateAsciiStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") InputStream x, @SuppressWarnings("unused") long length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBinaryStream(java.lang.String, java.io.InputStream, long)
+     */
+    @Override
+    public void updateBinaryStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") InputStream x, @SuppressWarnings("unused") long length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateCharacterStream(java.lang.String, java.io.Reader, long)
+     */
+    @Override
+    public void updateCharacterStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader, @SuppressWarnings("unused") long length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBlob(int, java.io.InputStream, long)
+     */
+    @Override
+    public void updateBlob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") InputStream inputStream, @SuppressWarnings("unused") long length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBlob(java.lang.String, java.io.InputStream, long)
+     */
+    @Override
+    public void updateBlob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") InputStream inputStream, @SuppressWarnings("unused") long length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateClob(int, java.io.Reader, long)
+     */
+    @Override
+    public void updateClob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader reader, @SuppressWarnings("unused") long length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateClob(java.lang.String, java.io.Reader, long)
+     */
+    @Override
+    public void updateClob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader, @SuppressWarnings("unused") long length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateNClob(int, java.io.Reader, long)
+     */
+    @Override
+    public void updateNClob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader reader, @SuppressWarnings("unused") long length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateNClob(java.lang.String, java.io.Reader, long)
+     */
+    @Override
+    public void updateNClob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader, @SuppressWarnings("unused") long length) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateNCharacterStream(int, java.io.Reader)
+     */
+    @Override
+    public void updateNCharacterStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateNCharacterStream(java.lang.String, java.io.Reader)
+     */
+    @Override
+    public void updateNCharacterStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateAsciiStream(int, java.io.InputStream)
+     */
+    @Override
+    public void updateAsciiStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") InputStream x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBinaryStream(int, java.io.InputStream)
+     */
+    @Override
+    public void updateBinaryStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") InputStream x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateCharacterStream(int, java.io.Reader)
+     */
+    @Override
+    public void updateCharacterStream(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateAsciiStream(java.lang.String, java.io.InputStream)
+     */
+    @Override
+    public void updateAsciiStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") InputStream x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBinaryStream(java.lang.String, java.io.InputStream)
+     */
+    @Override
+    public void updateBinaryStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") InputStream x) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateCharacterStream(java.lang.String, java.io.Reader)
+     */
+    @Override
+    public void updateCharacterStream(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBlob(int, java.io.InputStream)
+     */
+    @Override
+    public void updateBlob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") InputStream inputStream) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateBlob(java.lang.String, java.io.InputStream)
+     */
+    @Override
+    public void updateBlob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") InputStream inputStream) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateClob(int, java.io.Reader)
+     */
+    @Override
+    public void updateClob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader reader) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateClob(java.lang.String, java.io.Reader)
+     */
+    @Override
+    public void updateClob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateNClob(int, java.io.Reader)
+     */
+    @Override
+    public void updateNClob(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Reader reader) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateNClob(java.lang.String, java.io.Reader)
+     */
+    @Override
+    public void updateNClob(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Reader reader) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getObject(int, java.lang.Class)
+     */
+    @Override
+    public <T> T getObject(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Class<T> type) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getObject(java.lang.String, java.lang.Class)
+     */
+    @Override
+    public <T> T getObject(@SuppressWarnings("unused") String columnLabel, @SuppressWarnings("unused") Class<T> type) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getObject(int, java.util.Map)
+     */
+    @Override
+    public Object getObject(@SuppressWarnings("unused") int columnIndex, @SuppressWarnings("unused") Map<String, Class<?>> map) throws SQLException {
+        throw unsupportedOperation(ResultSet.class, "");
+    }
+}

Propchange: sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractResultSet.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractResultSet.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain;charset=UTF-8

Added: sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractStatement.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractStatement.java?rev=1631808&view=auto
==============================================================================
--- sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractStatement.java (added)
+++ sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractStatement.java [UTF-8] Tue Oct 14 16:12:44 2014
@@ -0,0 +1,334 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.sis.internal.shapefile.jdbc;
+
+import java.sql.*;
+
+/**
+ * This base class holds all the unimplemented feature of a Statement.
+ * (In order to avoid having a Statement implementation of thousand lines and unreadable).
+ *
+ * @author  Marc Le Bihan
+ * @version 0.5
+ * @since   0.5
+ * @module
+ */
+abstract public class AbstractStatement extends AbstractJDBC implements Statement {
+    /**
+     * @see java.sql.Wrapper#unwrap(java.lang.Class)
+     */
+    @Override
+    public <T> T unwrap(@SuppressWarnings("unused") Class<T> iface) throws SQLException {
+        throw unsupportedOperation(Statement.class, "unwrap");
+    }
+
+    /**
+     * @see java.sql.Wrapper#isWrapperFor(java.lang.Class)
+     */
+    @Override
+    public boolean isWrapperFor(@SuppressWarnings("unused") Class<?> iface) throws SQLException {
+        throw unsupportedOperation(Statement.class, "isWrapperFor");
+    }
+
+    /**
+     * @see java.sql.Statement#executeUpdate(java.lang.String)
+     */
+    @Override
+    public int executeUpdate(@SuppressWarnings("unused") String sql) throws SQLException {
+        throw unsupportedOperation(Statement.class, "executeUpdate");
+    }
+
+    /**
+     * @see java.sql.Statement#getMaxFieldSize()
+     */
+    @Override
+    public int getMaxFieldSize() throws SQLException {
+        throw unsupportedOperation(Statement.class, "getMaxFieldSize");
+    }
+
+    /**
+     * @see java.sql.Statement#setMaxFieldSize(int)
+     */
+    @Override
+    public void setMaxFieldSize(@SuppressWarnings("unused") int max) throws SQLException {
+        throw unsupportedOperation(Statement.class, "setMaxFieldSize");
+    }
+
+    /**
+     * @see java.sql.Statement#getMaxRows()
+     */
+    @Override
+    public int getMaxRows() throws SQLException {
+        throw unsupportedOperation(Statement.class, "getMaxRows");
+    }
+
+    /**
+     * @see java.sql.Statement#setMaxRows(int)
+     */
+    @Override
+    public void setMaxRows(@SuppressWarnings("unused") int max) throws SQLException {
+        throw unsupportedOperation(Statement.class, "setMaxRows");
+    }
+
+    /**
+     * @see java.sql.Statement#setEscapeProcessing(boolean)
+     */
+    @Override
+    public void setEscapeProcessing(@SuppressWarnings("unused") boolean enable) throws SQLException {
+        throw unsupportedOperation(Statement.class, "setEscapeProcessing");
+    }
+
+    /**
+     * @see java.sql.Statement#getQueryTimeout()
+     */
+    @Override
+    public int getQueryTimeout() throws SQLException {
+        throw unsupportedOperation(Statement.class, "getQueryTimeout");
+    }
+
+    /**
+     * @see java.sql.Statement#setQueryTimeout(int)
+     */
+    @Override
+    public void setQueryTimeout(@SuppressWarnings("unused") int seconds) throws SQLException {
+        throw unsupportedOperation(Statement.class, "setQueryTimeout");
+    }
+
+    /**
+     * @see java.sql.Statement#cancel()
+     */
+    @Override
+    public void cancel() throws SQLException {
+        throw unsupportedOperation(Statement.class, "cancel");
+    }
+
+    /**
+     * @see java.sql.Statement#getWarnings()
+     */
+    @Override
+    public SQLWarning getWarnings() throws SQLException {
+        throw unsupportedOperation(Statement.class, "getWarnings");
+    }
+
+    /**
+     * @see java.sql.Statement#clearWarnings()
+     */
+    @Override
+    public void clearWarnings() throws SQLException {
+        throw unsupportedOperation(Statement.class, "clearWarnings");
+    }
+
+    /**
+     * @see java.sql.Statement#setCursorName(java.lang.String)
+     */
+    @Override
+    public void setCursorName(@SuppressWarnings("unused") String name) throws SQLException {
+        throw unsupportedOperation(Statement.class, "setCursorName");
+    }
+
+    /**
+     * @see java.sql.Statement#getUpdateCount()
+     */
+    @Override
+    public int getUpdateCount() throws SQLException {
+        throw unsupportedOperation(Statement.class, "getUpdateCount");
+    }
+
+    /**
+     * @see java.sql.Statement#setFetchDirection(int)
+     */
+    @Override
+    public void setFetchDirection(@SuppressWarnings("unused") int direction) throws SQLException {
+        throw unsupportedOperation(Statement.class, "setFetchDirection");
+    }
+
+    /**
+     * @see java.sql.Statement#getFetchDirection()
+     */
+    @Override
+    public int getFetchDirection() throws SQLException {
+        throw unsupportedOperation(Statement.class, "getFetchDirection");
+    }
+
+    /**
+     * @see java.sql.Statement#setFetchSize(int)
+     */
+    @Override
+    public void setFetchSize(@SuppressWarnings("unused") int rows) throws SQLException {
+        throw unsupportedOperation(Statement.class, "setFetchSize");
+    }
+
+    /**
+     * @see java.sql.Statement#getFetchSize()
+     */
+    @Override
+    public int getFetchSize() throws SQLException {
+        throw unsupportedOperation(Statement.class, "getFetchSize");
+    }
+
+    /**
+     * @see java.sql.Statement#getResultSetConcurrency()
+     */
+    @Override
+    public int getResultSetConcurrency() throws SQLException {
+        throw unsupportedOperation(Statement.class, "getResultSetConcurrency");
+    }
+
+    /**
+     * @see java.sql.Statement#addBatch(java.lang.String)
+     */
+    @Override
+    public void addBatch(@SuppressWarnings("unused") String sql) throws SQLException {
+        throw unsupportedOperation(Statement.class, "addBatch");
+    }
+
+    /**
+     * @see java.sql.Statement#clearBatch()
+     */
+    @Override
+    public void clearBatch() throws SQLException {
+        throw unsupportedOperation(Statement.class, "clearBatch");
+    }
+
+    /**
+     * @see java.sql.Statement#executeBatch()
+     */
+    @Override
+    public int[] executeBatch() throws SQLException {
+        throw unsupportedOperation(Statement.class, "executeBatch");
+    }
+
+    /**
+     * @see java.sql.Statement#getMoreResults(int)
+     */
+    @Override
+    public boolean getMoreResults(@SuppressWarnings("unused") int current) throws SQLException {
+        throw unsupportedOperation(Statement.class, "getMoreResults");
+    }
+
+    /**
+     * @see java.sql.Statement#getGeneratedKeys()
+     */
+    @Override
+    public ResultSet getGeneratedKeys() throws SQLException {
+        throw unsupportedOperation(Statement.class, "getGeneratedKeys");
+    }
+
+    /**
+     * @see java.sql.Statement#executeUpdate(java.lang.String, int)
+     */
+    @Override
+    public int executeUpdate(@SuppressWarnings("unused") String sql, @SuppressWarnings("unused") int autoGeneratedKeys) throws SQLException {
+        throw unsupportedOperation(Statement.class, "executeUpdate");
+    }
+
+    /**
+     * @see java.sql.Statement#executeUpdate(java.lang.String, int[])
+     */
+    @Override
+    public int executeUpdate(@SuppressWarnings("unused") String sql, @SuppressWarnings("unused") int[] columnIndexes) throws SQLException {
+        throw unsupportedOperation(Statement.class, "executeUpdate");
+    }
+
+    /**
+     * @see java.sql.Statement#executeUpdate(java.lang.String, java.lang.String[])
+     */
+    @Override
+    public int executeUpdate(@SuppressWarnings("unused") String sql, @SuppressWarnings("unused") String[] columnNames) throws SQLException {
+        throw unsupportedOperation(Statement.class, "executeUpdate");
+    }
+
+    /**
+     * @see java.sql.Statement#getResultSetHoldability()
+     */
+    @Override
+    public int getResultSetHoldability() throws SQLException {
+        throw unsupportedOperation(Statement.class, "getResultSetHoldability");
+    }
+
+    /**
+     * @see java.sql.Statement#setPoolable(boolean)
+     */
+    @Override
+    public void setPoolable(@SuppressWarnings("unused") boolean poolable) throws SQLException {
+        throw unsupportedOperation(Statement.class, "setPoolable");
+    }
+
+    /**
+     * @see java.sql.Statement#isPoolable()
+     */
+    @Override
+    public boolean isPoolable() throws SQLException {
+        throw unsupportedOperation(Statement.class, "isPoolable");
+    }
+
+    /**
+     * @see java.sql.Statement#closeOnCompletion()
+     */
+    @Override
+    public void closeOnCompletion() throws SQLException {
+        throw unsupportedOperation(Statement.class, "closeOnCompletion");
+    }
+
+    /**
+     * @see java.sql.Statement#isCloseOnCompletion()
+     */
+    @Override
+    public boolean isCloseOnCompletion() throws SQLException {
+        throw unsupportedOperation(Statement.class, "isCloseOnCompletion");
+    }
+
+    /**
+     * @see java.sql.Statement#getMoreResults()
+     */
+    @Override
+    public boolean getMoreResults() throws SQLException {
+        throw unsupportedOperation(Statement.class, "getMoreResults");
+    }
+
+    /**
+     * @see java.sql.Statement#getResultSetType()
+     */
+    @Override
+    public int getResultSetType() throws SQLException {
+        throw unsupportedOperation(Statement.class, "getResultSetType");
+    }
+
+    /**
+     * @see java.sql.Statement#execute(java.lang.String, int)
+     */
+    @Override
+    public boolean execute(@SuppressWarnings("unused") String sql, @SuppressWarnings("unused") int autoGeneratedKeys) throws SQLException {
+        throw unsupportedOperation(Statement.class, "execute");
+    }
+
+    /**
+     * @see java.sql.Statement#execute(java.lang.String, int[])
+     */
+    @Override
+    public boolean execute(@SuppressWarnings("unused") String sql, @SuppressWarnings("unused") int[] columnIndexes) throws SQLException {
+        throw unsupportedOperation(Statement.class, "execute");
+    }
+
+    /**
+     * @see java.sql.Statement#execute(java.lang.String, java.lang.String[])
+     */
+    @Override
+    public boolean execute(@SuppressWarnings("unused") String sql, @SuppressWarnings("unused") String[] columnNames) throws SQLException {
+        throw unsupportedOperation(Statement.class, "execute");
+    }
+}

Propchange: sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractStatement.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/AbstractStatement.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain;charset=UTF-8



Mime
View raw message