org.aris.hldb.pools
Class SimpleConProvider

java.lang.Object
  extended by org.aris.hldb.pools.SimpleConProvider
All Implemented Interfaces:
ConnectionProviderI

public class SimpleConProvider
extends java.lang.Object
implements ConnectionProviderI

This is a simple Connection provider. Use this with hlDB if you want to use one single connection for the pool (not efficient).

Version:
1.0
Author:
Konstantine Kougios

Constructor Summary
SimpleConProvider(java.sql.Connection con)
           
 
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

SimpleConProvider

public SimpleConProvider(java.sql.Connection con)
Method Detail

allocConnection

public java.sql.Connection allocConnection()
Description copied from interface: ConnectionProviderI
Returns a connection object by this pool. If there is no available connection and the pool is not full yet, it will create a new Connection. If the pool is full then it will reuse it's connection objects.

Specified by:
allocConnection in interface ConnectionProviderI
Returns:
A Connection object.