|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjects.jdbc.ContainerPool
public abstract class ContainerPool
Abstract base class for a JDBC container pool.
| Method Summary | |
|---|---|
void |
freeConnection(JdbcContainer db)
Frees only the connection and puts it back to the pool, but not the container itself |
void |
freeContainer(JdbcContainer db)
Frees the container and its connection and puts them back to the pool. |
void |
getConnection(JdbcContainer db)
Retrieves a new connection and assigns it to the container. |
JdbcContainer |
getContainer()
Retrieves a new container from the pool. |
PObjDictionary |
getDictionary()
Returns the dictionary that every container of this pool is using. |
java.lang.String |
getSchema()
Returns the schema that every container of this pool is using. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public final JdbcContainer getContainer()
throws java.sql.SQLException
java.sql.SQLException - if any database error occurs.public final PObjDictionary getDictionary()
public final java.lang.String getSchema()
public final void freeConnection(JdbcContainer db)
throws java.sql.SQLException
java.sql.SQLException - if any database error occurs.freeContainer(JdbcContainer)
public final void freeContainer(JdbcContainer db)
throws java.sql.SQLException
java.sql.SQLException - if any database error occurs.freeConnection(JdbcContainer)
public final void getConnection(JdbcContainer db)
throws java.sql.SQLException
java.lang.IllegalStateException - if the container already has a connection
java.sql.SQLException - if any database error occurs.JdbcContainer.setConnection(java.sql.Connection)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||