model
Class Szenarien

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by javax.swing.DefaultComboBoxModel
          extended by model.Szenarien
All Implemented Interfaces:
java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel, javax.swing.MutableComboBoxModel

public class Szenarien
extends javax.swing.DefaultComboBoxModel

ComboBoxModel Klasse f�r Szenarien-Verwaltung

Author:
Konstantin Karzanov 28.08.2008
See Also:
Serialized Form

Constructor Summary
Szenarien()
           
 
Method Summary
 int delete(int index)
          Szenario l�schen
 java.lang.String isInUse(int dim_id)
          �berpr�ft ob Dimensionen in irgendwelche Szenario gespeichert sind und liefert Szenario-Name zur�ck
 int save(int selectedIndex, java.lang.String szen_name, int aqua_id, double tempMin, double tempMax, double phMin, double phMax, java.util.Date lichtEin, java.util.Date lichtAus)
          Neu und bestehende Szenario speichern
 
Methods inherited from class javax.swing.DefaultComboBoxModel
addElement, getElementAt, getIndexOf, getSelectedItem, getSize, insertElementAt, removeAllElements, removeElement, removeElementAt, setSelectedItem
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
 

Constructor Detail

Szenarien

public Szenarien()
          throws AquaDaoException
Throws:
AquaDaoException
Method Detail

save

public int save(int selectedIndex,
                java.lang.String szen_name,
                int aqua_id,
                double tempMin,
                double tempMax,
                double phMin,
                double phMax,
                java.util.Date lichtEin,
                java.util.Date lichtAus)
         throws AquaDaoException
Neu und bestehende Szenario speichern

Parameters:
selectedIndex -
szen_name -
aqua_id -
tempMin -
tempMax -
phMin -
phMax -
lichtEin -
lichtAus -
Returns:
id
Throws:
AquaDaoException

delete

public int delete(int index)
           throws AquaDaoException
Szenario l�schen

Parameters:
index -
Returns:
id
Throws:
AquaDaoException

isInUse

public java.lang.String isInUse(int dim_id)
�berpr�ft ob Dimensionen in irgendwelche Szenario gespeichert sind und liefert Szenario-Name zur�ck

Parameters:
dim_id -
Returns:
name