|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jaffa.persistence.engines.jdbcengine.datasource.DbConnectionBrokerConnectionFactory
This is a DbConnectionBroker based implementation of IConnectionFactory. DbConnectionBroker is a fairly proven and stable implemenation for database connection pooling. It requires 'dbConnectionBroker.jar' in the classpath.
| Constructor Summary | |
DbConnectionBrokerConnectionFactory()
|
|
| Method Summary | |
Connection |
createConnection()
Creates a connection using DbConnectionBroker. |
void |
freeConnection(Connection connection)
Returns the connection back to the pool. |
Integer |
getDebugLevel()
Getter for property debugLevel. |
String |
getDriverClass()
Getter for property driverClass. |
Boolean |
getLogAppend()
Getter for property logAppend. |
String |
getLogFileName()
Getter for property logFileName. |
Integer |
getMaxCheckoutSeconds()
Getter for property maxCheckoutSeconds. |
Double |
getMaxConnTime()
Getter for property maxConnTime. |
Integer |
getMaximumConnections()
Getter for property maximumConnections. |
Integer |
getMinimumConnections()
Getter for property minimumConnections. |
String |
getPassword()
Getter for property password. |
String |
getUrl()
Getter for property url. |
String |
getUser()
Getter for property user. |
void |
setDebugLevel(Integer debugLevel)
Setter for property debugLevel. |
void |
setDriverClass(String driverClass)
Setter for property driverClass. |
void |
setLogAppend(Boolean logAppend)
Setter for property logAppend. |
void |
setLogFileName(String logFileName)
Setter for property logFileName. |
void |
setMaxCheckoutSeconds(Integer maxCheckoutSeconds)
Setter for property maxCheckoutSeconds. |
void |
setMaxConnTime(Double maxConnTime)
Setter for property maxConnTime. |
void |
setMaximumConnections(Integer maximumConnections)
Setter for property maximumConnections. |
void |
setMinimumConnections(Integer minimumConnections)
Setter for property minimumConnections. |
void |
setPassword(String password)
Setter for property password. |
void |
setUrl(String url)
Setter for property url. |
void |
setUser(String user)
Setter for property user. |
boolean |
usePreparedStatementCaching()
Returns a true if the Prepared (and Call) Statements are to be cached for a connection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DbConnectionBrokerConnectionFactory()
| Method Detail |
public String getDriverClass()
public void setDriverClass(String driverClass)
driverClass - New value of property driverClass.public String getUrl()
public void setUrl(String url)
url - New value of property url.public String getUser()
public void setUser(String user)
user - New value of property user.public String getPassword()
public void setPassword(String password)
password - New value of property password.public Integer getMinimumConnections()
public void setMinimumConnections(Integer minimumConnections)
minimumConnections - New value of property minimumConnections.public Integer getMaximumConnections()
public void setMaximumConnections(Integer maximumConnections)
maximumConnections - New value of property maximumConnections.public String getLogFileName()
public void setLogFileName(String logFileName)
logFileName - New value of property logFileName.public Double getMaxConnTime()
public void setMaxConnTime(Double maxConnTime)
maxConnTime - New value of property maxConnTime.public Boolean getLogAppend()
public void setLogAppend(Boolean logAppend)
logAppend - New value of property logAppend.public Integer getMaxCheckoutSeconds()
public void setMaxCheckoutSeconds(Integer maxCheckoutSeconds)
maxCheckoutSeconds - New value of property maxCheckoutSeconds.public Integer getDebugLevel()
public void setDebugLevel(Integer debugLevel)
debugLevel - New value of property debugLevel.
public Connection createConnection()
throws SQLException,
IOException
createConnection in interface IConnectionFactorySQLException - if any SQL error occurs
IOException - if any IO error occurs
public void freeConnection(Connection connection)
throws SQLException,
IOException
freeConnection in interface IConnectionFactoryconnection - The connection to return back to the pool.
SQLException - if any SQL error occurs
IOException - if any IO error occurspublic boolean usePreparedStatementCaching()
usePreparedStatementCaching in interface IConnectionFactory
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||