db.dbaccess
Class VorstandDB

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

public class VorstandDB
extends java.lang.Object

Author:
Marc Rohe, 06.05.2007 modified Felix Kiefer

Field Summary
static java.lang.String basicQuery
           
 
Constructor Summary
VorstandDB()
           
 
Method Summary
static boolean clear(java.sql.Connection cn)
          Leert Tabelle Vorstand
static int CountbyName(java.sql.Connection cn, java.lang.String name)
           
static java.util.Collection findAll(java.sql.Connection cn)
          Findet alle...
static prefuse.data.Table findAllDS(prefuse.data.io.sql.DatabaseDataSource ds)
           
static java.util.LinkedList findAllFidsByName(java.sql.Connection cn, java.lang.String name)
           
static java.util.Collection findAllNames(java.sql.Connection cn)
          Findet alle Aufsichtsrät
static java.util.Collection findByFid(java.sql.Connection cn, int fid)
          FIndet Vorstand nach FID
static prefuse.data.Table findByFidDS(prefuse.data.io.sql.DatabaseDataSource ds, int fid)
          Findet Aufsichtsrat nach Firmen-ID
static java.util.Collection findByName(java.sql.Connection cn, java.lang.String name)
          Sucht Vorstand nach Name
static prefuse.data.Table findByNameDS(prefuse.data.io.sql.DatabaseDataSource ds, java.lang.String name)
           
static VorstandDTO findByNameID(java.sql.Connection cn, java.lang.String name, int id)
           
static VorstandDTO findByoneName(java.sql.Connection cn, java.lang.String name)
           
static int insert(java.sql.Connection cn, VorstandDTO dto)
          Fügt neuern Vorstandt hinzu
static int update(java.sql.Connection cn, VorstandDTO dto)
          Ändert Datensatz....
 
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

VorstandDB

public VorstandDB()
Method Detail

insert

public static int insert(java.sql.Connection cn,
                         VorstandDTO dto)
Fügt neuern Vorstandt hinzu

Parameters:
cn -
dto -
Returns:

findByFid

public static java.util.Collection findByFid(java.sql.Connection cn,
                                             int fid)
FIndet Vorstand nach FID

Parameters:
cn -
fid -
Returns:

findByFidDS

public static prefuse.data.Table findByFidDS(prefuse.data.io.sql.DatabaseDataSource ds,
                                             int fid)
Findet Aufsichtsrat nach Firmen-ID

Parameters:
ds -
fid -
Returns:

findAll

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

Parameters:
cn -
Returns:

findAllNames

public static java.util.Collection findAllNames(java.sql.Connection cn)
Findet alle Aufsichtsrät

Parameters:
cn -
Returns:

findAllDS

public static prefuse.data.Table findAllDS(prefuse.data.io.sql.DatabaseDataSource ds)
Parameters:
ds -
Returns:

clear

public static boolean clear(java.sql.Connection cn)
Leert Tabelle Vorstand

Parameters:
cn -
Returns:

findByName

public static java.util.Collection findByName(java.sql.Connection cn,
                                              java.lang.String name)
Sucht Vorstand nach Name

Parameters:
cn - Connection
name - String
Returns:
erg Colelction

findByNameID

public static VorstandDTO findByNameID(java.sql.Connection cn,
                                       java.lang.String name,
                                       int id)

findByoneName

public static VorstandDTO findByoneName(java.sql.Connection cn,
                                        java.lang.String name)

CountbyName

public static int CountbyName(java.sql.Connection cn,
                              java.lang.String name)

findByNameDS

public static prefuse.data.Table findByNameDS(prefuse.data.io.sql.DatabaseDataSource ds,
                                              java.lang.String name)
Parameters:
ds -
name -
Returns:

findAllFidsByName

public static java.util.LinkedList findAllFidsByName(java.sql.Connection cn,
                                                     java.lang.String name)

update

public static int update(java.sql.Connection cn,
                         VorstandDTO dto)
Ändert Datensatz....

Parameters:
cn -
dto -
Returns: