Package ru.curs.celesta
Class DatasourceConnectionPool
- java.lang.Object
-
- ru.curs.celesta.DatasourceConnectionPool
-
- All Implemented Interfaces:
AutoCloseable
,ConnectionPool
public final class DatasourceConnectionPool extends Object implements ConnectionPool
-
-
Constructor Summary
Constructors Constructor Description DatasourceConnectionPool(DataSource dataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Connection
get()
boolean
isClosed()
void
setDbAdaptor(DBAdaptor dbAdaptor)
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ru.curs.celesta.ConnectionPool
commit
-
-
-
-
Constructor Detail
-
DatasourceConnectionPool
public DatasourceConnectionPool(DataSource dataSource)
-
-
Method Detail
-
get
public Connection get()
- Specified by:
get
in interfaceConnectionPool
-
setDbAdaptor
public void setDbAdaptor(DBAdaptor dbAdaptor)
- Specified by:
setDbAdaptor
in interfaceConnectionPool
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceConnectionPool
-
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interfaceConnectionPool
-
-