db.dbaccess
Class BeschaeftigteDB

java.lang.Object
  extended by db.dbaccess.BeschaeftigteDB

public class BeschaeftigteDB
extends java.lang.Object

Author:
Marc Rohe, 06.05.2007

Field Summary
static java.lang.String basicQuery
           
 
Constructor Summary
BeschaeftigteDB()
           
 
Method Summary
static boolean clear(java.sql.Connection cn)
          Leert Tabelle Beschäftigte
static java.util.Collection findAll(java.sql.Connection cn)
          Findet alle Beschäftigtenzahlen
static java.util.Collection findByBeschAnz(java.sql.Connection cn, int min, int max)
          Findet Beschäftigten-Zahlen welche aktuelll zwischen min und max liegen
static java.util.Collection findByFid(java.sql.Connection cn, int fid)
          FIndet Beschäftigten-Zahlen nach Firmen-ID
static int getMaxBeschByFid(java.sql.Connection cn, int fid)
          Liefert die maximale Beschaeftigtenzahl zu einer Firma über die FID
static int insert(java.sql.Connection cn, BeschaeftigteDTO dto)
          Fügt neue Beschäftigten-Zahl ein
static int update(java.sql.Connection cn, UmsatzDTO dto)
          Ändert Datensatz in Tabelle Beschäftigte
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

basicQuery

public static final java.lang.String basicQuery
See Also:
Constant Field Values
Constructor Detail

BeschaeftigteDB

public BeschaeftigteDB()
Method Detail

insert

public static int insert(java.sql.Connection cn,
                         BeschaeftigteDTO dto)
Fügt neue Beschäftigten-Zahl ein

Parameters:
cn -
dto -
Returns:

findByFid

public static java.util.Collection findByFid(java.sql.Connection cn,
                                             int fid)
FIndet Beschäftigten-Zahlen nach Firmen-ID

Parameters:
cn -
fid -
Returns:

findAll

public static java.util.Collection findAll(java.sql.Connection cn)
Findet alle Beschäftigtenzahlen

Parameters:
cn -
Returns:

clear

public static boolean clear(java.sql.Connection cn)
Leert Tabelle Beschäftigte

Parameters:
cn -
Returns:

findByBeschAnz

public static java.util.Collection findByBeschAnz(java.sql.Connection cn,
                                                  int min,
                                                  int max)
Findet Beschäftigten-Zahlen welche aktuelll zwischen min und max liegen

Parameters:
cn -
min -
max -
Returns:

update

public static int update(java.sql.Connection cn,
                         UmsatzDTO dto)
Ändert Datensatz in Tabelle Beschäftigte

Parameters:
cn -
dto -
Returns:

getMaxBeschByFid

public static int getMaxBeschByFid(java.sql.Connection cn,
                                   int fid)
Liefert die maximale Beschaeftigtenzahl zu einer Firma über die FID