Package ch.nolix.core.sql.connection
Klasse UncloseableSqlConnection
java.lang.Object
ch.nolix.core.sql.connection.UncloseableSqlConnection
- Alle implementierten Schnittstellen:
Closeable,CloseStateRequestable,GroupCloseable,ISqlConnection,AutoCloseable
A
UncloseableSqlConnection is a ISqlConnection that is a
wrapper around another ISqlConnection. When the close method of a
UncloseableSqlConnection is called, the
UncloseableSqlConnection and its wrapped ISqlConnection will
not be closed.- Version:
- 2025-02-07
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidexecuteStatement(String statement, String... statements) voidexecuteStatements(IContainer<String> statements) static UncloseableSqlConnectionforSqlConnection(ISqlConnection sqlConnection) getRecordsFromQuery(String query) getSingleRecordFromQuery(String query) voidLets the currentGroupCloseablenote a close.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrol.closecontroller.CloseStateRequestable
isOpenVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrol.closecontroller.GroupCloseable
close, createCloseDependencyTo, isClosed
-
Methodendetails
-
forSqlConnection
- Parameter:
sqlConnection-- Gibt zurück:
- either a new
UncloseableSqlConnectionfor the given sqlConnection or the given sqlConnection if the given sqlConnection is aUncloseableSqlConnection. - Löst aus:
RuntimeException- if the given sqlConnection is null or not open.
-
executeStatement
- Angegeben von:
executeStatementin SchnittstelleISqlConnection
-
executeStatements
- Angegeben von:
executeStatementsin SchnittstelleISqlConnection
-
getDatabaseEngine
- Angegeben von:
getDatabaseEnginein SchnittstelleISqlConnection
-
getRecordsFromQuery
- Angegeben von:
getRecordsFromQueryin SchnittstelleISqlConnection
-
getSingleRecordFromQuery
- Angegeben von:
getSingleRecordFromQueryin SchnittstelleISqlConnection
-
getStoredCloseController
- Angegeben von:
getStoredCloseControllerin SchnittstelleGroupCloseable- Gibt zurück:
- the
ICloseControllerof the currentGroupCloseable.
-
noteClose
public void noteClose()Lets the currentGroupCloseablenote a close.- Angegeben von:
noteClosein SchnittstelleGroupCloseable
-