Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.huihoo.jfox.pool.connection
Interface PoolableConnection

All Superinterfaces:
  PoolableObject

All Known Implementing Classes:
  SimplePoolableConnection

public interface PoolableConnection
extends PoolableObject

Author:
  Kelvin Wu

Method Summary
`void` | `close()`
`java.sql.Connection` | `getConnection()` get the physical connection
`ObjectPool` | `getPool()` Get the pool that this poolableConnection belongs to, so the poolableConnection can be managed by the pool.
`boolean` | `isUsing()`
`void` | `reallyClose()` Close the physical connection that this PoolableConnection wrapped.
`void` | `setPool(ObjectPool pool)` Set which pool that this PoolableConnection belongs to.
`void` | `setUsing(boolean b)`

Methods inherited from interface org.huihoo.jfox.pool.PoolableObject
`activate, passivate`

Method Detail

### getPool

    public ObjectPool getPool()

  Get the pool that this poolableConnection belongs to, so the poolableConnection can be managed by the pool.

### setPool

    public void setPool(ObjectPool pool)

  Set which pool that this PoolableConnection belongs to.
  Parameters:
    `pool` -

### reallyClose

    public void reallyClose()

  Close the physical connection that this PoolableConnection wrapped.

### setUsing

    public void setUsing(boolean b)

### isUsing

    public boolean isUsing()

### getConnection

    public java.sql.Connection getConnection()

  get the physical connection
  Returns:

### close

    public void close()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD