Fetch resultset of MySQL select query

Hi guys, I need some help.
I’m trying to make a login page and I need to retrieve usernames and passwords from the database to check if the user is present and the password is correct. I managed to pick the users and to copy them in a table but it’s not what I’m searching for. I just want to fetch a resultset and check whether a password is correct or not… I don’t need a table. What should I do?
I also tried to use FreeformStateDelegate but I’m really a newbie so I couldn’t use it.

I hope in some good guy!!
thanks

This is probably not directly related to Vaadin, but could you show how you’ve fetched data to the table now and perhaps we can give some pointers from there on?

After I wrote this post, I solved my problem creating a normal java database connection (connection, statement, resultset) and fetching the result set, I was able to check if the user exists and whether the password is correct. However I’d wanted to do it with Vaadin objects like FreeformQuery, etc. My problem is that i can’t understand how I should implement the FreeformStateDelegate for making even more complex queries and fetch the resultset by myself without using an object Table. I can’t find a clear example of FreeformStateDelegate. I know it would be better do a login with Spring or other frameworks but I’d like to learn, as I said, how to make complex queries and fetch the result by myself.

thanks