diff options
| author | Bruce Momjian <bruce@momjian.us> | 2001-11-19 22:33:39 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2001-11-19 22:33:39 +0000 |
| commit | f3148bef9f9bb43447fbc13d3791734211ac59bc (patch) | |
| tree | 8cc8e564ed6b7cffefd57d41e715870ee54cef5e /src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | |
| parent | 8f6f16929a3f2ce41ee988cc023fd550c89cba3b (diff) | |
| download | postgresql-f3148bef9f9bb43447fbc13d3791734211ac59bc.tar.gz | |
JDBC indenting, comment cleanups.
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java')
| -rw-r--r-- | src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java b/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java index e98cef8660..804d9a2c77 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java @@ -16,7 +16,7 @@ import org.postgresql.largeobject.*; import org.postgresql.util.*; import org.postgresql.core.Encoding; -/** +/* * A ResultSet provides access to a table of data generated by executing a * Statement. The table rows are retrieved in sequence. Within a row its * column values can be accessed in any order. @@ -63,7 +63,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu private StringBuffer sbuf = null; - /** + /* * Create a new ResultSet - Note that we create ResultSets to * represent the results of everything. * @@ -79,7 +79,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu super(conn, fields, tuples, status, updateCount, insertOID, binaryCursor); } - /** + /* * Create a new ResultSet - Note that we create ResultSets to * represent the results of everything. * @@ -95,7 +95,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu super(conn, fields, tuples, status, updateCount, 0, false); } - /** + /* * A ResultSet is initially positioned before its first row, * the first call to next makes the first row the current row; * the second call makes the second row the current row, etc. @@ -116,7 +116,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return true; } - /** + /* * In some cases, it is desirable to immediately release a ResultSet * database and JDBC resources instead of waiting for this to happen * when it is automatically closed. The close method provides this @@ -139,7 +139,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu } } - /** + /* * A column may have the value of SQL NULL; wasNull() reports whether * the last column read had this special value. Note that you must * first call getXXX on a column to try to read its value and then @@ -153,7 +153,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return wasNullFlag; } - /** + /* * Get the value of a column in the current row as a Java String * * @param columnIndex the first column is 1, the second is 2... @@ -173,7 +173,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return encoding.decode(this_row[columnIndex - 1]); } - /** + /* * Get the value of a column in the current row as a Java boolean * * @param columnIndex the first column is 1, the second is 2... @@ -185,7 +185,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return toBoolean( getString(columnIndex) ); } - /** + /* * Get the value of a column in the current row as a Java byte. * * @param columnIndex the first column is 1, the second is 2,... @@ -210,7 +210,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return 0; // SQL NULL } - /** + /* * Get the value of a column in the current row as a Java short. * * @param columnIndex the first column is 1, the second is 2,... @@ -235,7 +235,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return 0; // SQL NULL } - /** + /* * Get the value of a column in the current row as a Java int. * * @param columnIndex the first column is 1, the second is 2,... @@ -247,7 +247,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return toInt( getFixedString(columnIndex) ); } - /** + /* * Get the value of a column in the current row as a Java long. * * @param columnIndex the first column is 1, the second is 2,... @@ -259,7 +259,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return toLong( getFixedString(columnIndex) ); } - /** + /* * Get the value of a column in the current row as a Java float. * * @param columnIndex the first column is 1, the second is 2,... @@ -271,7 +271,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return toFloat( getFixedString(columnIndex) ); } - /** + /* * Get the value of a column in the current row as a Java double. * * @param columnIndex the first column is 1, the second is 2,... @@ -283,7 +283,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return toDouble( getFixedString(columnIndex) ); } - /** + /* * Get the value of a column in the current row as a * java.math.BigDecimal object * @@ -298,7 +298,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return toBigDecimal( getFixedString(columnIndex), scale ); } - /** + /* * Get the value of a column in the current row as a Java byte array. * * <p>In normal use, the bytes represent the raw values returned by the @@ -359,7 +359,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return null; } - /** + /* * Get the value of a column in the current row as a java.sql.Date * object * @@ -372,7 +372,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return toDate( getString(columnIndex) ); } - /** + /* * Get the value of a column in the current row as a java.sql.Time * object * @@ -385,7 +385,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return toTime( getString(columnIndex) ); } - /** + /* * Get the value of a column in the current row as a * java.sql.Timestamp object * @@ -398,7 +398,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return toTimestamp( getString(columnIndex), this ); } - /** + /* * A column value can be retrieved as a stream of ASCII characters * and then read in chunks from the stream. This method is * particular suitable for retrieving large LONGVARCHAR values. @@ -452,7 +452,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu } } - /** + /* * A column value can also be retrieved as a stream of Unicode * characters. We implement this as a binary stream. * @@ -497,7 +497,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu } } - /** + /* * A column value can also be retrieved as a binary strea. This * method is suitable for retrieving LONGVARBINARY values. * @@ -540,7 +540,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return null; } - /** + /* * The following routines simply convert the columnName into * a columnIndex and then call the appropriate routine above. * @@ -589,7 +589,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return getDouble(findColumn(columnName)); } - /** + /* * @deprecated */ public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException @@ -622,7 +622,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return getAsciiStream(findColumn(columnName)); } - /** + /* * * ** DEPRECATED IN JDBC 2 ** * @@ -638,7 +638,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return getBinaryStream(findColumn(columnName)); } - /** + /* * The first warning reported by calls on this ResultSet is * returned. Subsequent ResultSet warnings will be chained * to this SQLWarning. @@ -659,7 +659,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return warnings; } - /** + /* * After this call, getWarnings returns null until a new warning * is reported for this ResultSet * @@ -670,7 +670,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu warnings = null; } - /** + /* * Get the name of the SQL cursor used by this ResultSet * * <p>In SQL, a result table is retrieved though a cursor that is @@ -693,7 +693,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return connection.getCursorName(); } - /** + /* * The numbers, types and properties of a ResultSet's columns are * provided by the getMetaData method * @@ -705,7 +705,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return new ResultSetMetaData(rows, fields); } - /** + /* * Get the value of a column in the current row as a Java object * * <p>This method will return the value of the given column as a @@ -783,7 +783,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu } } - /** + /* * Get the value of a column in the current row as a Java object * *<p> This method will return the value of the given column as a @@ -803,7 +803,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return getObject(findColumn(columnName)); } - /** + /* * Map a ResultSet column name to a ResultSet column index * * @param columnName the name of the column @@ -964,7 +964,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu } } - /** + /* * New in 7.1 */ public Clob getClob(String columnName) throws SQLException @@ -972,7 +972,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return getClob(findColumn(columnName)); } - /** + /* * New in 7.1 */ public Clob getClob(int i) throws SQLException @@ -1046,7 +1046,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu return getObject(findColumn(columnName), map); } - /** + /* * This checks against map for the type of column i, and if found returns * an object based on that mapping. The class must implement the SQLData * interface. @@ -1058,7 +1058,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu String t = getTypeName(i); SQLData o = (SQLData) map.get(t); // If the type is not in the map, then pass to the existing code - if(o==null) + if (o==null) return getObject(i); o.readSQL(s,t); return o; @@ -1446,7 +1446,7 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu throw new PSQLException("postgresql.noupdate"); } - /** + /* * This is called by Statement to register itself with this statement. * It's used currently by getStatement() but may also with the new core * package. |
