Class SQLiteReader
java.lang.Object
org.eclipse.mosaic.lib.database.persistence.SQLiteReader
This reads all objects from an SQLite database into the given object database.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SQLiteReader
(boolean skipVersionCheck) Creates a newSQLiteReader
object. -
Method Summary
Modifier and TypeMethodDescriptionloadFromFile
(String dbFilename) This loads the given database into our database objects by skipping the values in the list.
-
Constructor Details
-
SQLiteReader
public SQLiteReader()Default constructor. -
SQLiteReader
public SQLiteReader(boolean skipVersionCheck) Creates a newSQLiteReader
object.- Parameters:
skipVersionCheck
- Disable the check the version of the database.
-
-
Method Details
-
loadFromFile
This loads the given database into our database objects by skipping the values in the list.- Parameters:
dbFilename
- Database filename.- Returns:
- Loaded database.
- Throws:
OutdatedDatabaseException
- if there is an error while reading version from database or the read version is older than stable version.
-