Package ru.curs.celesta
Interface ConnectionPool
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
DatasourceConnectionPool
,InternalConnectionPool
public interface ConnectionPool extends AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
close()
default void
commit(Connection conn)
Executes 'commit' command on a connection without throwing a checked exception.Connection
get()
boolean
isClosed()
void
setDbAdaptor(DBAdaptor dbAdaptor)
-
-
-
Method Detail
-
get
Connection get()
-
setDbAdaptor
void setDbAdaptor(DBAdaptor dbAdaptor)
-
close
void close()
- Specified by:
close
in interfaceAutoCloseable
-
isClosed
boolean isClosed()
-
commit
default void commit(Connection conn)
Executes 'commit' command on a connection without throwing a checked exception.- Parameters:
conn
- connection for commit execution.
-
-