|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.aris.hldb.pools.ConnectionPoolProvider
public class ConnectionPoolProvider
A simple connection pool provider. Reuses a maximum of n number of connections.
Constructor Summary | |
---|---|
ConnectionPoolProvider(java.lang.String db_name,
int max_Connections)
Creates a new instance of hlCon pool. |
Method Summary | |
---|---|
java.sql.Connection |
allocConnection()
Returns a connection object by this pool. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionPoolProvider(java.lang.String db_name, int max_Connections)
hlCon hlc=new
hlCon("jdbc:microsoft:sqlserver://127.0.0.1:1433;DatabaseName=test;SelectMethod=cursor;User=sa;Password=mypass",10);
db_name
- the connection string for this connection.max_Connections
- Maximum connection objects that will be created by this pool.Method Detail |
---|
public java.sql.Connection allocConnection() throws java.sql.SQLException
allocConnection
in interface ConnectionProviderI
java.sql.SQLException
- -
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |