S
S
Sasha Brahms2016-07-14 12:46:42
Java
Sasha Brahms, 2016-07-14 12:46:42

How to get data from db into hashmap?

Hello everyone, I ran into a problem, I don’t know how to fill the list with data received from the database ...
More precisely, I know that there are a bunch of adapters working with Cursor, but for me now it’s a bit difficult, how can I get data from the database into a HashMap?
And there I will already work with a simple ArrayAdapter ..
Or is it still very important and is it worth cramming these Cursor Adapters ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2016-07-14
@Dlike

I’ll throw in a couple of ancient articles, they will help:
www.javable.com/columns/jdbc/workshop/01
www.javable.com/javaworld/tips/82_tt
Well, in general, it’s better to immediately look towards hibernate and spring.
You can also look at blog.mybatis.org (former iBatis). It is quite simple.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question