com.exponto.jstock
Class DBIndicatorParameters
java.lang.Object
com.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.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBIndicatorParameters
public DBIndicatorParameters()
DBIndicatorParameters
public DBIndicatorParameters(int index,
java.lang.String indicator,
java.lang.String value)
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