protected void setUp() throws SQLException {
        Connection connection = getConnection();
        try {
            if (!isSetUp(connection)) {
                Statement stmt = connection.createStatement();
                stmt.execute(Query.CREATE_TABLE_RECORDS);
                stmt.execute(Query.CREATE_TABLE_FILEHASHES);
                stmt.execute(Query.CREATE_TABLE_META);
                stmt.execute(Query.CREATE_TABLE_CVES);
                stmt.close();
            }
        } finally {
            connection.close();
        }
    }
protected void setUp ( ) throws SQLException { Connection connection = getConnection ( ) ; try { if ( ! isSetUp ( connection ) ) { Statement stmt = connection . createStatement ( ) ; stmt . execute ( Query . CREATE_TABLE_RECORDS ) ; stmt . execute ( Query . CREATE_TABLE_FILEHASHES ) ; stmt . execute ( Query . CREATE_TABLE_META ) ; stmt . execute ( Query . CREATE_TABLE_CVES ) ; stmt . close ( ) ; } } finally { connection . close ( ) ; } }
Initializes a database by created required tables.

@throws SQLException