Autopsy  4.12.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Public Attributes | Private Member Functions | Static Private Attributes | List of all members
org.sleuthkit.autopsy.coreutils.SQLiteDBConnect Class Reference

Inherits AutoCloseable.

Public Member Functions

 SQLiteDBConnect ()
 
 SQLiteDBConnect (String sDriverToLoad, String sUrlToLoad) throws SQLException
 
void close ()
 
void closeConnection ()
 
ResultSet executeQry (String instruction) throws SQLException
 
void executeStmt (String instruction) throws SQLException
 
void executeStmt (String[] instructionSet) throws SQLException
 
Connection getConnection ()
 
Statement getStatement ()
 
final void init (String sDriverVar, String sUrlVar) throws SQLException
 
void setConnection () throws SQLException
 
void setStatement () throws SQLException
 

Public Attributes

Connection conn = null
 
int iTimeout = 30
 
String sDriver = ""
 
Statement statement = null
 
String sUrl = null
 

Private Member Functions

void setDriver (String sDriverVar)
 
void setUrl (String sUrlVar)
 

Static Private Attributes

static final Logger logger = Logger.getLogger(SQLiteDBConnect.class.getName())
 

Detailed Description

Database connection class & utilities.

Definition at line 35 of file SQLiteDBConnect.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.SQLiteDBConnect ( )

Definition at line 48 of file SQLiteDBConnect.java.

org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.SQLiteDBConnect ( String  sDriverToLoad,
String  sUrlToLoad 
) throws SQLException

Member Function Documentation

void org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.close ( )
void org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.closeConnection ( )
ResultSet org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.executeQry ( String  instruction) throws SQLException
void org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.executeStmt ( String  instruction) throws SQLException
void org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.executeStmt ( String[]  instructionSet) throws SQLException

processes an array of instructions e.g. a set of SQL command strings passed from a file

NB you should ensure you either handle empty lines in files by either removing them or parsing them out since they will generate spurious SQLExceptions when they are encountered during the iteration....

Definition at line 114 of file SQLiteDBConnect.java.

References org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.executeStmt().

Connection org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.getConnection ( )
Statement org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.getStatement ( )
final void org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.init ( String  sDriverVar,
String  sUrlVar 
) throws SQLException
void org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.setConnection ( ) throws SQLException
void org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.setDriver ( String  sDriverVar)
private
void org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.setStatement ( ) throws SQLException
void org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.setUrl ( String  sUrlVar)
private

Member Data Documentation

Connection org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.conn = null
int org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.iTimeout = 30

Definition at line 39 of file SQLiteDBConnect.java.

final Logger org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.logger = Logger.getLogger(SQLiteDBConnect.class.getName())
staticprivate

Definition at line 42 of file SQLiteDBConnect.java.

String org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.sDriver = ""

Definition at line 37 of file SQLiteDBConnect.java.

Statement org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.statement = null
String org.sleuthkit.autopsy.coreutils.SQLiteDBConnect.sUrl = null

Definition at line 38 of file SQLiteDBConnect.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2018 Basis Technology. Generated on: Wed Sep 18 2019
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.