public interface Database
Modifier and Type | Method and Description |
---|---|
void |
addActor(Actor actor) |
void |
addDirector(Director director) |
void |
addGenre(Genre genre) |
void |
addLibrarySection(LibrarySection librarySection) |
void |
addWishList(WishList wishList) |
void |
addWriter(Writer writer) |
void |
deleteVideo(VideoBase vb)
Delete this Video and all of its related records
|
java.util.List<Actor> |
findActors(java.lang.String key,
int limit) |
java.util.List<Director> |
findDirectors(java.lang.String key,
int limit) |
java.util.List<Genre> |
findGenres(java.lang.String key,
int limit) |
java.util.List<Writer> |
findWriters(java.lang.String key,
int limit) |
Actor |
getActor(int actorId) |
Actor |
getActor(java.lang.String actorName) |
java.util.List<Actor> |
getActors() |
Director |
getDirector(int directorId) |
Director |
getDirector(java.lang.String directorName) |
java.util.List<Director> |
getDirectors() |
java.util.List<FailedToRip> |
getFailedToRip() |
Genre |
getGenre(int genreId) |
Genre |
getGenre(java.lang.String genreTag) |
java.util.List<Genre> |
getGenres() |
LibrarySection |
getLibrarySection(int key) |
java.util.List<LibrarySection> |
getLibrarySections() |
int |
getMaxVideoTextsSummaryLength() |
int |
getMaxVideoTextsTaglineLength() |
TVSeason |
getTVSeason(int seasonId) |
TVSeason |
getTVSeasonFromHashKey(int key)
Get a TV Season based on its plex key
|
java.util.List<TVSeason> |
getTVSeasons() |
java.util.List<TVSeason> |
getTVSeasons(int videoId)
Return a list of TVSeasons for a show
|
java.util.List<UserAttribute> |
getUserAttributes(int userId)
Get the UserAttributes for this userId.
|
Video |
getVideo(int videoId) |
VideoBase |
getVideoBase(int videoId)
Get the VideoBase with this videoId.
|
java.util.List<VideoBase> |
getVideoBases() |
int |
getVideoCount()
Return the number of unique videos in the library
|
java.util.List<java.lang.Integer> |
getVideoIdsByActor(int key) |
java.util.List<java.lang.Integer> |
getVideoIdsByDirector(int key) |
java.util.List<java.lang.Integer> |
getVideoIdsByGenre(int key) |
java.util.List<java.lang.Integer> |
getVideoIdsByWriter(int key) |
java.util.List<Video> |
getVideos() |
VideoTexts |
getVideoTexts(int id)
Return the tagline and summary texts for the video.
|
java.util.List<WishList> |
getWishList() |
Writer |
getWriter(int writerId) |
Writer |
getWriter(java.lang.String writerName) |
java.util.List<Writer> |
getWriters() |
void |
saveTVSeason(TVSeason season) |
void |
saveUserAttributes(java.util.List<UserAttribute> list) |
void |
saveVideo(Video video) |
void |
truncateLibrary()
Reset to empty all of the tables
|
java.util.List<FailedToRip> getFailedToRip()
java.util.List<WishList> getWishList()
void addWishList(WishList wishList)
void addLibrarySection(LibrarySection librarySection)
LibrarySection getLibrarySection(int key)
java.util.List<LibrarySection> getLibrarySections()
int getVideoCount()
java.util.List<java.lang.Integer> getVideoIdsByActor(int key)
java.util.List<java.lang.Integer> getVideoIdsByDirector(int key)
java.util.List<java.lang.Integer> getVideoIdsByWriter(int key)
java.util.List<java.lang.Integer> getVideoIdsByGenre(int key)
VideoTexts getVideoTexts(int id)
id
- the videoId to fetchint getMaxVideoTextsSummaryLength()
int getMaxVideoTextsTaglineLength()
void truncateLibrary()
void addActor(Actor actor)
Actor getActor(int actorId)
Actor getActor(java.lang.String actorName)
java.util.List<Actor> getActors()
java.util.List<Actor> findActors(java.lang.String key, int limit)
void addWriter(Writer writer)
Writer getWriter(int writerId)
Writer getWriter(java.lang.String writerName)
java.util.List<Writer> getWriters()
java.util.List<Writer> findWriters(java.lang.String key, int limit)
void addDirector(Director director)
Director getDirector(int directorId)
Director getDirector(java.lang.String directorName)
java.util.List<Director> getDirectors()
java.util.List<Director> findDirectors(java.lang.String key, int limit)
void addGenre(Genre genre)
Genre getGenre(int genreId)
Genre getGenre(java.lang.String genreTag)
java.util.List<Genre> getGenres()
java.util.List<Genre> findGenres(java.lang.String key, int limit)
void saveVideo(Video video)
Video getVideo(int videoId)
java.util.List<Video> getVideos()
void deleteVideo(VideoBase vb)
vb
- The VideoBase to deleteVideoBase getVideoBase(int videoId)
videoId
- The id to fetch.java.util.List<VideoBase> getVideoBases()
void saveTVSeason(TVSeason season)
TVSeason getTVSeason(int seasonId)
java.util.List<TVSeason> getTVSeasons()
java.util.List<TVSeason> getTVSeasons(int videoId)
videoId
- The show to lookupTVSeason getTVSeasonFromHashKey(int key)
key
- The plex key to lookupjava.util.List<UserAttribute> getUserAttributes(int userId)
User
parses these into his working attributes.userId
- The id of this uservoid saveUserAttributes(java.util.List<UserAttribute> list)