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 theSQLiteWriter
reading the properties to retrieve the stable database version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearDb()
Clears the database of all known/used tables.void
saveToFile
(Database database, String fileName) Save the database to the filename.
-
Constructor Details
-
SQLiteWriter
public SQLiteWriter()Constructor for theSQLiteWriter
reading 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.
-