Since I do not own the databases, some details may be unjustified, but I will include all:
As part of a project at my university, we are creating a website that uses JSPs, servlets and uses a MySQL server as a backend.
I am responsible for creating tables in the database and creating Java classes to interact with it. However, we can only connect to the MySQL server from within the university, while all of us (7 people) work mainly at home.
I am creating a QueryHandler interface that has a method that takes a string (representing a query) and returns a ResultSet . My question is this: how to create a class that implements this interface, which will simulate a database and allow others to use different DBHandler and not know the difference and let me test different queries without connecting to the actual MySQL database?
EDIT . I'm not sure about the differences between SQL databases, but obviously all the queries that I run in MySQL should be executed in the layout.
java eclipse sql mysql
Amir rachum
source share