|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.pow2.dao.ConnectionFactory
ConnectionFactory class.
Provides SQL Connection objects using the
underlying ConnectionProvider instance.
Method Summary | |
Connection |
getConnection()
Get a connection object from the underlying ConnectionProvider object. |
Connection |
getConnection(int isolationLevel)
Get a "transactional" JDBC connection from the underlying default ConnectionProvider. |
static ConnectionFactory |
instance()
Get the unique instance of ConnectionFactory class. |
void |
setProvider(ConnectionProviderPrefs prefs)
Set the ConnectionProvider object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ConnectionFactory instance()
public void setProvider(ConnectionProviderPrefs prefs) throws Exception
prefs
- the connection provider preferences object
Exception
- if any error occurspublic Connection getConnection() throws SQLException
SQLException
- if any error occurspublic Connection getConnection(int isolationLevel) throws SQLException
isolationLevel
- the isolation level to set the connection to
SQLException
- if any error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |