|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.pbeans.data.DefaultDatabaseFactory
public class DefaultDatabaseFactory
Base implementation of the DatabaseFactory interface.
Constructor Summary | |
---|---|
DefaultDatabaseFactory(java.lang.ClassLoader classLoader)
|
Method Summary | |
---|---|
Database |
getDatabase(javax.sql.DataSource dataSource)
Implements the DatabaseFactory interface. |
void |
setConnectionTimeout(int timeout)
Sets the amount of time, in milliseconds, that a connection may be idle before it is discarded. |
void |
setMaxConnections(int maxConnections)
Sets the maximum number of simultaneously open connections that a Database is expected to hold. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDatabaseFactory(java.lang.ClassLoader classLoader)
Method Detail |
---|
public void setMaxConnections(int maxConnections)
public void setConnectionTimeout(int timeout)
public Database getDatabase(javax.sql.DataSource dataSource) throws java.sql.SQLException
getDatabase
in interface DatabaseFactory
java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |