13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

322Chapter 14Storing the Data14.8PERSISTENCE IS NOT THE WHOLE STORYIn this chapter and throughout this book we take a practical view that adatabase is there to store an applicati<strong>on</strong>’s data. That’s far from the intent. Arelati<strong>on</strong>al database is designed to create collecti<strong>on</strong>s of data and to perform logicalqueries within and between those collecti<strong>on</strong>s. The relati<strong>on</strong>al model is muchmore than applicati<strong>on</strong> storage. It facilitates all kinds of data analysis. This isoften ignored in enterprises these days.D<strong>on</strong>’t forget that designing database tables should take into accountc<strong>on</strong>cerns bey<strong>on</strong>d mere applicati<strong>on</strong> storage.14.9SETTING UP POSTGRESQL FOR BUDGETPROLet’s turn our attenti<strong>on</strong> to installing and starting PostgreSQL to support theBudgetPro applicati<strong>on</strong>.14.9.1 Installing PostgreSQLThe simplest way to install PostgreSQL is to use precompiled binary packages.RedHat and Fedora have RPM packages for installing the database and clientsoftware (although neither distributes the client libraries for Java due to licensingissues with Java itself). The PostgreSQL project produces RPM packagesof their own, including the Java JDBC class library. Those might be your easiestcourse. Debian packages for PostgreSQL exist, but again, they do not providethe JDBC library.For our purposes, we are going to assume that you have downloaded andinstalled the following RPM packages 9 from the PostgreSQL Download page: 10• postgresql-server• postgresql-devel• postgresql-jdbc• postgresql-docs (opti<strong>on</strong>al)9. If you are a user of Debian or another Debian-based <strong>Linux</strong> distributi<strong>on</strong>, you should be awarethat there is a Debian package called alien, which can install and manage RPM packages <strong>on</strong>a Debian system.10. http://www.postgresql.org/mirrors-ftp.html

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!