Class SQLiteDB

  • All Implemented Interfaces:
    Database

    public class SQLiteDB
    extends SQLDB
    • Method Detail

      • setupDataSource

        public void setupDataSource()
        Description copied from class: SQLDB
        Set up the source for connections.
        Specified by:
        setupDataSource in class SQLDB
      • getNewConnection

        public java.sql.Connection getNewConnection​(java.io.File dbFile)
                                             throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getType

        public DBType getType()
        Description copied from interface: Database
        Used to get the DBType of the Database
        Returns:
        the DBType
        See Also:
        DBType
      • getConnection

        public java.sql.Connection getConnection()
                                          throws java.sql.SQLException
        Specified by:
        getConnection in class SQLDB
        Throws:
        java.sql.SQLException
      • returnToPool

        public void returnToPool​(java.sql.Connection connection)
        Specified by:
        returnToPool in class SQLDB
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class SQLDB
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class SQLDB