I am currently working on a class project, and we are doing a basic implementation of Twitter using the sqlplus and GWT database for the user interface.
My database access database is simple. I have several classes that contain methods for accessing / modifying the database, respectively, and you only need to pass the Connection object as a constructor for each of the classes. In principle, each of the methods launches a Statement, executes a request, and, if necessary, analyzes a ResultSet.
However, my partner working on the GWT part cannot figure out how to connect to SQL servers in his code. For example, on the main page there are several text fields and a confirmation button. I don’t know anything about GWT, so it may be completely wrong, but can you just create new instances of the classes that I implemented for the backend inside the onclick listener confirmation button and call the corresponding function to modify the database? My partner said something about creating new asynchronous interfaces and classes, but I don’t understand why she should do this, because I had the impression that she could just call my functions in the appropriate places to change / access the database .
Thanks in advance for your feedback!
Primary DB Student
source
share