-
Notifications
You must be signed in to change notification settings - Fork 0
Home
The database project was designed as a database connector for a wide variety of eggnet projects. It's main purpose is to act like a base class for all of eggnet's database connections. The benefit of having this project is so that common database calls can be used across multiple projects without having code duplication. This project also takes care of the actual connection tasks as well as assuring asynchronous database access in order to speed up all projects.
A brief tutorial on how to setup a database connection using this project can be found here.
This project is packaged into the eggnet project libs for easy access by all other projects. Simply have the libs project checked out into a sibling folder of your current project and you will have access to the latest database jar file.
If you wish to change the database project in any way, there is an Eclipse ant script that comes with this project and you can run the "dist" script to build your changes and automatically import them into the libs project.
This project makes use of asynchronous database calls. The methodology to this can be found here
The following eggnet projects use database :
The connection information regarding username, password and ip address of the connection is somewhat hard coded into this project and will need to be changed to fit the needs of the project being used.
As of now, this project assumes the database is on localhost. A way to change this without changing the code is to simply port forward your postgres connection (usually port 5432) to which ever server you prefer.
For the username and password, changing the actual code is necessary. The items in question can be found in the db/Resources.java file.