java.lang.Object
net.foxgenesis.database.AConnectionProvider
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final StringgetName()protected <U> @NotNull Optional<U>openAutoClosedConnection(@NotNull AConnectionProvider.ConnectionConsumer<U> consumer) protected <U> @NotNull Optional<U>openAutoClosedConnection(@NotNull AConnectionProvider.ConnectionConsumer<U> consumer, Consumer<Throwable> error) protected abstract @NotNull Connection
-
Field Details
-
logger
protected final org.slf4j.Logger logger -
properties
-
-
Constructor Details
-
AConnectionProvider
-
-
Method Details
-
openConnection
- Throws:
SQLException
-
openAutoClosedConnection
@NotNull protected <U> @NotNull Optional<U> openAutoClosedConnection(@NotNull @NotNull AConnectionProvider.ConnectionConsumer<U> consumer) throws SQLException - Throws:
SQLException
-
openAutoClosedConnection
@NotNull protected <U> @NotNull Optional<U> openAutoClosedConnection(@NotNull @NotNull AConnectionProvider.ConnectionConsumer<U> consumer, Consumer<Throwable> error) -
getName
-
getDatabase
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-