|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectatg.util.service.ATGBasicClass
atg.metier.dao.ATGDao<K>
public abstract class ATGDao<K extends ATGIEntite>
Titre : Classe mère de tous les DAOs
Description : Cette classe sera la base de tous les futurs DAOs du Framework
Copyright : FERRARI Olivier
| Field Summary | |
|---|---|
static int |
NIVEAU_ATTRIBUTS
|
static int |
NIVEAU_ATTRIBUTS_VO
|
static int |
NIVEAU_IDENTIFIANT
|
static int |
NIVEAU_VIDE
|
| Fields inherited from class atg.util.service.ATGBasicClass |
|---|
logger_ |
| Constructor Summary | |
|---|---|
ATGDao()
|
|
| Method Summary | |
|---|---|
abstract int |
countByCritere(ATGListCritereValue critere)
Permet d'obtenir le nombre de données correspondant à un critère, sans pour autant charger les VO en mémoire |
abstract void |
delete(ATGIdentifiant identifiant)
Suppression d'un enregistrement en base de donnée |
abstract void |
delete(K entite)
Suppression d'un enregistrement en base de donnée |
abstract void |
insert(K valueObject)
Insertion d'un enregistrement en base de données |
abstract ATGIListEntity<K> |
selectAll()
Chargement de tous les enregistrements en base de données. |
abstract ATGIListEntity<K> |
selectByCritere(ATGListCritereValue critere)
Chargement d'un enregistrement en base de données à partir de son identifiant |
abstract ATGIListEntity<K> |
selectByCritere(ATGListCritereValue critere,
int niveau)
Chargement de plusieurs enregistrements en base de données à partir de valeurs |
abstract K |
selectByIdentifiant(ATGIdentifiant identifiant)
Chargement d'un enregistrement en base de données à partir de son identifiant |
abstract K |
selectByIdentifiant(ATGIdentifiant identifiant,
int niveau)
Chargement d'un enregistrement en base de données à partir de son identifiant |
abstract void |
update(K entite)
Modification d'un enregistrement en base de donnée |
| Methods inherited from class atg.util.service.ATGBasicClass |
|---|
getLogger, logConfig, logFine, logFiner, logFinest, logInfo, logSevere, logWarning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NIVEAU_VIDE
public static final int NIVEAU_IDENTIFIANT
public static final int NIVEAU_ATTRIBUTS
public static final int NIVEAU_ATTRIBUTS_VO
| Constructor Detail |
|---|
public ATGDao()
| Method Detail |
|---|
public abstract void insert(K valueObject)
throws ATGDaoAccessSupportException
valueObject - ATGIEntite Value object à persiter
ATGDaoAccessSupportException
public abstract K selectByIdentifiant(ATGIdentifiant identifiant,
int niveau)
throws ATGDaoDataNotFoundException,
ATGDaoAccessSupportException
identifiant - ATGIdentifiant identifiant de l'enregistrementniveau - int Niveau d'arborescence souhaité pour le chargement des objets en cascade
ATGDaoDataNotFoundException
ATGDaoAccessSupportException
public abstract K selectByIdentifiant(ATGIdentifiant identifiant)
throws ATGDaoDataNotFoundException,
ATGDaoAccessSupportException
identifiant - ATGIdentifiant identifiant de l'enregistrement
ATGDaoDataNotFoundException
ATGDaoAccessSupportException
public abstract ATGIListEntity<K> selectByCritere(ATGListCritereValue critere,
int niveau)
throws ATGDaoDataNotFoundException,
ATGDaoAccessSupportException
critere - ATGListCritereValue critere de la rechercheniveau - int Niveau d'arborescence souhaité pour le chargement des objets en cascade
ATGDaoDataNotFoundException
ATGDaoAccessSupportException
public abstract ATGIListEntity<K> selectByCritere(ATGListCritereValue critere)
throws ATGDaoDataNotFoundException,
ATGDaoAccessSupportException
critere - ATGListCritereValue critere de la recherche
ATGDaoDataNotFoundException
ATGDaoAccessSupportException
public abstract void update(K entite)
throws ATGDaoDataNotFoundException,
ATGDaoAccessSupportException
entite - ATGIEntite Value object à modifier
ATGDaoDataNotFoundException
ATGDaoAccessSupportException
public abstract void delete(ATGIdentifiant identifiant)
throws ATGDaoDataNotFoundException,
ATGDaoAccessSupportException
identifiant - ATGIdentifiant identifiant de l'enregistrement
ATGDaoDataNotFoundException
ATGDaoAccessSupportException
public abstract void delete(K entite)
throws ATGDaoDataNotFoundException,
ATGDaoAccessSupportException
entite - ATGIEntite entite de l'enregistrement
ATGDaoDataNotFoundException
ATGDaoAccessSupportException
public abstract ATGIListEntity<K> selectAll()
throws ATGDaoDataNotFoundException,
ATGDaoAccessSupportException
ATGDaoDataNotFoundException
ATGDaoAccessSupportException
public abstract int countByCritere(ATGListCritereValue critere)
throws ATGDaoAccessSupportException
ATGDaoAccessSupportException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||