Code examples for ResultSetMetaData

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.
679:	assertTrue(rsmd.isWritable(1)); 
680:	assertTrue(rsmd.isWritable(2)); 
681:	assertTrue(rsmd.isWritable(3)); 
-
690:	rsmd.isWritable(0); 
Full Snippet Info
7
CodeRank
94:	expect( resultSet.getMetaData() ).andReturn(metadata); 
95:	expect( metadata.getColumnCount() ).andReturn(1); 
-
100:	replay(connection, sqlConnection, statement, resultSet, metadata); 
Full Snippet Info
7
CodeRank
75:	String field = metadata.getColumnName(rcol); 
76:	int type = metadata.getColumnType(rcol); 
Full Snippet Info
7
CodeRank
72:	sb.append(source.getColumnName(currentColumn)).append(delimiter); 
73:	sb.append(source.getColumnType(currentColumn)).append(delimiter); 
74:	sb.append(source.getColumnTypeName(currentColumn)).append(delimiter); 
75:	sb.append(source.getColumnClassName(currentColumn)).append(delimiter); 
76:	sb.append(source.isNullable(currentColumn)).append(delimiter); 
77:	sb.append(source.getTableName(currentColumn)).append(delimiter); 
78:	sb.append(source.getSchemaName(currentColumn)).append(delimiter); 
79:	sb.append(source.getCatalogName(currentColumn)).append(delimiter); 
Full Snippet Info
7
CodeRank
77:	assertNotNull(rsmd); 
78:	assertEquals(Short.class.getName(), rsmd.getColumnClassName(1)); 
79:	assertEquals(String.class.getName(), rsmd.getColumnClassName(2)); 
80:	assertEquals(String.class.getName(), rsmd.getColumnClassName(3)); 
-
86:	String name  = rsmd.getColumnClassName(0); 
-
93:	String name  = rsmd.getColumnClassName(4); 
Full Snippet Info
7
CodeRank
78:	assertEquals(meta.getColumnCount(), 4); 
79:	assertEquals(meta.getColumnName(1), "pid"); 
80:	assertEquals(meta.getColumnName(2), "firstname"); 
81:	assertEquals(meta.getColumnName(3), "surname"); 
82:	assertEquals(meta.getColumnName(4), "dob"); 
Full Snippet Info
7
CodeRank
80:	expect( rsm.getColumnCount() ).andReturn( 2 ); 
81:	expect( rsm.getColumnName(1) ).andReturn("name"); 
82:	expect( rsm.getColumnName(2) ).andReturn("another"); 
83:	replay( rsm ); 
-
87:	expect( rs.getMetaData() ).andReturn( rsm ).times( 1 ); 
Full Snippet Info
7
CodeRank
86:	int nrOfColumns = rsmd.getColumnCount(); 
-
101:	rsmd.getColumnTypeName(1) + "': " + ex.getMessage()); 
Full Snippet Info
7
CodeRank
57:	assertEquals(6, md.getColumnCount()); 
58:	assertEquals(Types.DATE, md.getColumnType(1)); 
59:	assertEquals(Types.DATE, md.getColumnType(2)); 
60:	assertEquals(Types.TIMESTAMP, md.getColumnType(3)); 
61:	assertEquals(Types.TIMESTAMP, md.getColumnType(4)); 
62:	assertEquals(Types.TIME, md.getColumnType(5)); 
63:	assertEquals(Types.TIME, md.getColumnType(6)); 
Full Snippet Info
6
CodeRank
122:	return this.resultSetMetaData.getColumnName(column); 
Full Snippet Info
6
CodeRank
267:	TypeId typeId = TypeId.getBuiltInTypeId(metaData.getColumnType(i)); 
-
270:	typeId = TypeId.getUserDefinedTypeId(metaData.getColumnTypeName(i), 
-
279:	metaData.getPrecision(i), 
280:	metaData.getScale(i), 
281:	metaData.isNullable(i) != ResultSetMetaData.columnNoNulls, 
282:	metaData.getColumnDisplaySize(i)); 
-
286:	metaData.isNullable(i) != ResultSetMetaData.columnNoNulls, 
287:	metaData.getColumnDisplaySize(i)); 
Full Snippet Info
6
CodeRank
84:	assertEquals(metadata.getColumnCount(), 2); 
85:	assertEquals(metadata.getColumnName(1), "x"); 
86:	assertEquals(metadata.getColumnName(2), "x"); 
Full Snippet Info
6
CodeRank
75:	String field = metadata.getColumnName(rcol); 
76:	int type = metadata.getColumnType(rcol); 
Full Snippet Info
6
CodeRank