Code example for ResultSet

Methods: getObject, next

0
			 
			//System.out.println(query);			        
			Statement stmt  = conn.createStatement();
			rs = stmt.executeQuery(query);
			 
			if (rs.next())			
				rtnValue = rs.getObject(1);
			else 
				rtnValue = "";
 
		} 
		catch (Exception e)
		{ 
			System.err.println("Error at 'getTransferToAccount':  " + e);
			rtnValue = "";
		} 
		return rtnValue;
		 
	}	 
 
}