Available Methods
- next ( )
- close ( )
- getString ( )
- getInt ( )
- getLong ( )
- getMetaData ( )
- getObject ( )
- getTimestamp ( )
- wasNull ( )
- getBoolean ( )
- getDouble ( )
- getBigDecimal ( )
- getBytes ( )
- updateRow ( )
- getDate ( )
- getShort ( )
- TYPE_FORWARD_ONLY
- getBlob ( )
- getClob ( )
- getArray ( )
- getFloat ( )
- beforeFirst ( )
- CONCUR_READ_ONLY
- first ( )
- getTime ( )
- last ( )
- updateInt ( )
- getByte ( )
- HOLD_CURSORS_OVER_COMMIT
- absolute ( )
- getBinaryStream ( )
- updateString ( )
- findColumn ( )
- isBeforeFirst ( )
- relative ( )
- previous ( )
- TYPE_SCROLL_INSENSITIVE
- getCharacterStream ( )
- CLOSE_CURSORS_AT_COMMIT
- afterLast ( )
- updateClob ( )
- FETCH_FORWARD
- getAsciiStream ( )
- getSQLXML ( )
- getRow ( )
- updateBlob ( )
- updateBinaryStream ( )
- TYPE_SCROLL_SENSITIVE
- updateBigDecimal ( )
- insertRow ( )
- deleteRow ( )
- FETCH_REVERSE
- getRowId ( )
- moveToInsertRow ( )
- updateLong ( )
- updateNClob ( )
- isClosed ( )
- updateAsciiStream ( )
- isAfterLast ( )
- getCursorName ( )
- clearWarnings ( )
- unwrap ( )
- CONCUR_UPDATABLE
- getWarnings ( )
- getStatement ( )
- updateCharacterStream ( )
- updateTimestamp ( )
- updateDouble ( )
- FETCH_UNKNOWN
- updateFloat ( )
- getNString ( )
- getType ( )
- cancelRowUpdates ( )
- updateByte ( )
- updateTime ( )
- updateNCharacterStream ( )
- setFetchDirection ( )
- isLast ( )
- isWrapperFor ( )
- updateObject ( )
- setFetchSize ( )
- rowDeleted ( )
- getNClob ( )
- updateArray ( )
- toString ( )
- updateNull ( )
- updateRef ( )
- refreshRow ( )
- updateRowId ( )
- getRef ( )
- updateNString ( )
Related Classes
- java.util.Arrays
- java.io.File
- java.util.Collections
- java.io.InputStream
- java.util.Date
- java.util.Iterator
- java.io.Serializable
- java.text.SimpleDateFormat
- java.util.Locale
- java.util.LinkedList
- java.util.Properties
- java.util.UUID
- java.util.stream.Collectors
- java.util.LinkedHashMap
- java.util.Calendar
- org.junit.Assert
- java.util.Optional
- java.math.BigDecimal
- java.io.Reader
- org.apache.commons.lang3.StringUtils
- java.sql.SQLException
- java.util.TimeZone
- java.util.logging.Level
- com.google.common.collect.Lists
- java.sql.Connection
Java Code Examples for java.sql.ResultSet#toString()
The following examples show how to use
java.sql.ResultSet#toString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MatchesAccess.java From Math-Game with Apache License 2.0 | 6 votes |
/** * Checks whether both players' scores have been updated * @return Whether the scores have been updated (true) or not */ public boolean checkForPlayersScoresUpdated(int currentScore1, int currentScore2) { try { System.out.println("matchnum in checkscores is " + matchNum); ResultSet resultSet = statement.executeQuery("select * from sofiav_mathgame.matches where ID=" + matchNum); resultSet.next(); resultSet.toString(); resultSet.getInt("Player1Score"); resultSet.getInt("Player2Score"); if ((resultSet.getInt("Player1Score") != currentScore1) && (resultSet.getInt("Player2Score") != currentScore2)) { System.out.println("Both players' scores have updated"); return true; } } catch (SQLException e) { e.printStackTrace(); } return false; }
Example 2
Source File: QueryTestCaseBase.java From tajo with Apache License 2.0 | 5 votes |
public static QueryId getQueryId(ResultSet resultSet) { if (resultSet instanceof TajoMemoryResultSet) { return ((TajoMemoryResultSet) resultSet).getQueryId(); } else if (resultSet instanceof FetchResultSet) { return ((FetchResultSet) resultSet).getQueryId(); } else { throw new IllegalArgumentException(resultSet.toString()); } }
Example 3
Source File: AbstractResultSetType.java From doma with Apache License 2.0 | 4 votes |
@Override protected String doConvertToLogFormat(ResultSet value) { return value.toString(); }