Go to the documentation of this file.
23package org.sleuthkit.autopsy.coreutils;
25import java.sql.Connection;
26import java.sql.DriverManager;
27import java.sql.ResultSet;
28import java.sql.SQLException;
29import java.sql.Statement;
30import java.util.logging.Level;
59 }
catch (ClassNotFoundException ex) {
60 throw new SQLException(ex);
62 conn = DriverManager.getConnection(
sUrl);
75 public void executeStmt(String sqlStatement)
throws SQLException {
87 public void executeStmt(String[] sqlStatements)
throws SQLException {
88 for (String stmt : sqlStatements) {
104 public ResultSet
executeQry(String sqlStatement)
throws SQLException {
105 return statement.executeQuery(sqlStatement);
120 }
catch (SQLException ex) {
121 logger.log(Level.WARNING,
"Unable to close connection to SQLite DB at " +
sUrl, ex);
154 public final void init(String driver, String url)
throws SQLException {
174 throw new SQLException(
"Driver and or databse URl not initialized");
179 }
catch (ClassNotFoundException ex) {
180 throw new SQLException(ex);
182 conn = DriverManager.getConnection(
sUrl);
synchronized static Logger getLogger(String name)
void executeStmt(String sqlStatement)
static final int STMT_EXEC_TIMEOUT_SECS
SQLiteDBConnect(String driver, String url)
ResultSet executeQry(String sqlStatement)
static final Logger logger
void executeStmt(String[] sqlStatements)
Connection getConnection()
final void init(String driver, String url)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.