Class SQLiteReader
- java.lang.Object
-
- org.eclipse.mosaic.lib.database.persistence.SQLiteReader
-
public class SQLiteReader extends Object
This reads all objects from an SQLite database into the given object database.
-
-
Constructor Summary
Constructors Constructor Description SQLiteReader()
Default constructor.SQLiteReader(boolean skipVersionCheck)
Creates a newSQLiteReader
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Database.Builder
loadFromFile(String dbFilename)
This loads the given database into our database objects by skipping the values in the list.
-
-
-
Constructor Detail
-
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 Detail
-
loadFromFile
public Database.Builder loadFromFile(@Nonnull String dbFilename) throws OutdatedDatabaseException
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.
-
-