public interface SqlDatabaseReader
extends java.lang.AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the database connection.
|
java.sql.Connection |
connection()
Gets the underlying database connection.
|
void close() throws java.sql.SQLException
The database is closed only if this object has been created by constructor using database file name.
close
in interface java.lang.AutoCloseable
java.sql.SQLException
- If the connection cannot be closed.java.sql.Connection connection()
Last updated 2024-12-05 10:34:50