Package de.businesscode.util.jdbc
Class Closer
java.lang.Object
de.businesscode.util.jdbc.Closer
closes JDBC objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
closeAllSQLObjects
(Object... closables) closes objects of following types: Statement ResultSet Connection ignores thrown exceptions.
-
Constructor Details
-
Closer
public Closer()
-
-
Method Details
-
closeAllSQLObjects
closes objects of following types: Statement ResultSet Connection ignores thrown exceptions. If a close operation is aborted by exception whilst iterating given objects, the queue just keeps being processed with next object.- Parameters:
closables
- to close, if array is provided its items are allowed to be null- Throws:
IllegalArgumentException
- if object of unsupported class provided
-