|
Por
incrivel que pare�a, isso est� previsto na especifica��o do JDBC, olhe esse
trecho do javadoc:
The
ResultSet interface provides getter methods
(getBoolean, getLong, and so on) for retrieving column
values from the current row. Values can be retrieved using either the index
number of the column or the name of the column. In general, using the column
index will be more efficient. Columns are numbered from 1. For maximum
portability, result set columns within each row should be read in left-to-right
order, and each column should be read only once.Se
voc� quer garantir a portabilidade entre bancos, vai ter que ler em ordem,
e apenas uma vez cada campo.
Para
resolver esse problema, h� um tempo atr�s, eu criei um sistema que lia os
valores do resultset e os colocava em uma Hashtable (tudo autom�tico), depois eu
pegava os dados direto da Hashtable.
--- |
--------------------------------------------------------------------- Para cancelar a subscri��o, envie mensagem para: [EMAIL PROTECTED] Para comandos adicionais, envie mensagem para: [EMAIL PROTECTED]
