|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xalan.lib.sql.DefaultConnectionPool
For internal connectiones, i.e. Connection information supplies in the Stylesheet. The Default Connection Pool will be used.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Constructor Summary | |
DefaultConnectionPool()
|
Method Summary | |
protected void |
finalize()
|
void |
freeUnused()
Go through the connection pool and release any connections that are not InUse; |
java.sql.Connection |
getConnection()
|
boolean |
hasActiveConnections()
Is our ConnectionPool have any connections that are still in Use ?? |
void |
initializePool()
|
boolean |
isEnabled()
Return our current Active state |
void |
releaseConnection(java.sql.Connection con)
|
void |
releaseConnectionOnError(java.sql.Connection con)
|
void |
setDriver(java.lang.String d)
Set the driver call to be used to create connections |
void |
setMinConnections(int n)
Override the current number of connections to keep in the pool. |
void |
setPassword(java.lang.String p)
Set the password in the property set. |
void |
setPoolEnabled(boolean flag)
The Pool can be Enabled and Disabled. |
void |
setProtocol(java.util.Properties p)
The Protocol string is used to pass in other connection properties. |
void |
setURL(java.lang.String url)
Set the url used to connect to the database |
void |
setUser(java.lang.String u)
Set the user name in the property set |
boolean |
testConnection()
Try to aquire a new connection, if it succeeds then return true, else return false. |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DefaultConnectionPool()
Method Detail |
public boolean isEnabled()
public void setDriver(java.lang.String d)
d
- public void setURL(java.lang.String url)
url
- public void freeUnused()
public boolean hasActiveConnections()
public void setPassword(java.lang.String p)
p
- public void setUser(java.lang.String u)
u
- public void setProtocol(java.util.Properties p)
p
- public void setMinConnections(int n)
n
- public boolean testConnection()
public java.sql.Connection getConnection() throws java.lang.IllegalArgumentException, java.sql.SQLException
public void releaseConnection(java.sql.Connection con) throws java.sql.SQLException
con
- public void releaseConnectionOnError(java.sql.Connection con) throws java.sql.SQLException
con
- public void initializePool() throws java.lang.IllegalArgumentException, java.sql.SQLException
protected void finalize() throws java.lang.Throwable
public void setPoolEnabled(boolean flag)
flag
- Control the Connection Pool. If it is enabled then Connections will actuall be held
around. If disabled then all unused connections will be instantly closed and as
connections are released they are closed and removed from the pool.
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs70 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |