|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjodd.db.pool.NoConnectionPool
Standard usage of the database, without pooling.
Constructor Summary | |
NoConnectionPool()
|
Method Summary | |
void |
close()
Close pool when it is not needed anymore. |
void |
freeConnection(java.sql.Connection conn)
Returns connection to connection pool. |
java.sql.Connection |
getConnection()
Get one free connection from the connection pool. |
void |
init()
Initialize pool with current object state. |
void |
setDriver(java.lang.String s)
|
void |
setPassword(java.lang.String s)
|
void |
setUrl(java.lang.String s)
|
void |
setUser(java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NoConnectionPool()
Method Detail |
public void setDriver(java.lang.String s)
public void setUrl(java.lang.String s)
public void setUser(java.lang.String s)
public void setPassword(java.lang.String s)
public void init() throws java.sql.SQLException
ConnectionPool
init
in interface ConnectionPool
java.sql.SQLException
public void close()
ConnectionPool
close
in interface ConnectionPool
public java.sql.Connection getConnection() throws java.sql.SQLException
ConnectionPool
getConnection
in interface ConnectionPool
java.sql.SQLException
public void freeConnection(java.sql.Connection conn)
ConnectionPool
freeConnection
in interface ConnectionPool
conn
- database connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |