Skip to content
Snippets Groups Projects
Commit 2c325bcc authored by Eamonn Saunders's avatar Eamonn Saunders
Browse files

Added an extra sentence to executeQuery() documentation detailing that they...

Added an extra sentence to executeQuery() documentation detailing that they must call CaseDbQuery.close() if they do not use the try-with-resources feature of Java.
parent 8904682e
Branches
Tags
No related merge requests found
...@@ -4101,9 +4101,12 @@ public void closeRunQuery(ResultSet resultSet) throws SQLException { ...@@ -4101,9 +4101,12 @@ public void closeRunQuery(ResultSet resultSet) throws SQLException {
/** /**
* This method allows developers to run arbitrary SQL "SELECT" * This method allows developers to run arbitrary SQL "SELECT"
* queries. The CaseDbQuery object will take care to acquiring * queries. The CaseDbQuery object will take care of acquiring
* the necessary database lock and when used in a try-with-resources * the necessary database lock and when used in a try-with-resources
* block will automatically take care of releasing the lock. * block will automatically take care of releasing the lock.
* If you do not use a try-with-resources block you must call
* CaseDbQuery.close() once you are done processing the results of
* the query.
* @param query The query string to execute. * @param query The query string to execute.
* @return A CaseDbQuery instance. * @return A CaseDbQuery instance.
* @throws TskCoreException * @throws TskCoreException
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment