Class SQLiteWriter
java.lang.Object
org.eclipse.mosaic.lib.database.persistence.SQLiteWriter
This stores all objects from the given object database to a persistent SQLite database.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for theSQLiteWriterreading the properties to retrieve the stable database version. -
Method Summary
Modifier and TypeMethodDescriptionvoidclearDb()Clears the database of all known/used tables.voidsaveToFile(Database database, String fileName) Save the database to the filename.
-
Constructor Details
-
SQLiteWriter
public SQLiteWriter()Constructor for theSQLiteWriterreading the properties to retrieve the stable database version.
-
-
Method Details
-
saveToFile
Save the database to the filename.- Parameters:
database- Database to save.fileName- Name of the saved database.
-
clearDb
Clears the database of all known/used tables.- Throws:
SQLException- Exception that provides information on a database access error or other errors.
-