com.exponto.jstock
Class DBIndicatorParameters

java.lang.Object
  extended bycom.exponto.jstock.DBIndicatorParameters

public class DBIndicatorParameters
extends java.lang.Object

Author:
kaare Used to load parametervalues to/from database. In order to keep the db related code away from the indicatorparameter classes, this class will be used for that. It is important that if the parameters of an indicator is changed, the hashcode must be updated, otherwise e.g. lines would be completly wrong. A negative index means that this parameters are new to the database.

Constructor Summary
DBIndicatorParameters()
           
DBIndicatorParameters(int index, java.lang.String indicator, java.lang.String value)
           
 
Method Summary
 void delete()
           
 boolean equals(java.lang.Object o)
           
 int getIndex()
           
 int getIndicatorCode()
           
 java.lang.String getIndicatorName()
           
 java.lang.String getParameterValue()
           
 boolean isDeleted()
           
 void setIndex(int index)
           
 void setIndicatorCode(int indicatorcode)
           
 void setIndicatorName(java.lang.String name)
           
 void setParameterValue(java.lang.String value)
           
 void undelete()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBIndicatorParameters

public DBIndicatorParameters()

DBIndicatorParameters

public DBIndicatorParameters(int index,
                             java.lang.String indicator,
                             java.lang.String value)
Method Detail

equals

public boolean equals(java.lang.Object o)

getIndex

public int getIndex()
Returns:
Returns the index.

setIndex

public void setIndex(int index)

getIndicatorName

public java.lang.String getIndicatorName()
Returns:
Returns the indicatorName.

setIndicatorName

public void setIndicatorName(java.lang.String name)
Parameters:
name - The IndicatorName to set.

getParameterValue

public java.lang.String getParameterValue()
Returns:
Returns the parameterValue.

setParameterValue

public void setParameterValue(java.lang.String value)
Parameters:
value - The parameterValue to set.

isDeleted

public boolean isDeleted()
Returns:
Returns the isDeleted.

delete

public void delete()

undelete

public void undelete()

getIndicatorCode

public int getIndicatorCode()
Returns:
Returns the m_indicatorcode.

setIndicatorCode

public void setIndicatorCode(int indicatorcode)


Copyright © 2004 Kaare Ranum