Package org.sqlite
Class SQLiteJDBCLoader
- java.lang.Object
-
- org.sqlite.SQLiteJDBCLoader
-
public class SQLiteJDBCLoader extends java.lang.ObjectSet the system properties, org.sqlite.lib.path, org.sqlite.lib.name, appropriately so that the SQLite JDBC driver can find *.dll, *.jnilib and *.so files, according to the current OS (win, linux, mac). The library files are automatically extracted from this project's package (JAR). usage: callinitialize()before using SQLite JDBC driver.- Author:
- leo
-
-
Constructor Summary
Constructors Constructor Description SQLiteJDBCLoader()
-
Method Summary
Modifier and Type Method Description static intgetMajorVersion()static intgetMinorVersion()static java.lang.StringgetVersion()static booleaninitialize()Loads SQLite native JDBC library.static booleanisNativeMode()Checks if the SQLite JDBC driver is set to native mode.static booleanisPureJavaMode()Deprecated.Pure Java nolonger supported
-
-
-
Method Detail
-
initialize
public static boolean initialize() throws java.lang.ExceptionLoads SQLite native JDBC library.- Returns:
- True if SQLite native library is successfully loaded; false otherwise.
- Throws:
java.lang.Exception
-
isPureJavaMode
@Deprecated public static boolean isPureJavaMode()
Deprecated.Pure Java nolonger supportedChecks if the SQLite JDBC driver is set to pure Java mode.- Returns:
- True if the SQLite JDBC driver is set to pure Java mode; false otherwise.
-
isNativeMode
public static boolean isNativeMode() throws java.lang.ExceptionChecks 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:
java.lang.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
public static java.lang.String getVersion()
- Returns:
- The version of the SQLite JDBC driver.
-
-