|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cuba.wired.WiredPooledDataSource
public class WiredPooledDataSource
The WiredPooledDataSource is a derivation of WiredDataSource
which supports connection pooling to speed up database access
over multiple component method calls.
Field Summary | |
---|---|
protected DataSourceDesc |
desc
|
protected java.util.LinkedList |
freePool
The list of free physical connections currently available |
protected int |
poolSize
The total number of connections being pooled in this SQLSource |
Method Summary | |
---|---|
void |
dropConnection(WiredManagedConnection mcon)
Called by the transaction manager to signal that the passed connection is no longer in use. |
java.sql.Connection |
getConnection()
|
java.sql.Connection |
getConnection(java.lang.String userName,
java.lang.String password)
|
int |
getLoginTimeout()
|
java.io.PrintWriter |
getLogWriter()
|
int |
getPoolSize()
Only for test and analysis purposes |
protected java.sql.Connection |
newConnection()
Get a new physical database connection from the DriverManager class. |
WiredManagedConnection |
nextConnection()
Returns the next available free physical connection, wrapped in a new WiredManagedConnection . |
void |
setLoginTimeout(int seconds)
|
void |
setLogWriter(java.io.PrintWriter out)
|
protected void |
shutdown()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.LinkedList freePool
protected int poolSize
protected DataSourceDesc desc
Method Detail |
---|
public WiredManagedConnection nextConnection() throws java.sql.SQLException
WiredManagedConnection
.
nextConnection
in interface WiredDataSourceI
java.sql.SQLException
public void dropConnection(WiredManagedConnection mcon) throws ComponentException
dropConnection
in interface WiredDataSourceI
ComponentException
protected void shutdown()
public int getPoolSize()
protected java.sql.Connection newConnection() throws java.sql.SQLException
DriverManager
class.
java.sql.SQLException
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
public java.sql.Connection getConnection(java.lang.String userName, java.lang.String password)
getConnection
in interface javax.sql.DataSource
public int getLoginTimeout() throws java.sql.SQLException
getLoginTimeout
in interface javax.sql.DataSource
java.sql.SQLException
public java.io.PrintWriter getLogWriter() throws java.sql.SQLException
getLogWriter
in interface javax.sql.DataSource
java.sql.SQLException
public void setLoginTimeout(int seconds) throws java.sql.SQLException
setLoginTimeout
in interface javax.sql.DataSource
java.sql.SQLException
public void setLogWriter(java.io.PrintWriter out) throws java.sql.SQLException
setLogWriter
in interface javax.sql.DataSource
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |