Changeset: c89b7745fe4d for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c89b7745fe4d
Modified Files:
        java/src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java
Branch: default
Log Message:

Remove trailing spaces and 1 typo: Statment -> Statement


diffs (248 lines):

diff --git a/java/src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java 
b/java/src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java
--- a/java/src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java
+++ b/java/src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java
@@ -50,16 +50,16 @@ import nl.cwi.monetdb.mcl.parser.TupleLi
 
 /**
  * A ResultSet suitable for the MonetDB database.
- * 
+ *
  * A table of data representing a database result set, which is usually
  * generated by executing a statement that queries the database.
- * 
+ *
  * A ResultSet object maintains a cursor pointing to its current row of data.
  * Initially the cursor is positioned before the first row. The next method
  * moves the cursor to the next row, and because it returns false when there
  * are no more rows in the ResultSet object, it can be used in a while loop to
  * iterate through the result set.
- * 
+ *
  * The current state of this ResultSet is that it supports positioning in the
  * result set, absolute and relative. A slight performance difference between
  * FORWARD_ONLY or result sets scrollable in both directions can be noticed as
@@ -185,16 +185,16 @@ public class MonetResultSet extends Mone
        // Chapter 14.2.2 Sun JDBC 3.0 Specification
        /**
         * Moves the cursor to the given row number in this ResultSet object.
-        * 
+        *
         * If the row number is positive, the cursor moves to the given row 
number
         * with respect to the beginning of the result set. The first row is 
row 1,
         * the second is row 2, and so on.
-        * 
+        *
         * If the given row number is negative, the cursor moves to an absolute 
row
         * position with respect to the end of the result set. For example, 
calling
         * the method absolute(-1) positions the cursor on the last row; 
calling the
         * method absolute(-2) moves the cursor to the next-to-last row, and so 
on.
-        * 
+        *
         * An attempt to position the cursor beyond the first/last row in the 
result
         * set leaves the cursor before the first row or after the last row.
         * Note: calling absolute(1) is the same as calling first(). Calling
@@ -208,7 +208,7 @@ public class MonetResultSet extends Mone
         * @throws SQLException if a database access error occurs, or the 
result set
         *         type is TYPE_FORWARD_ONLY
         */
-       @Override
+       @Override
        public boolean absolute(int row) throws SQLException {
                if (row != curRow + 1 && type == TYPE_FORWARD_ONLY) throw
                        new SQLException("(Absolute) positioning not allowed on 
forward " +
@@ -369,7 +369,7 @@ public class MonetResultSet extends Mone
         * getting the value of any other column. The next call to a getter
         * method implicitly closes the stream. Also, a stream may return 0
         * when the method InputStream.available  is called whether there is
-        * data available or not. 
+        * data available or not.
         *
         * @param columnIndex the first column is 1, the second is 2, ...
         * @return a Java input stream that delivers the database column
@@ -416,7 +416,7 @@ public class MonetResultSet extends Mone
         *
         * @param columnName the label for the column specified with
         * the SQL AS clause. If the SQL AS clause was not specified, then
-        * the label is the name of the column 
+        * the label is the name of the column
         * @return a Java input stream that delivers the database column
         * value as a stream of uninterpreted bytes; if the value is SQL
         * NULL, the result is null
@@ -436,7 +436,7 @@ public class MonetResultSet extends Mone
         * @param columnIndex the first column is 1, the second is 2, ...
         * @return a java.io.Reader object that contains the column value;
         *         if the value is SQL NULL, the value returned is null in
-        *         the Java programming language. 
+        *         the Java programming language.
         * @throws SQLException if a database access error occurs
         */
        @Override
@@ -461,7 +461,7 @@ public class MonetResultSet extends Mone
         * @param columnName the name of the column
         * @return a java.io.Reader object that contains the column value;
         *         if the value is SQL NULL, the value returned is null in
-        *         the Java programming language. 
+        *         the Java programming language.
         * @throws SQLException if a database access error occurs
         */
        @Override
@@ -478,7 +478,7 @@ public class MonetResultSet extends Mone
         * @param columnIndex the first column is 1, the second is 2, ...
         * @return a java.io.Reader object that contains the column value;
         *         if the value is SQL NULL, the value returned is null in
-        *         the Java programming language. 
+        *         the Java programming language.
         * @throws SQLException if a database access error occurs
         * @throws SQLFeatureNotSupportedException the JDBC driver does
         *         not support this method
@@ -497,7 +497,7 @@ public class MonetResultSet extends Mone
         * @param columnName the name of the column
         * @return a java.io.Reader object that contains the column value;
         *         if the value is SQL NULL, the value returned is null in
-        *         the Java programming language. 
+        *         the Java programming language.
         * @throws SQLException if a database access error occurs
         * @throws SQLFeatureNotSupportedException the JDBC driver does
         *         not support this method
@@ -848,7 +848,6 @@ public class MonetResultSet extends Mone
         * Retrieves the value of the designated column in the current row of 
this
         * ResultSet object as a byte array in the Java programming language. 
The
         * bytes represent the raw values returned by the driver.
-        * 
         *
         * @param columnIndex the first column is 1, the second is 2, ...
         * @return the column value; if the value is SQL NULL, the value 
returned
@@ -892,7 +891,7 @@ public class MonetResultSet extends Mone
         * Retrieves the value of the designated column in the current row of 
this
         * ResultSet object as a byte array in the Java programming language. 
The
         * bytes represent the raw values returned by the driver.
-        * 
+        *
         * NOTE: Since the mapi protocol is ASCII-based, this method only 
returns
         *       Java byte representations of Strings, which is nothing more 
than
         *       an encoding into a sequence of bytes using the platform's 
default
@@ -911,7 +910,7 @@ public class MonetResultSet extends Mone
        /**
         * Retrieves the concurrency mode of this ResultSet object. The 
concurrency
         * used is determined by the Statement object that created the result 
set.
-        * 
+        *
         * NOTE: MonetDB only supports read-only result sets, and will always 
return
         *       ResultSet.CONCUR_READ_ONLY
         *
@@ -932,11 +931,11 @@ public class MonetResultSet extends Mone
         * the cursor has the proper isolation level to support update, the
         * cursor's SELECT statement should be of the form SELECT FOR UPDATE. If
         * FOR UPDATE is omitted, the positioned updates may fail.
-        * 
+        *
         * The JDBC API supports this SQL feature by providing the name of the 
SQL
         * cursor used by a ResultSet object. The current row of a ResultSet 
object
         * is also the current row of this SQL cursor.
-        * 
+        *
         * Note: If positioned update is not supported, a SQLException is 
thrown.
         *       MonetDB currently doesn't support updates, so the SQLException 
is
         *       thrown for now.
@@ -1224,10 +1223,10 @@ public class MonetResultSet extends Mone
                return new rsmdw() {
                        // for the more expensive methods (getPrecision(), 
getScale(), isNullable()), we provide a simple cache
                        // caches to store precision, scale and isNullable 
values from getColumns()
-                       private boolean[] _is_fetched   = new 
boolean[columns.length +1];
-                       private int[] _precision        = new 
int[columns.length +1];
-                       private int[] _scale            = new 
int[columns.length +1];
-                       private int[] _isNullable       = new 
int[columns.length +1];
+                       private boolean[] _is_fetched   = new 
boolean[columns.length +1];
+                       private int[] _precision        = new 
int[columns.length +1];
+                       private int[] _scale            = new 
int[columns.length +1];
+                       private int[] _isNullable       = new 
int[columns.length +1];
                        private boolean[] _isAutoincrement = new 
boolean[columns.length +1];
                        private Connection conn = null;
                        private DatabaseMetaData dbmd = null;
@@ -1297,7 +1296,7 @@ public class MonetResultSet extends Mone
 
                        /**
                         * Indicates whether the designated column is 
automatically numbered.
-                        * 
+                        *
                         * @param column the first column is 1, the second is 
2, ...
                         * @return true if so; false otherwise
                         * @throws SQLException if a database access error 
occurs
@@ -2271,16 +2270,16 @@ public class MonetResultSet extends Mone
        /**
         * Gets the value of the designated column in the current row of this
         * ResultSet object as an Object in the Java programming language.
-        * 
+        *
         * This method will return the value of the given column as a Java 
object.
         * The type of the Java object will be the default Java object type
         * corresponding to the column's SQL type, following the mapping for
         * built-in types specified in the JDBC specification. If the value is 
an
         * SQL NULL, the driver returns a Java null.
-        * 
+        *
         * This method may also be used to read database-specific abstract data
         * types.
-        * 
+        *
         * @param columnName the SQL name of the column
         * @return a java.lang.Object holding the column value
         * @throws SQLException if a database access error occurs
@@ -2410,7 +2409,7 @@ public class MonetResultSet extends Mone
         * the result set was generated some other way, such as by a
         * DatabaseMetaData method, this method returns null.
         *
-        * @return the Statment object that produced this ResultSet object or 
null
+        * @return the Statement object that produced this ResultSet object or 
null
         *         if the result set was produced some other way
         */
        @Override
@@ -2511,7 +2510,7 @@ public class MonetResultSet extends Mone
        /**
         * Retrieves the value of the designated column in the current row
         * of this ResultSet as a java.sql.SQLXML object in the Java
-        * programming language. 
+        * programming language.
         *
         * @param colName the label for the column specified with the SQL AS
         *        clause. If the SQL AS clause was not specified, then the
@@ -2647,7 +2646,7 @@ public class MonetResultSet extends Mone
                                try {
                                        nanos = getIntrinsicValue(monDate[pos], 
pos++);
                                        for (ctr = 1;
-                                                       pos < monDate.length && 
+                                                       pos < monDate.length &&
                                                        monDate[pos] >= '0' &&
                                                        monDate[pos] <= '9';
                                                        ctr++)
@@ -2993,10 +2992,10 @@ public class MonetResultSet extends Mone
         * If there is more than one warning, subsequent warnings will be 
chained to
         * the first one and can be retrieved by calling the method
         * SQLWarning.getNextWarning on the warning that was retrieved 
previously.
-        * 
+        *
         * This method may not be called on a closed result set; doing so will 
cause
         * an SQLException to be thrown.
-        * 
+        *
         * Note: Subsequent warnings will be chained to this SQLWarning.
         *
         * @return the first SQLWarning object or null if there are none
@@ -3089,7 +3088,7 @@ public class MonetResultSet extends Mone
         * cursor is initially positioned before the first row; the first call 
to
         * the method next makes the first row the current row; the second call
         * makes the second row the current row, and so on.
-        * 
+        *
         * If an input stream is open for the current row, a call to the method
         * next will implicitly close it. A ResultSet object's warning chain is
         * cleared when a new row is read.
@@ -3122,7 +3121,7 @@ public class MonetResultSet extends Mone
         * Attempting to move beyond the first/last row in the result set 
positions
         * the cursor before/after the the first/last row. Calling relative(0) 
is
         * valid, but does not change the cursor position.
-        * 
+        *
         * Note: Calling the method relative(1) is identical to calling the 
method
         * next() and calling the method relative(-1) is identical to calling 
the
         * method previous().
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to