|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguard.ext.database.ConnectionFactory
public final class ConnectionFactory
Factory for Database Connection.
| Constructor Summary | |
|---|---|
ConnectionFactory(javax.sql.DataSource dataSource)
inject the Datasource with this constructor. |
|
ConnectionFactory(java.util.Map opts)
initialise connection settings for the specified webapp in the map (with the applicationName parameter). |
|
| Method Summary | |
|---|---|
java.sql.Connection |
getConnection()
Returns a database connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionFactory(javax.sql.DataSource dataSource)
public ConnectionFactory(java.util.Map opts)
opts - | Method Detail |
|---|
public java.sql.Connection getConnection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||