|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flickrrecsys.util.DbConnection
public class DbConnection
This class opens up connection to the database and uses a property file to extract details of the database including the database server, username, password, etc.
| Constructor Summary | |
|---|---|
DbConnection(java.lang.String connectionPath)
Constructor |
|
| Method Summary | |
|---|---|
void |
closeConnection()
Close connection to the database |
java.util.Properties |
getConnectionProperty()
Get connection properties from the given path |
java.sql.Connection |
openConnection()
Open connection to the database - this method uses SQL driver |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbConnection(java.lang.String connectionPath)
connectionPath - where the database connection details are| Method Detail |
|---|
public java.sql.Connection openConnection()
public void closeConnection()
public java.util.Properties getConnectionProperty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||