sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1644556 [6/10] - in /sis/branches/JDK8: core/sis-referencing/src/main/java/org/apache/sis/referencing/datum/ core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/matrix/ core/sis-referencing/src/main/java/org/apache/sis/...
Date Thu, 11 Dec 2014 05:08:41 GMT
Modified: sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/AbstractUnimplementedFeaturesOfResultSet.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/AbstractUnimplementedFeaturesOfResultSet.java?rev=1644556&r1=1644555&r2=1644556&view=diff
==============================================================================
--- sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/AbstractUnimplementedFeaturesOfResultSet.java [iso-8859-1] (original)
+++ sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/AbstractUnimplementedFeaturesOfResultSet.java [UTF-8] Thu Dec 11 05:08:40 2014
@@ -1,707 +1,707 @@
-/*
- * 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.resultset;
-
-import java.io.InputStream;
-import java.io.Reader;
-import java.math.BigDecimal;
-import java.net.URL;
-import java.sql.*;
-import java.util.Calendar;
-import java.util.Map;
-
-import org.apache.sis.internal.shapefile.jdbc.AbstractJDBC;
-
-
-/**
- * Holds all the unimplemented feature of a {@code ResultSet}.
- * This is in order to avoid having a ResultSet implementation of thousand lines and unreadable.
- *
- * <table class="sis">
- *   <caption>Connection default values</caption>
- *   <tr><th>Property</th>                           <th>Value</th></tr>
- *   <tr><td>{@link #getType()}</td>                 <td>{@link Statement#getResultSetType()}</td></tr>
- *   <tr><td>{@link #getConcurrency()}</td>          <td>{@link Statement#getResultSetConcurrency()}</td></tr>
- *   <tr><td>{@link #getHoldability()}</td>          <td>{@link Statement#getResultSetHoldability()}</td></tr>
- *   <tr><td>{@link #getFetchDirection()}</td>       <td>{@link Statement#getFetchDirection()}</td></tr>
- *   <tr><td>{@link #getFetchSize()}</td>            <td>{@link Statement#getFetchSize()}</td></tr>
- *   <tr><td>{@link #isBeforeFirst()}</td>           <td>Compute from {@link #getRow()}</td></tr>
- *   <tr><td>{@link #isFirst()}</td>                 <td>Compute from {@link #getRow()}</td></tr>
- *   <tr><td>{@link #relative(int)}</td>             <td>Use {@link #absolute(int)}</td></tr>
- *   <tr><td>{@link #beforeFirst()}</td>             <td>Use {@link #absolute(int)}</td></tr>
- *   <tr><td>{@link #first()}</td>                   <td>Use {@link #absolute(int)}</td></tr>
- *   <tr><td>{@link #last()}</td>                    <td>Use {@link #absolute(int)}</td></tr>
- *   <tr><td>{@link #afterLast()}</td>               <td>Use {@link #absolute(int)}</td></tr>
- *   <tr><td>{@link #previous()}</td>                <td>Use {@link #relative(int)}</td></tr>
- *   <tr><td>{@link #getNString(int)}</td>           <td>{@link #getString(int)}</td></tr>
- *   <tr><td>{@link #getNCharacterStream(int)}</td>  <td>{@link #getCharacterStream(int)}</td></tr>
- *   <tr><td>{@link #getWarnings()}</td>             <td>{@code null}</td></tr>
- *   <tr><td>{@link #clearWarnings()}</td>           <td>Ignored</td></tr>
- * </table>
- *
- * Furthermore, most methods expecting a column label of type {@code String} first invoke {@link #findColumn(String)},
- * then invoke the method of the same name expecting a column index as an {@code int}.
- *
- * @author  Marc Le Bihan
- * @version 0.5
- * @since   0.5
- * @module
- */
-abstract public class AbstractUnimplementedFeaturesOfResultSet extends AbstractJDBC implements ResultSet {
-    /* 
-     * Note to developpers : this class only offers methods that return unsupported exceptions : methods that are not implemented anywhere.
-     * if any implementation is done, even a redirection to another class or method, please move the implementation on the next subclass.
-     */
-    
-    /**
-     * Constructs a new {@code ResultSet} instance.
-     */
-    public AbstractUnimplementedFeaturesOfResultSet() {
-    }
-
-    /**
-     * @see java.sql.ResultSet#getBoolean(java.lang.String)
-     */
-    @Override
-    public boolean getBoolean(String columnLabel) throws SQLException {
-        throw unsupportedOperation("getBoolean", columnLabel);
-    }
-
-    /**
-     * @see java.sql.ResultSet#getByte(java.lang.String)
-     */
-    @Override
-    public byte getByte(String columnLabel) throws SQLException {
-        throw unsupportedOperation("getByte", columnLabel);
-    }
-
-    /**
-     * @see java.sql.ResultSet#getBytes(java.lang.String)
-     */
-    @Override
-    public byte[] getBytes(String columnLabel) throws SQLException {
-        throw unsupportedOperation("getBytes", columnLabel);
-    }
-
-    /**
-     * @see java.sql.ResultSet#getTime(java.lang.String)
-     */
-    @Override
-    public Time getTime(String columnLabel) throws SQLException {
-        throw unsupportedOperation("getTime", columnLabel);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void setFetchDirection(int direction) throws SQLException {
-        throw unsupportedOperation("setFetchDirection", direction);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void setFetchSize(int rows) throws SQLException {
-        throw unsupportedOperation("setFetchSize", rows);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public String getCursorName() throws SQLException {
-        throw unsupportedOperation("getCursorName");
-    }
-
-    /**
-     * Retrieves the current row number (first row is 1). This method is unsupported by default.
-     * Implementing this method will allow {@link #relative(int)} and other methods to work with
-     * their default implementation.
-     */
-    @Override
-    public int getRow() throws SQLException {
-        throw unsupportedOperation("getRow");
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public boolean isLast() throws SQLException {
-        throw unsupportedOperation("isLast");
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public boolean isAfterLast() throws SQLException {
-        throw unsupportedOperation("isAfterLast");
-    }
-
-    /**
-     * Moves the cursor to the given row number (first row is 1).
-     * Special cases:
-     * <ul>
-     *   <li>Negative numbers move to an absolute row position with respect to the end of the result set.</li>
-     *   <li>-1 moves on the last row.</li>
-     *   <li> 0 moves the cursor before the first row.</li>
-     * </ul>
-     *
-     * This method is unsupported by default. Implementing this method will allow
-     * {@link #relative(int)} and other methods to work with their default implementation.
-     *
-     * @return {@code true} if the cursor is on a row.
-     */
-    @Override
-    public boolean absolute(int row) throws SQLException {
-        throw unsupportedOperation("absolute", row);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public RowId getRowId(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getRowId", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public boolean getBoolean(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getBoolean", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public byte getByte(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getByte", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public byte[] getBytes(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getBytes", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public Date getDate(int columnIndex, Calendar cal) throws SQLException {
-        throw unsupportedOperation("getDate", columnIndex, cal);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public Time getTime(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getTime", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public Time getTime(int columnIndex, Calendar cal) throws SQLException {
-        throw unsupportedOperation("getTime", columnIndex, cal);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public Timestamp getTimestamp(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getTimestamp", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException {
-        throw unsupportedOperation("getTimestamp", columnIndex, cal);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public URL getURL(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getURL", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public Array getArray(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getArray", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public SQLXML getSQLXML(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getSQLXML", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public Object getObject(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getObject", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public Object getObject(int columnIndex, Map<String, Class<?>> map) throws SQLException {
-        throw unsupportedOperation("getObject", columnIndex, map);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
-        throw unsupportedOperation("getObject", columnIndex, type);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public Ref getRef(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getRef", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public Blob getBlob(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getBlob", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public Clob getClob(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getClob", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public NClob getNClob(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getNClob", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public NClob getNClob(String columnLabel) throws SQLException {
-        throw unsupportedOperation("getNClob", columnLabel);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public InputStream getAsciiStream(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getAsciiStream", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public Reader getCharacterStream(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getCharacterStream", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    @Deprecated
-    public InputStream getUnicodeStream(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getUnicodeStream", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public InputStream getBinaryStream(int columnIndex) throws SQLException {
-        throw unsupportedOperation("getBinaryStream", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateNull(int columnIndex) throws SQLException {
-        throw unsupportedOperation("updateNull", columnIndex);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateRowId(int columnIndex, RowId x) throws SQLException {
-        throw unsupportedOperation("updateRowId", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateString(int columnIndex, String x) throws SQLException {
-        throw unsupportedOperation("updateString", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateBoolean(int columnIndex, boolean x) throws SQLException {
-        throw unsupportedOperation("updateBoolean", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateByte(int columnIndex, byte x) throws SQLException {
-        throw unsupportedOperation("updateByte", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateBytes(int columnIndex, byte[] x) throws SQLException {
-        throw unsupportedOperation("updateBytes", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateShort(int columnIndex, short x) throws SQLException {
-        throw unsupportedOperation("updateShort", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateInt(int columnIndex, int x) throws SQLException {
-        throw unsupportedOperation("updateInt", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateLong(int columnIndex, long x) throws SQLException {
-        throw unsupportedOperation("updateLong", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateFloat(int columnIndex, float x) throws SQLException {
-        throw unsupportedOperation("updateFloat", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateDouble(int columnIndex, double x) throws SQLException {
-        throw unsupportedOperation("updateDouble", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException {
-        throw unsupportedOperation("updateBigDecimal", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateDate(int columnIndex, Date x) throws SQLException {
-        throw unsupportedOperation("updateDate", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateTime(int columnIndex, Time x) throws SQLException {
-        throw unsupportedOperation("updateTime", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {
-        throw unsupportedOperation("updateTimestamp", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateArray(int columnIndex, Array x) throws SQLException {
-        throw unsupportedOperation("updateArray", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateObject(int columnIndex, Object x) throws SQLException {
-        throw unsupportedOperation("updateObject", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateObject(int columnIndex, Object x, int scaleOrLength) throws SQLException {
-        throw unsupportedOperation("updateObject", columnIndex, x, scaleOrLength);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateSQLXML(int columnIndex, SQLXML x) throws SQLException {
-        throw unsupportedOperation("updateSQLXML", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateRef(int columnIndex, Ref x) throws SQLException {
-        throw unsupportedOperation("updateRef", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateBlob(int columnIndex, Blob x) throws SQLException {
-        throw unsupportedOperation("updateBlob", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException {
-        throw unsupportedOperation("updateBlob", columnIndex, inputStream, length);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateClob(int columnIndex, Clob x) throws SQLException {
-        throw unsupportedOperation("updateClob", columnIndex, x);
-    }
-
-    /**
-     * @see java.sql.ResultSet#updateClob(int, java.io.Reader, long)
-     */
-    @Override
-    public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {
-        throw unsupportedOperation("updateClob", columnIndex, reader, length);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException {
-        throw unsupportedOperation("updateAsciiStream", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException {
-        throw unsupportedOperation("updateAsciiStream", columnIndex, x, length);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateCharacterStream(int columnIndex, Reader x) throws SQLException {
-        throw unsupportedOperation("updateCharacterStream", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
-        throw unsupportedOperation("updateCharacterStream", columnIndex, x, length);
-    }
-
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {
-        throw unsupportedOperation("updateBinaryStream", columnIndex, x);
-    }
-
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException {
-        throw unsupportedOperation("updateBinaryStream", columnIndex, x, length);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateBlob(int columnIndex, InputStream x) throws SQLException {
-        throw unsupportedOperation("updateBlob", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateClob(int columnIndex, Reader x) throws SQLException {
-        throw unsupportedOperation("updateClob", columnIndex, x);
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void insertRow() throws SQLException {
-        throw unsupportedOperation("insertRow");
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void updateRow() throws SQLException {
-        throw unsupportedOperation("updateRow");
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void deleteRow() throws SQLException {
-        throw unsupportedOperation("deleteRow");
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void refreshRow() throws SQLException {
-        throw unsupportedOperation("refreshRow");
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void cancelRowUpdates() throws SQLException {
-        throw unsupportedOperation("cancelRowUpdates");
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void moveToInsertRow() throws SQLException {
-        throw unsupportedOperation("moveToInsertRow");
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public void moveToCurrentRow() throws SQLException {
-        throw unsupportedOperation("moveToCurrentRow");
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public boolean rowUpdated() throws SQLException {
-        throw unsupportedOperation("rowUpdated");
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public boolean rowInserted() throws SQLException {
-        throw unsupportedOperation("rowInserted");
-    }
-
-    /**
-     * Unsupported by default.
-     */
-    @Override
-    public boolean rowDeleted() throws SQLException {
-        throw unsupportedOperation("rowDeleted");
-    }
-}
+/*
+ * 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.resultset;
+
+import java.io.InputStream;
+import java.io.Reader;
+import java.math.BigDecimal;
+import java.net.URL;
+import java.sql.*;
+import java.util.Calendar;
+import java.util.Map;
+
+import org.apache.sis.internal.shapefile.jdbc.AbstractJDBC;
+
+
+/**
+ * Holds all the unimplemented feature of a {@code ResultSet}.
+ * This is in order to avoid having a ResultSet implementation of thousand lines and unreadable.
+ *
+ * <table class="sis">
+ *   <caption>Connection default values</caption>
+ *   <tr><th>Property</th>                           <th>Value</th></tr>
+ *   <tr><td>{@link #getType()}</td>                 <td>{@link Statement#getResultSetType()}</td></tr>
+ *   <tr><td>{@link #getConcurrency()}</td>          <td>{@link Statement#getResultSetConcurrency()}</td></tr>
+ *   <tr><td>{@link #getHoldability()}</td>          <td>{@link Statement#getResultSetHoldability()}</td></tr>
+ *   <tr><td>{@link #getFetchDirection()}</td>       <td>{@link Statement#getFetchDirection()}</td></tr>
+ *   <tr><td>{@link #getFetchSize()}</td>            <td>{@link Statement#getFetchSize()}</td></tr>
+ *   <tr><td>{@link #isBeforeFirst()}</td>           <td>Compute from {@link #getRow()}</td></tr>
+ *   <tr><td>{@link #isFirst()}</td>                 <td>Compute from {@link #getRow()}</td></tr>
+ *   <tr><td>{@link #relative(int)}</td>             <td>Use {@link #absolute(int)}</td></tr>
+ *   <tr><td>{@link #beforeFirst()}</td>             <td>Use {@link #absolute(int)}</td></tr>
+ *   <tr><td>{@link #first()}</td>                   <td>Use {@link #absolute(int)}</td></tr>
+ *   <tr><td>{@link #last()}</td>                    <td>Use {@link #absolute(int)}</td></tr>
+ *   <tr><td>{@link #afterLast()}</td>               <td>Use {@link #absolute(int)}</td></tr>
+ *   <tr><td>{@link #previous()}</td>                <td>Use {@link #relative(int)}</td></tr>
+ *   <tr><td>{@link #getNString(int)}</td>           <td>{@link #getString(int)}</td></tr>
+ *   <tr><td>{@link #getNCharacterStream(int)}</td>  <td>{@link #getCharacterStream(int)}</td></tr>
+ *   <tr><td>{@link #getWarnings()}</td>             <td>{@code null}</td></tr>
+ *   <tr><td>{@link #clearWarnings()}</td>           <td>Ignored</td></tr>
+ * </table>
+ *
+ * Furthermore, most methods expecting a column label of type {@code String} first invoke {@link #findColumn(String)},
+ * then invoke the method of the same name expecting a column index as an {@code int}.
+ *
+ * @author  Marc Le Bihan
+ * @version 0.5
+ * @since   0.5
+ * @module
+ */
+abstract public class AbstractUnimplementedFeaturesOfResultSet extends AbstractJDBC implements ResultSet {
+    /* 
+     * Note to developpers : this class only offers methods that return unsupported exceptions : methods that are not implemented anywhere.
+     * if any implementation is done, even a redirection to another class or method, please move the implementation on the next subclass.
+     */
+    
+    /**
+     * Constructs a new {@code ResultSet} instance.
+     */
+    public AbstractUnimplementedFeaturesOfResultSet() {
+    }
+
+    /**
+     * @see java.sql.ResultSet#getBoolean(java.lang.String)
+     */
+    @Override
+    public boolean getBoolean(String columnLabel) throws SQLException {
+        throw unsupportedOperation("getBoolean", columnLabel);
+    }
+
+    /**
+     * @see java.sql.ResultSet#getByte(java.lang.String)
+     */
+    @Override
+    public byte getByte(String columnLabel) throws SQLException {
+        throw unsupportedOperation("getByte", columnLabel);
+    }
+
+    /**
+     * @see java.sql.ResultSet#getBytes(java.lang.String)
+     */
+    @Override
+    public byte[] getBytes(String columnLabel) throws SQLException {
+        throw unsupportedOperation("getBytes", columnLabel);
+    }
+
+    /**
+     * @see java.sql.ResultSet#getTime(java.lang.String)
+     */
+    @Override
+    public Time getTime(String columnLabel) throws SQLException {
+        throw unsupportedOperation("getTime", columnLabel);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void setFetchDirection(int direction) throws SQLException {
+        throw unsupportedOperation("setFetchDirection", direction);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void setFetchSize(int rows) throws SQLException {
+        throw unsupportedOperation("setFetchSize", rows);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public String getCursorName() throws SQLException {
+        throw unsupportedOperation("getCursorName");
+    }
+
+    /**
+     * Retrieves the current row number (first row is 1). This method is unsupported by default.
+     * Implementing this method will allow {@link #relative(int)} and other methods to work with
+     * their default implementation.
+     */
+    @Override
+    public int getRow() throws SQLException {
+        throw unsupportedOperation("getRow");
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public boolean isLast() throws SQLException {
+        throw unsupportedOperation("isLast");
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public boolean isAfterLast() throws SQLException {
+        throw unsupportedOperation("isAfterLast");
+    }
+
+    /**
+     * Moves the cursor to the given row number (first row is 1).
+     * Special cases:
+     * <ul>
+     *   <li>Negative numbers move to an absolute row position with respect to the end of the result set.</li>
+     *   <li>-1 moves on the last row.</li>
+     *   <li> 0 moves the cursor before the first row.</li>
+     * </ul>
+     *
+     * This method is unsupported by default. Implementing this method will allow
+     * {@link #relative(int)} and other methods to work with their default implementation.
+     *
+     * @return {@code true} if the cursor is on a row.
+     */
+    @Override
+    public boolean absolute(int row) throws SQLException {
+        throw unsupportedOperation("absolute", row);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public RowId getRowId(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getRowId", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public boolean getBoolean(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getBoolean", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public byte getByte(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getByte", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public byte[] getBytes(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getBytes", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public Date getDate(int columnIndex, Calendar cal) throws SQLException {
+        throw unsupportedOperation("getDate", columnIndex, cal);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public Time getTime(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getTime", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public Time getTime(int columnIndex, Calendar cal) throws SQLException {
+        throw unsupportedOperation("getTime", columnIndex, cal);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public Timestamp getTimestamp(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getTimestamp", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException {
+        throw unsupportedOperation("getTimestamp", columnIndex, cal);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public URL getURL(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getURL", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public Array getArray(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getArray", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public SQLXML getSQLXML(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getSQLXML", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public Object getObject(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getObject", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public Object getObject(int columnIndex, Map<String, Class<?>> map) throws SQLException {
+        throw unsupportedOperation("getObject", columnIndex, map);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
+        throw unsupportedOperation("getObject", columnIndex, type);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public Ref getRef(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getRef", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public Blob getBlob(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getBlob", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public Clob getClob(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getClob", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public NClob getNClob(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getNClob", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public NClob getNClob(String columnLabel) throws SQLException {
+        throw unsupportedOperation("getNClob", columnLabel);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public InputStream getAsciiStream(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getAsciiStream", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public Reader getCharacterStream(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getCharacterStream", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    @Deprecated
+    public InputStream getUnicodeStream(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getUnicodeStream", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public InputStream getBinaryStream(int columnIndex) throws SQLException {
+        throw unsupportedOperation("getBinaryStream", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateNull(int columnIndex) throws SQLException {
+        throw unsupportedOperation("updateNull", columnIndex);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateRowId(int columnIndex, RowId x) throws SQLException {
+        throw unsupportedOperation("updateRowId", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateString(int columnIndex, String x) throws SQLException {
+        throw unsupportedOperation("updateString", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateBoolean(int columnIndex, boolean x) throws SQLException {
+        throw unsupportedOperation("updateBoolean", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateByte(int columnIndex, byte x) throws SQLException {
+        throw unsupportedOperation("updateByte", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateBytes(int columnIndex, byte[] x) throws SQLException {
+        throw unsupportedOperation("updateBytes", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateShort(int columnIndex, short x) throws SQLException {
+        throw unsupportedOperation("updateShort", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateInt(int columnIndex, int x) throws SQLException {
+        throw unsupportedOperation("updateInt", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateLong(int columnIndex, long x) throws SQLException {
+        throw unsupportedOperation("updateLong", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateFloat(int columnIndex, float x) throws SQLException {
+        throw unsupportedOperation("updateFloat", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateDouble(int columnIndex, double x) throws SQLException {
+        throw unsupportedOperation("updateDouble", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException {
+        throw unsupportedOperation("updateBigDecimal", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateDate(int columnIndex, Date x) throws SQLException {
+        throw unsupportedOperation("updateDate", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateTime(int columnIndex, Time x) throws SQLException {
+        throw unsupportedOperation("updateTime", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {
+        throw unsupportedOperation("updateTimestamp", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateArray(int columnIndex, Array x) throws SQLException {
+        throw unsupportedOperation("updateArray", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateObject(int columnIndex, Object x) throws SQLException {
+        throw unsupportedOperation("updateObject", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateObject(int columnIndex, Object x, int scaleOrLength) throws SQLException {
+        throw unsupportedOperation("updateObject", columnIndex, x, scaleOrLength);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateSQLXML(int columnIndex, SQLXML x) throws SQLException {
+        throw unsupportedOperation("updateSQLXML", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateRef(int columnIndex, Ref x) throws SQLException {
+        throw unsupportedOperation("updateRef", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateBlob(int columnIndex, Blob x) throws SQLException {
+        throw unsupportedOperation("updateBlob", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateBlob(int columnIndex, InputStream inputStream, long length) throws SQLException {
+        throw unsupportedOperation("updateBlob", columnIndex, inputStream, length);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateClob(int columnIndex, Clob x) throws SQLException {
+        throw unsupportedOperation("updateClob", columnIndex, x);
+    }
+
+    /**
+     * @see java.sql.ResultSet#updateClob(int, java.io.Reader, long)
+     */
+    @Override
+    public void updateClob(int columnIndex, Reader reader, long length) throws SQLException {
+        throw unsupportedOperation("updateClob", columnIndex, reader, length);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateAsciiStream(int columnIndex, InputStream x) throws SQLException {
+        throw unsupportedOperation("updateAsciiStream", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateAsciiStream(int columnIndex, InputStream x, long length) throws SQLException {
+        throw unsupportedOperation("updateAsciiStream", columnIndex, x, length);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateCharacterStream(int columnIndex, Reader x) throws SQLException {
+        throw unsupportedOperation("updateCharacterStream", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateCharacterStream(int columnIndex, Reader x, long length) throws SQLException {
+        throw unsupportedOperation("updateCharacterStream", columnIndex, x, length);
+    }
+
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateBinaryStream(int columnIndex, InputStream x) throws SQLException {
+        throw unsupportedOperation("updateBinaryStream", columnIndex, x);
+    }
+
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateBinaryStream(int columnIndex, InputStream x, long length) throws SQLException {
+        throw unsupportedOperation("updateBinaryStream", columnIndex, x, length);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateBlob(int columnIndex, InputStream x) throws SQLException {
+        throw unsupportedOperation("updateBlob", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateClob(int columnIndex, Reader x) throws SQLException {
+        throw unsupportedOperation("updateClob", columnIndex, x);
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void insertRow() throws SQLException {
+        throw unsupportedOperation("insertRow");
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void updateRow() throws SQLException {
+        throw unsupportedOperation("updateRow");
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void deleteRow() throws SQLException {
+        throw unsupportedOperation("deleteRow");
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void refreshRow() throws SQLException {
+        throw unsupportedOperation("refreshRow");
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void cancelRowUpdates() throws SQLException {
+        throw unsupportedOperation("cancelRowUpdates");
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void moveToInsertRow() throws SQLException {
+        throw unsupportedOperation("moveToInsertRow");
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public void moveToCurrentRow() throws SQLException {
+        throw unsupportedOperation("moveToCurrentRow");
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public boolean rowUpdated() throws SQLException {
+        throw unsupportedOperation("rowUpdated");
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public boolean rowInserted() throws SQLException {
+        throw unsupportedOperation("rowInserted");
+    }
+
+    /**
+     * Unsupported by default.
+     */
+    @Override
+    public boolean rowDeleted() throws SQLException {
+        throw unsupportedOperation("rowDeleted");
+    }
+}

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

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

Modified: sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/DBFBuiltInMemoryResultSetForCatalogNamesListing.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/DBFBuiltInMemoryResultSetForCatalogNamesListing.java?rev=1644556&r1=1644555&r2=1644556&view=diff
==============================================================================
--- sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/DBFBuiltInMemoryResultSetForCatalogNamesListing.java [iso-8859-1] (original)
+++ sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/DBFBuiltInMemoryResultSetForCatalogNamesListing.java [UTF-8] Thu Dec 11 05:08:40 2014
@@ -1,52 +1,52 @@
-/*
- * 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.resultset;
-
-import org.apache.sis.internal.shapefile.jdbc.statement.DBFStatement;
-
-
-/**
- * Special ResultSet listing tables types contained in this DBase 3 (none).
- * @author Marc LE BIHAN
- */
-public class DBFBuiltInMemoryResultSetForCatalogNamesListing extends AbstractBuiltInMemoryResultSet {
-    /**
-     * Construct a ResultSet listing the catalog names of a database.
-     * @param stmt Statement.
-     */
-    public DBFBuiltInMemoryResultSetForCatalogNamesListing(DBFStatement stmt) {
-        super(stmt, "driver list catalog names");
-    }
-
-    /**
-     * @see java.sql.ResultSet#next()
-     */
-    @Override public boolean next() {
-        logStep("next");
-        return false;
-    }
-
-    /**
-     * @see java.sql.ResultSet#wasNull()
-     */
-    @Override
-    public boolean wasNull() {
-        logStep("wasNull");
-        return true;
-    }
-}
-
+/*
+ * 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.resultset;
+
+import org.apache.sis.internal.shapefile.jdbc.statement.DBFStatement;
+
+
+/**
+ * Special ResultSet listing tables types contained in this DBase 3 (none).
+ * @author Marc LE BIHAN
+ */
+public class DBFBuiltInMemoryResultSetForCatalogNamesListing extends AbstractBuiltInMemoryResultSet {
+    /**
+     * Construct a ResultSet listing the catalog names of a database.
+     * @param stmt Statement.
+     */
+    public DBFBuiltInMemoryResultSetForCatalogNamesListing(DBFStatement stmt) {
+        super(stmt, "driver list catalog names");
+    }
+
+    /**
+     * @see java.sql.ResultSet#next()
+     */
+    @Override public boolean next() {
+        logStep("next");
+        return false;
+    }
+
+    /**
+     * @see java.sql.ResultSet#wasNull()
+     */
+    @Override
+    public boolean wasNull() {
+        logStep("wasNull");
+        return true;
+    }
+}
+

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

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

Modified: sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/DBFBuiltInMemoryResultSetForSchemaListing.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/DBFBuiltInMemoryResultSetForSchemaListing.java?rev=1644556&r1=1644555&r2=1644556&view=diff
==============================================================================
--- sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/DBFBuiltInMemoryResultSetForSchemaListing.java [iso-8859-1] (original)
+++ sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/DBFBuiltInMemoryResultSetForSchemaListing.java [UTF-8] Thu Dec 11 05:08:40 2014
@@ -1,51 +1,51 @@
-/*
- * 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.resultset;
-
-import org.apache.sis.internal.shapefile.jdbc.statement.DBFStatement;
-
-
-/**
- * Special ResultSet listing schemas contained in this DBase 3 (they are none).
- * @author Marc LE BIHAN
- */
-public class DBFBuiltInMemoryResultSetForSchemaListing extends AbstractBuiltInMemoryResultSet {
-    /**
-     * Construct a ResultSet listing the tables of a database.
-     * @param stmt Statement.
-     */
-    public DBFBuiltInMemoryResultSetForSchemaListing(DBFStatement stmt) {
-        super(stmt, "driver list schemas in this DBase file");
-    }
-
-    /**
-     * @see java.sql.ResultSet#next()
-     */
-    @Override public boolean next() {
-        logStep("next");
-        return false;
-    }
-
-    /**
-     * @see java.sql.ResultSet#wasNull()
-     */
-    @Override
-    public boolean wasNull() {
-        logStep("wasNull");
-        return true;
-    }
-}
+/*
+ * 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.resultset;
+
+import org.apache.sis.internal.shapefile.jdbc.statement.DBFStatement;
+
+
+/**
+ * Special ResultSet listing schemas contained in this DBase 3 (they are none).
+ * @author Marc LE BIHAN
+ */
+public class DBFBuiltInMemoryResultSetForSchemaListing extends AbstractBuiltInMemoryResultSet {
+    /**
+     * Construct a ResultSet listing the tables of a database.
+     * @param stmt Statement.
+     */
+    public DBFBuiltInMemoryResultSetForSchemaListing(DBFStatement stmt) {
+        super(stmt, "driver list schemas in this DBase file");
+    }
+
+    /**
+     * @see java.sql.ResultSet#next()
+     */
+    @Override public boolean next() {
+        logStep("next");
+        return false;
+    }
+
+    /**
+     * @see java.sql.ResultSet#wasNull()
+     */
+    @Override
+    public boolean wasNull() {
+        logStep("wasNull");
+        return true;
+    }
+}

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

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

Modified: sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/DBFBuiltInMemoryResultSetForTablesListing.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/DBFBuiltInMemoryResultSetForTablesListing.java?rev=1644556&r1=1644555&r2=1644556&view=diff
==============================================================================
--- sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/DBFBuiltInMemoryResultSetForTablesListing.java [iso-8859-1] (original)
+++ sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/DBFBuiltInMemoryResultSetForTablesListing.java [UTF-8] Thu Dec 11 05:08:40 2014
@@ -1,92 +1,92 @@
-/*
- * 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.resultset;
-
-import java.util.logging.Level;
-
-import org.apache.sis.internal.shapefile.jdbc.statement.DBFStatement;
-
-/**
- * Special ResultSet listing tables contained in this DBase 3 (a single table).
- * @author Marc LE BIHAN
- */
-public class DBFBuiltInMemoryResultSetForTablesListing extends AbstractBuiltInMemoryResultSet {
-    /** There's only one result in this ResultSet. */
-    private int m_index = 0;
-    
-    /**
-     * Construct a ResultSet.
-     * @param stmt Statement.
-     */
-    public DBFBuiltInMemoryResultSetForTablesListing(DBFStatement stmt) {
-        super(stmt, "driver list tables in this DBase 3 file");
-    }
-
-    /**
-     * @see java.sql.ResultSet#getString(java.lang.String)
-     */
-    @Override public String getString(String columnLabel) {
-        logStep("getString", columnLabel);
-        
-        switch(columnLabel) {
-            case "TABLE_NAME":                // String => table name.
-            {
-                // The table default to the file name (without its extension .dbf).
-                String fileName = getDatabase().getFile().getName(); 
-                int indexDBF = fileName.lastIndexOf(".");
-                String tableName = fileName.substring(0, indexDBF);
-                
-                m_wasNull = (tableName == null);
-                return tableName;
-            }
-                
-            case "TABLE_TYPE":                // String => table type. Typical types are "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".
-                m_wasNull = false;
-                return "TABLE";
-                
-            case "TYPE_NAME":                 // String => type name (may be null) 
-            case "TABLE_CAT":                 // String => table catalog (may be null) 
-            case "TABLE_SCHEM":               // String => table schema (may be null) 
-            case "REMARKS":                   // String => explanatory comment on the table 
-            case "TYPE_CAT":                  // String => the types catalog (may be null) 
-            case "TYPE_SCHEM":                // String => the types schema (may be null) 
-            case "SELF_REFERENCING_COL_NAME": // String => name of the designated "identifier" column of a typed table (may be null)
-            case "REF_GENERATION":            // String => specifies how values in SELF_REFERENCING_COL_NAME are created. Values are "SYSTEM", "USER", "DERIVED". (may be null)
-                m_wasNull = true;
-                return null;
-
-            default:
-                m_wasNull = true;
-                return null;
-        }
-    }
-
-    /**
-     * @see java.sql.ResultSet#next()
-     */
-    @Override public boolean next() throws SQLNoResultException 
-    {
-        logStep("next");
-        
-        if (m_index > 1) {
-            throw new SQLNoResultException(format(Level.SEVERE, "excp.only_one_table_per_dbf"), "Driver manager asks for table listing", getDatabase().getFile());
-        }
-
-        m_index ++;
-        return (m_index == 1) ? true : false;
-    }
-}
+/*
+ * 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.resultset;
+
+import java.util.logging.Level;
+
+import org.apache.sis.internal.shapefile.jdbc.statement.DBFStatement;
+
+/**
+ * Special ResultSet listing tables contained in this DBase 3 (a single table).
+ * @author Marc LE BIHAN
+ */
+public class DBFBuiltInMemoryResultSetForTablesListing extends AbstractBuiltInMemoryResultSet {
+    /** There's only one result in this ResultSet. */
+    private int m_index = 0;
+    
+    /**
+     * Construct a ResultSet.
+     * @param stmt Statement.
+     */
+    public DBFBuiltInMemoryResultSetForTablesListing(DBFStatement stmt) {
+        super(stmt, "driver list tables in this DBase 3 file");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getString(java.lang.String)
+     */
+    @Override public String getString(String columnLabel) {
+        logStep("getString", columnLabel);
+        
+        switch(columnLabel) {
+            case "TABLE_NAME":                // String => table name.
+            {
+                // The table default to the file name (without its extension .dbf).
+                String fileName = getDatabase().getFile().getName(); 
+                int indexDBF = fileName.lastIndexOf(".");
+                String tableName = fileName.substring(0, indexDBF);
+                
+                m_wasNull = (tableName == null);
+                return tableName;
+            }
+                
+            case "TABLE_TYPE":                // String => table type. Typical types are "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".
+                m_wasNull = false;
+                return "TABLE";
+                
+            case "TYPE_NAME":                 // String => type name (may be null) 
+            case "TABLE_CAT":                 // String => table catalog (may be null) 
+            case "TABLE_SCHEM":               // String => table schema (may be null) 
+            case "REMARKS":                   // String => explanatory comment on the table 
+            case "TYPE_CAT":                  // String => the types catalog (may be null) 
+            case "TYPE_SCHEM":                // String => the types schema (may be null) 
+            case "SELF_REFERENCING_COL_NAME": // String => name of the designated "identifier" column of a typed table (may be null)
+            case "REF_GENERATION":            // String => specifies how values in SELF_REFERENCING_COL_NAME are created. Values are "SYSTEM", "USER", "DERIVED". (may be null)
+                m_wasNull = true;
+                return null;
+
+            default:
+                m_wasNull = true;
+                return null;
+        }
+    }
+
+    /**
+     * @see java.sql.ResultSet#next()
+     */
+    @Override public boolean next() throws SQLNoResultException 
+    {
+        logStep("next");
+        
+        if (m_index > 1) {
+            throw new SQLNoResultException(format(Level.SEVERE, "excp.only_one_table_per_dbf"), "Driver manager asks for table listing", getDatabase().getFile());
+        }
+
+        m_index ++;
+        return (m_index == 1) ? true : false;
+    }
+}

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

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

Modified: sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/DBFBuiltInMemoryResultSetForTablesTypesListing.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/DBFBuiltInMemoryResultSetForTablesTypesListing.java?rev=1644556&r1=1644555&r2=1644556&view=diff
==============================================================================
--- sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/DBFBuiltInMemoryResultSetForTablesTypesListing.java [iso-8859-1] (original)
+++ sis/branches/JDK8/storage/sis-shapefile/src/main/java/org/apache/sis/internal/shapefile/jdbc/resultset/DBFBuiltInMemoryResultSetForTablesTypesListing.java [UTF-8] Thu Dec 11 05:08:40 2014
@@ -1,74 +1,74 @@
-/*
- * 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.resultset;
-
-import java.util.logging.Level;
-
-import org.apache.sis.internal.shapefile.jdbc.statement.DBFStatement;
-
-/**
- * Special ResultSet listing tables types contained in this DBase 3 (only tables).
- * @author Marc LE BIHAN
- */
-public class DBFBuiltInMemoryResultSetForTablesTypesListing extends AbstractBuiltInMemoryResultSet {
-    /** There's only one result in this ResultSet. */
-    private int m_index = 0;
-    
-    /**
-     * Construct a ResultSet listing the tables types of a database.
-     * @param stmt Statement.
-     */
-    public DBFBuiltInMemoryResultSetForTablesTypesListing(DBFStatement stmt) {
-        super(stmt, "driver list tables types handled by DBase 3");
-    }
-
-    /**
-     * @see java.sql.ResultSet#getString(java.lang.String)
-     */
-    @Override public String getString(String columnLabel) {
-        logStep("getString", columnLabel);
-        
-        switch(columnLabel) {
-            case "OBJECTID":                  // FIXME Documentation of ObjectId for geTabletTypes() has not been found. What are the rules about this field ? 
-                m_wasNull = false;
-                return "1";
-        
-            case "TABLE_TYPE":                // String => table type. Typical types are "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".
-                m_wasNull = false;
-                return "TABLE";               // and DBase 3 only knows tables. 
-
-            default:
-                m_wasNull = true;
-                return null;
-        }
-    }
-
-    /**
-     * @see java.sql.ResultSet#next()
-     */
-    @Override public boolean next() throws SQLNoResultException 
-    {
-        logStep("next");        
-        
-        if (m_index > 1) {
-            throw new SQLNoResultException(format(Level.SEVERE, "excp.only_one_table_type_handled"), "Driver manager asks for table types listing", getDatabase().getFile());
-        }
-
-        m_index ++;
-        return (m_index == 1) ? true : false;
-    }
-}
+/*
+ * 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.resultset;
+
+import java.util.logging.Level;
+
+import org.apache.sis.internal.shapefile.jdbc.statement.DBFStatement;
+
+/**
+ * Special ResultSet listing tables types contained in this DBase 3 (only tables).
+ * @author Marc LE BIHAN
+ */
+public class DBFBuiltInMemoryResultSetForTablesTypesListing extends AbstractBuiltInMemoryResultSet {
+    /** There's only one result in this ResultSet. */
+    private int m_index = 0;
+    
+    /**
+     * Construct a ResultSet listing the tables types of a database.
+     * @param stmt Statement.
+     */
+    public DBFBuiltInMemoryResultSetForTablesTypesListing(DBFStatement stmt) {
+        super(stmt, "driver list tables types handled by DBase 3");
+    }
+
+    /**
+     * @see java.sql.ResultSet#getString(java.lang.String)
+     */
+    @Override public String getString(String columnLabel) {
+        logStep("getString", columnLabel);
+        
+        switch(columnLabel) {
+            case "OBJECTID":                  // FIXME Documentation of ObjectId for geTabletTypes() has not been found. What are the rules about this field ? 
+                m_wasNull = false;
+                return "1";
+        
+            case "TABLE_TYPE":                // String => table type. Typical types are "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".
+                m_wasNull = false;
+                return "TABLE";               // and DBase 3 only knows tables. 
+
+            default:
+                m_wasNull = true;
+                return null;
+        }
+    }
+
+    /**
+     * @see java.sql.ResultSet#next()
+     */
+    @Override public boolean next() throws SQLNoResultException 
+    {
+        logStep("next");        
+        
+        if (m_index > 1) {
+            throw new SQLNoResultException(format(Level.SEVERE, "excp.only_one_table_type_handled"), "Driver manager asks for table types listing", getDatabase().getFile());
+        }
+
+        m_index ++;
+        return (m_index == 1) ? true : false;
+    }
+}

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

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



Mime
View raw message