|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttvraterplugin.Database
public class Database
This class holds the "Database" for the Ratings. Could be replaced by a real Database in a later Version...
| Constructor Summary | |
|---|---|
Database()
|
|
| Method Summary | |
|---|---|
void |
clearChangedPersonal()
Empties the ChangedPersonal List |
void |
clearServer()
Empties the server based ratings list |
ArrayList<Rating> |
getChangedPersonal()
|
Rating |
getPersonalRating(Program program)
Gets one personal Rating for a specific Program |
Rating |
getPersonalRating(String title)
Gets one personal Rating for a specific title |
Collection<Rating> |
getPersonalRatings()
Gets the personal Ratings in this Database |
Rating |
getServerRating(Program program)
Gets the server rating for a specific program |
Rating |
getServerRating(String title)
Gets one server rating for a specific title |
Collection<Rating> |
getServerRatings()
Gets the server ratings in this database |
void |
readData(ObjectInputStream in)
Called by the host-application during start-up. |
void |
setPersonalRating(Rating rating)
Saves the personal rating in the database |
void |
setServerRating(Rating rating)
Sets the Rating |
void |
writeData(ObjectOutputStream out)
Counterpart to loadData. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Database()
| Method Detail |
|---|
public Collection<Rating> getServerRatings()
public Rating getServerRating(Program program)
program - get rating for this program
public Rating getServerRating(String title)
title - get rating for this Title
public void setServerRating(Rating rating)
rating - public Collection<Rating> getPersonalRatings()
public Rating getPersonalRating(Program program)
program - get Rating for this Program
public Rating getPersonalRating(String title)
title - get rating for this Title
public void setPersonalRating(Rating rating)
rating - save this Ratingpublic ArrayList<Rating> getChangedPersonal()
public void clearChangedPersonal()
public void clearServer()
public void readData(ObjectInputStream in)
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundExceptionwriteData(ObjectOutputStream)
public void writeData(ObjectOutputStream out)
throws IOException
IOExceptionreadData(ObjectInputStream)
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||