Package org.sqlite
Class SQLiteJDBCLoader
java.lang.Object
org.sqlite.SQLiteJDBCLoader
Set the system properties, org.sqlite.lib.path, org.sqlite.lib.name, appropriately so that the
SQLite JDBC driver can find *.dll, *.dylib and *.so files, according to the current OS (win,
linux, mac).
The library files are automatically extracted from this project's package (JAR).
usage: call initialize()
before using SQLite JDBC driver.
- Author:
- leo
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
This class will load the version from resources during. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
static int
static String
static boolean
Loads SQLite native JDBC library.static boolean
Checks if the SQLite JDBC driver is set to native mode.
-
Constructor Details
-
SQLiteJDBCLoader
public SQLiteJDBCLoader()
-
-
Method Details
-
initialize
Loads SQLite native JDBC library.- Returns:
- True if SQLite native library is successfully loaded; false otherwise.
- Throws:
Exception
-
isNativeMode
Checks if the SQLite JDBC driver is set to native mode.- Returns:
- True if the SQLite JDBC driver is set to native Java mode; false otherwise.
- Throws:
Exception
-
getMajorVersion
public static int getMajorVersion()- Returns:
- The major version of the SQLite JDBC driver.
-
getMinorVersion
public static int getMinorVersion()- Returns:
- The minor version of the SQLite JDBC driver.
-
getVersion
- Returns:
- The version of the SQLite JDBC driver.
-