|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.heckmansoft.surjey.model.datastore.DAO
Abstract and regulate access to DataSource. Based on the "Singleton Pattern".
| Field Summary | |
protected javax.sql.DataSource |
data_source
|
| Method Summary | |
java.sql.Connection |
getConnection(boolean autoCommit)
Get a new connection to the database. |
static DAO |
getInstance()
Retrieve the single DAO instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected javax.sql.DataSource data_source
| Method Detail |
public static DAO getInstance()
public java.sql.Connection getConnection(boolean autoCommit)
throws java.sql.SQLException
autoCommit - Enable auto commit
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||