public class FileDatabaseStore extends DatabaseStore
The file database store. This store is used to store show/film information in a database located in a file. The file is stored in the configuration directory and called "mediaInfo.db."
This store has no parameters
Constructor and Description |
---|
FileDatabaseStore(Controller controller)
The constructor
|
Modifier and Type | Method and Description |
---|---|
protected java.io.File |
getConfigFile() |
protected java.lang.String |
getExtraUrlParams() |
java.lang.String |
getParameter(java.lang.String key)
Used to get the value of a source parameter.
|
void |
init()
Called to initialise the stores and check all their resources can be found.
|
void |
setParameter(java.lang.String key,
java.lang.String value)
Used to set source parameters.
|
aboutToRenamedFile, beginTransaction, cacheEpisode, cacheEpisodeNoTrans, cacheFilm, cacheSeason, cacheSeasonNoTrans, cacheShow, cacheShowNoTrans, close, commitTransaction, fileDeleted, fileKnownByStore, fileUpdated, getController, getEpisode, getEpisode, getFilm, getFilm, getSeason, getShow, getSpecial, init, listEpisodes, listFilms, performedActions, renamedFile, searchMedia, updateEpisode, updateSeason, updateShow, upgrade
public FileDatabaseStore(Controller controller)
controller
- The controllerprotected java.lang.String getExtraUrlParams()
public void init() throws StoreException
init
in interface IStore
init
in class DatabaseStore
StoreException
- Thrown if their are any problemsprotected java.io.File getConfigFile() throws ConfigException
ConfigException
public void setParameter(java.lang.String key, java.lang.String value) throws StoreException
Used to set source parameters. If the key is not supported by this source, then a SourceException
is thrown.
setParameter
in interface IStore
setParameter
in class DatabaseStore
key
- The key of the parametervalue
- The value of the parameterStoreException
- Throw if the key is not supported by this store.public java.lang.String getParameter(java.lang.String key) throws StoreException
Used to get the value of a source parameter. If the key is not supported by this source, then a SourceException
is thrown.
getParameter
in interface IStore
getParameter
in class DatabaseStore
key
- The key of the parameterStoreException
- Throw if the key is not supported by this store.