Hi
I was reading vaadin book, and i won’t able to understand how to execute a simple MySql Queries through vaadin defined methods???
Anyone has any idea??
Hi
I was reading vaadin book, and i won’t able to understand how to execute a simple MySql Queries through vaadin defined methods???
Anyone has any idea??
Hi,
You don’t specify what kinds of queries you’re talking about or whether you are aware of / using the SQLContainer.
SQLContainer can only be used to display the results of SELECT queries. For any other kind of query, you can grab a connection from the SQLContainer’s connection pool (that you create for it) and manually perform the query as you would do using plain JDBC. The book has a
chapter on SQLContainer
that describes how to use it.
If you’re not using SQLContainer, you can use plain JDBC for any query.
HTH,
/Jonatan
Thanks Jonatan, mine problem was solved using sql container and tableQuery.