Package org.sqlite

Class SQLiteConnection

  • All Implemented Interfaces:
    java.lang.AutoCloseable, java.sql.Connection, java.sql.Wrapper

    public class SQLiteConnection
    extends JDBC4Connection
    • Constructor Detail

      • SQLiteConnection

        public SQLiteConnection​(java.lang.String url,
                                java.lang.String fileName)
                         throws java.sql.SQLException
        Constructor to create a connection to a database at the given location.
        Parameters:
        url - The location of the database.
        fileName - The database.
        Throws:
        java.sql.SQLException
      • SQLiteConnection

        public SQLiteConnection​(java.lang.String url,
                                java.lang.String fileName,
                                java.util.Properties prop)
                         throws java.sql.SQLException
        Constructor to create a pre-configured connection to a database at the given location.
        Parameters:
        url - The location of the database file.
        fileName - The database.
        prop - The configurations to apply.
        Throws:
        java.sql.SQLException
    • Method Detail

      • setSchema

        public void setSchema​(java.lang.String schema)
                       throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getSchema

        public java.lang.String getSchema()
                                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • abort

        public void abort​(java.util.concurrent.Executor executor)
                   throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • setNetworkTimeout

        public void setNetworkTimeout​(java.util.concurrent.Executor executor,
                                      int milliseconds)
                               throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getNetworkTimeout

        public int getNetworkTimeout()
                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException