com.astroshare.astroonline.horoscopes
Class Partner

java.lang.Object
  extended by com.astroshare.astroonline.horoscopes.Horoscope
      extended by com.astroshare.astroonline.horoscopes.Partner

public class Partner
extends Horoscope

Implementation of online horoscope Partner.

This horoscope is only based on two signs.


Field Summary
protected static org.apache.log4j.Logger log
          init logging
protected  java.lang.String sign
          variable in which the sign of person 1 is stored
protected  java.lang.String sign2
          variable in which the sign of person 2 is stored
 
Fields inherited from class com.astroshare.astroonline.horoscopes.Horoscope
args, databaseID, horoscopeID, language, startupMode, templateInput, templateOutput
 
Constructor Summary
Partner()
           
 
Method Summary
protected  boolean checkHoroscopeData()
           Override method checkHoroscopeData.
protected  java.util.HashMap<java.lang.String,java.lang.Object> getFormText()
           Overwrite method getFormText.
protected  void getHoroscopeArguments()
           Override method getHoroscopeArguments.
protected  java.util.HashMap<java.lang.String,java.lang.Object> getInputMap()
           Override method getInputMap
protected  java.util.HashMap<java.lang.String,java.lang.Object> getOutputMap()
           Override method getOutputMap.
protected  java.util.ArrayList<java.lang.Object> getTextFromDatabaseList(Sql sql)
           Overwrite method getTextFromDatabaseList.
 
Methods inherited from class com.astroshare.astroonline.horoscopes.Horoscope
getHoroscope, getInputPage, getMap, getOutputPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.log4j.Logger log
init logging


sign

protected java.lang.String sign
variable in which the sign of person 1 is stored


sign2

protected java.lang.String sign2
variable in which the sign of person 2 is stored

Constructor Detail

Partner

public Partner()
Method Detail

getInputMap

protected java.util.HashMap<java.lang.String,java.lang.Object> getInputMap()

Override method getInputMap

Specified by:
getInputMap in class Horoscope
Returns:
Input map

getOutputMap

protected java.util.HashMap<java.lang.String,java.lang.Object> getOutputMap()

Override method getOutputMap.

Specified by:
getOutputMap in class Horoscope
Returns:
Output map

getHoroscopeArguments

protected void getHoroscopeArguments()

Override method getHoroscopeArguments.

Specified by:
getHoroscopeArguments in class Horoscope

checkHoroscopeData

protected boolean checkHoroscopeData()

Override method checkHoroscopeData.

Specified by:
checkHoroscopeData in class Horoscope
Returns:
TRUE=Data is valid;FALSE=Data is invalid

getTextFromDatabaseList

protected java.util.ArrayList<java.lang.Object> getTextFromDatabaseList(Sql sql)

Overwrite method getTextFromDatabaseList. Get horoscope text from database, returning an ArrayList.

Parameters:
sql - Database connection
Returns:
ArrayList Horoscope interpretation

getFormText

protected java.util.HashMap<java.lang.String,java.lang.Object> getFormText()

Overwrite method getFormText.

Overrides:
getFormText in class Horoscope
Returns:
Hashmap containing form text


Astro-Online © 2001 − 2008 Astro Share
Documentation generated on: Thursday August 12th 2008 (PS)