Given the following example (supposed to be correct JDBC, but I'm noob):
Connection conn = getConnection();
Statement st = conn.createStatement();
ResultSet rs = st.executeQuery("SELECT NAME FROM USERS");
while(rs.next())
{
string name = rs.getString("NAME");
//...
}
At what point is NAME information transferred from the database to the program? Is this each time that getString is called? If so, is it also possible to collect the names for all users in one I/O operation?