10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ConnectionPool Class<br />

ConnectionPool Class<br />

The ConnectionPool class represents a pool of connections for a specific database.<br />

To create a connection pool, use the syntax:<br />

ConnectionPool();<br />

Summary of ConnectionPool Methods<br />

Table 8–7 ConnectionPool Methods<br />

Method Summary<br />

createConnection() on page 8-44 Create a pooled connection.<br />

createProxyConnection() on<br />

page 8-44<br />

getBusyConnections() on<br />

page 8-45<br />

Create a proxy connection.<br />

Return the number of busy connections in the<br />

connection pool.<br />

getIncrConnections() on page 8-45 Return the number of incremental connections in the<br />

connection pool.<br />

getMaxConnections() on<br />

page 8-45<br />

Return the maximum number of connections in the<br />

connection pool.<br />

getMinConnections() on page 8-46 Return the minimum number of connections in the<br />

connection pool.<br />

getOpenConnections() on<br />

page 8-46<br />

Return the number of open connections in the<br />

connection pool.<br />

getPoolName() on page 8-46 Return the name of the connection pool.<br />

getTimeOut() on page 8-46 Return the time-out period for a connection in the<br />

connection pool.<br />

setErrorOnBusy() on page 8-46 Specify that a SQLException is to be generated when all<br />

connections in the connection pool are busy and no<br />

further connections can be opened.<br />

setPoolSize() on page 8-47 Set the minimum, maximum, and incremental number<br />

of pooled connections for the connection pool.<br />

setTimeOut() on page 8-46 Set the time-out period, in seconds, for a connection in<br />

the connection pool.<br />

OCCI Classes and Methods 8-43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!