|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.astroshare.astroonline.core.InstalledHoroscopesList
public class InstalledHoroscopesList
Implementation of cache of installed Horoscopes.
For every installed horoscope a set of data items is saved in cache. Class InstalledHoroscope is used to identify the different items of an installed horoscope. These items are retrieved from the database through class Configuration and cached through class InstalledHoroscopesList.
Configuration,
InstalledHoroscope| Constructor Summary | |
|---|---|
InstalledHoroscopesList()
|
|
| Method Summary | |
|---|---|
static boolean |
addHoroscope(java.lang.String id,
java.lang.String type,
java.lang.String language,
java.lang.String dbid,
java.lang.String title,
java.lang.String input,
java.lang.String output,
java.lang.String intro)
Add an installed horoscope to cache. |
static void |
clearList()
Clear cache of installed horoscope list. |
static boolean |
findHoroscope(java.lang.String id,
java.lang.String language)
Check whether an installed horoscope is available in cache. |
static InstalledHoroscope |
getHoroscope(java.lang.String id,
java.lang.String language)
Get installed horoscope from cache. |
static java.util.ArrayList<java.lang.Object> |
getList()
Get all cached installed horoscopes in an arraylist. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstalledHoroscopesList()
| Method Detail |
|---|
public static void clearList()
Clear cache of installed horoscope list.
public static boolean addHoroscope(java.lang.String id,
java.lang.String type,
java.lang.String language,
java.lang.String dbid,
java.lang.String title,
java.lang.String input,
java.lang.String output,
java.lang.String intro)
Add an installed horoscope to cache.
id - Horoscope IDtype - Horoscope typelanguage - Horoscope languagedbid - Horoscope database IDtitle - Horoscope titleinput - Horoscope input templateoutput - Horoscope output templateintro - Horoscope intro text
public static boolean findHoroscope(java.lang.String id,
java.lang.String language)
Check whether an installed horoscope is available in cache.
id - Horoscope ID
public static InstalledHoroscope getHoroscope(java.lang.String id,
java.lang.String language)
Get installed horoscope from cache.
id - Horoscope ID
public static java.util.ArrayList<java.lang.Object> getList()
Get all cached installed horoscopes in an arraylist.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Astro-Online © 2001 − 2008 Astro Share
Documentation generated on: Thursday August 12th 2008 (PS)