org.genealogie.bean
Class GenericBean

java.lang.Object
  |
  +--org.genealogie.bean.GenericBean
Direct Known Subclasses:
Acces, Acte, Adresse, AdresseWeb, Commune, Departement, Document, EtatRecherche, Famille, Mariage, Pays, Personne, Recherche, RechercheWeb, Registre, RegistreSignet, Repertoire, Table, TypeActe, TypeDocument, TypeRecherche

public abstract class GenericBean
extends java.lang.Object

Classe g‚n‚rique des diff‚rents beans.

Elle permet de r‚cup‚rer et d'initialiser connrectement des connexions … la base s‚lectionner.

Soit elle prend l'instance de connexion pass‚e en paramŠtre, soit elle en r‚cupŠre une … partir de DatabaseUtils.

Version:
$Revision: 1.28 $, $Date: 2003/03/26 14:46:43 $
Author:
Templth
See Also:
org.genealogie.utils.DatabaseUtils

Field Summary
protected  java.sql.Connection connection
           
protected  FactoryDAO factory
           
 
Constructor Summary
GenericBean()
           
 
Method Summary
protected  boolean contient(java.lang.String chaine1, org.apache.regexp.RE r)
          Cette m‚thode permet de voir si une liste de lignes correspond … un motif.
protected  java.sql.Connection getConnection()
          Cette m‚thode permet de r‚cup‚rer une connexion … la base s‚lectionn‚e.
protected  java.util.Vector getTokens(java.lang.String ligne)
          D‚coupage d'une ligne avec comme s‚parateur '\n'
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

factory

protected FactoryDAO factory

connection

protected java.sql.Connection connection
Constructor Detail

GenericBean

public GenericBean()
Method Detail

getConnection

protected java.sql.Connection getConnection()
                                     throws java.sql.SQLException,
                                            JGeneaException

Cette m‚thode permet de r‚cup‚rer une connexion … la base s‚lectionn‚e.

Returns:
la connexion … la base

contient

protected boolean contient(java.lang.String chaine1,
                           org.apache.regexp.RE r)

Cette m‚thode permet de voir si une liste de lignes correspond … un motif.

Parameters:
chaine1 - chaŒne … v‚rifier
r - motif de l'expression r‚guliŠre
Returns:
vrai si correspond, faux sinon

getTokens

protected java.util.Vector getTokens(java.lang.String ligne)
D‚coupage d'une ligne avec comme s‚parateur '\n'
Parameters:
ligne - ligne entr‚e
Returns:
liste des ‚l‚menets contenue dans un vecteur


Copyright © 2002 JGenea DAO. All Rights Reserved.