• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about calling elementAt(row)  RSS feed

 
Tom Landry
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is possibly a two part question but will address the main question here.

The actual call being made is getDataVector().elementAt(rowID);

The getDataVector() returns the Vector and the elementAt(rowID) for that Vector is essentially being called.

Currently reviewing the docs here.

Q1 - Since this is returning an entire row, I assume the Vector being returned is a Vector of all the fields in a single row. Correct?

Q2 - Since this is a Vector <E> it it correct that this Vector is returning a Vector of a single type like String and not of varying types (String, Int, Date....)?

Based on the answer to these questions will determine my followup questions.
 
Stuart A. Burkett
Ranch Hand
Posts: 679
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tom Landry wrote:Q1 - Since this is returning an entire row, I assume the Vector being returned is a Vector of all the fields in a single row. Correct?

I've no idea and nor will anyone else because we don't know what the getDataVector method does. All we know is what you've told us - it returns a Vector. We've no idea what that Vector contains.
 
Tom Landry
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found my answer with some testing.
Basically I was misreading the documentation.
Per the docs in the link I thought it was returning a Vector of <E> when in fact it was returning <E> which makes sense now and actually answers my subsequent question I was going to ask.

I think they do some docs to explain how to read the docs. :-)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!