Class SQLiteWriter


  • public class SQLiteWriter
    extends Object
    This stores all objects from the given object database to a persistent SQLite database.
    • Constructor Detail

      • SQLiteWriter

        public SQLiteWriter()
        Constructor for the SQLiteWriter reading the properties to retrieve the stable database version.
    • Method Detail

      • saveToFile

        public void saveToFile​(@Nonnull
                               Database database,
                               @Nonnull
                               String fileName)
        Save the database to the filename.
        Parameters:
        database - Database to save.
        fileName - Name of the saved database.
      • clearDb

        public void clearDb()
                     throws SQLException
        Clears the database of all known/used tables.
        Throws:
        SQLException - Exception that provides information on a database access error or other errors.