Code examples for ResultSet

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
48:	result.close(); 
Full Snippet Info
10
CodeRank
527:	assertThat(rs.next()).isTrue(); 
528:	assertThat(rs.getInt(1)).isEqualTo(1); 
529:	rs.close(); 
Full Snippet Info
10
CodeRank
49:	result.close(); 
-
65:	if (result.next()) next = factory.create(result); 
Full Snippet Info
10
CodeRank
141:	if ( rs.next() ) 
Full Snippet Info
10
CodeRank
101:	assertTrue(res.next()); 
102:	assertEquals(33, res.getInt(1)); 
-
104:	res.close(); 
Full Snippet Info
9
CodeRank
22:	if (rs.next()) { 
-
26:	rs.close(); 
Full Snippet Info
10
CodeRank
93:	obj.close(); 
Full Snippet Info
9
CodeRank
38:	rs.next(); 
39:	count = rs.getInt(1); 
Full Snippet Info
9
CodeRank
280:	if (rs.next()) { 
281:	this.iIdAdresse = rs.getInt(1); 
282:	this.iIdAdresseType = rs.getInt(2); 
283:	this.iIdTypeObjet = rs.getInt(3); 
284:	this.iIdReferenceObjet = rs.getInt(4); 
Full Snippet Info
9
CodeRank
60:	rs.next(); 
61:	int r=rs.getInt(1); 
-
64:	rs.close(); 
Full Snippet Info
9
CodeRank
124:	target.close(); 
Full Snippet Info
9
CodeRank
294:	assertTrue(rs.next()); 
Full Snippet Info
9
CodeRank
52:	res.next(); 
53:	assertEquals(3, res.getInt(1)); 
Full Snippet Info
9
CodeRank
310:	if (rs.next()) 
-
322:	rs.close(); 
Full Snippet Info
9
CodeRank
46:	rs.next(); 
47:	srid4326 = rs.getInt(1); 
48:	rs.close(); 
Full Snippet Info
9
CodeRank
87:	given(resultSet.next()).willReturn(true); 
88:	given(resultSet.getInt("id")).willReturn(1); 
89:	given(resultSet.getString("forename")).willReturn("rod"); 
90:	given(resultSet.next()).willReturn(true, false); 
91:	given(preparedStatement.executeQuery()).willReturn(resultSet); 
Full Snippet Info
8
CodeRank
92:	expect( statement.executeQuery("SELECT CONVERT(varchar(100), SERVERPROPERTY('COLLATION'))")).andReturn(resultSet); 
93:	expect( resultSet.next() ).andReturn(true); 
94:	expect( resultSet.getMetaData() ).andReturn(metadata); 
-
96:	expect( resultSet.getString(1)).andReturn(collation); 
97:	expect( resultSet.next() ).andReturn(false); 
-
100:	replay(connection, sqlConnection, statement, resultSet, metadata); 
Full Snippet Info
7
CodeRank
132:	while (result.next()) { 
133:	long vocabularyId = result.getLong("vocabularyId"); 
134:	String settings = result.getString("settings_"); 
-
141:	DataAccess.cleanUp(connection, statement, result); 
Full Snippet Info
7
CodeRank
36:	Trade trade = new Trade(rs.getLong(ID_COLUMN)); 
-
38:	trade.setIsin(rs.getString(ISIN_COLUMN)); 
39:	trade.setQuantity(rs.getLong(QUANTITY_COLUMN)); 
40:	trade.setPrice(rs.getBigDecimal(PRICE_COLUMN)); 
41:	trade.setCustomer(rs.getString(CUSTOMER_COLUMN)); 
42:	trade.setVersion(rs.getInt(VERSION_COLUMN)); 
Full Snippet Info
7
CodeRank
175:	while (rs.next()) { 
176:	long classPK = rs.getLong("classPK"); 
-
185:	DataAccess.cleanUp(con, ps, rs); 
Full Snippet Info
7
CodeRank