|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpersistence.type.ConnectionFactory
Factory for Connections.
Field Summary | |
private static java.util.Properties |
props
|
Constructor Summary | |
ConnectionFactory()
|
Method Summary | |
void |
closeConnection(java.sql.Connection connection)
Signal to the factory that Connection isn't needed anymore. |
java.sql.Connection |
getConnection()
Obtain a Connection. |
static java.util.Properties |
getProperties()
File called db.properties contains all needed info for setting up Connections. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static java.util.Properties props
Constructor Detail |
public ConnectionFactory()
Method Detail |
public static java.util.Properties getProperties()
public java.sql.Connection getConnection()
public void closeConnection(java.sql.Connection connection)
connection
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |