|
|||||||||
| 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>
atg.metier.dao.jdo.ATGDaoJdo<K>
public class ATGDaoJdo<K extends ATGIEntite>
| Field Summary | |
|---|---|
protected java.lang.Class |
laClasse
Classe sur laquelle on va effectuer la recherche |
protected static java.util.logging.Logger |
logger_
référence vers le log |
static java.lang.String |
OPERATION_COMME
Opérateur : Inférieur ou égal |
static java.lang.String |
OPERATION_INFERIEUR_OU_EGAL
Opérateur : Inférieur ou égal |
static java.lang.String |
OPERATION_INFERIEUR_STRICT
Opérateur : Inférieur strict |
protected java.lang.String |
reference
référence le type de connexion (permet de gérer plusieurs connexion différente |
| Fields inherited from class atg.metier.dao.ATGDao |
|---|
NIVEAU_ATTRIBUTS, NIVEAU_ATTRIBUTS_VO, NIVEAU_IDENTIFIANT, NIVEAU_VIDE |
| Constructor Summary | |
|---|---|
ATGDaoJdo(java.lang.Class uneClasse)
|
|
| Method Summary | |
|---|---|
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 |
void |
delete(ATGIdentifiant identifiant)
Suppression d'un enregistrement en base de donnée |
void |
delete(K entite)
Suppression d'un enregistrement en base de donnée |
ATGIListEntity<K> |
executeRequete(ATGListCritereValue listeCritere,
int niveau)
Exécute une requete |
protected javax.jdo.PersistenceManager |
getConnection()
Retourne une instance de Persistance Manager provenant du pool . |
protected java.util.logging.Logger |
getLogger()
Retourne le log associé |
java.lang.String |
getReference()
|
void |
insert(K valueObject)
Insertion d'un enregistrement en base de données |
protected void |
libererRessource()
Ferme le resultSet, le statement et la connexion en cours d'utilisation |
ATGIListEntity<K> |
selectAll()
Chargement de tous les enregistrements en base de données. |
ATGIListEntity<K> |
selectByCritere(ATGListCritereValue critere)
Chargement d'un enregistrement en base de données à partir de son identifiant |
ATGIListEntity<K> |
selectByCritere(ATGListCritereValue critere,
int niveau)
Chargement de plusieurs enregistrements en base de données à partir de valeurs |
K |
selectByIdentifiant(ATGIdentifiant identifiant)
Chargement d'un enregistrement en base de données à partir de son identifiant |
K |
selectByIdentifiant(ATGIdentifiant identifiant,
int niveau)
Chargement d'un enregistrement en base de données à partir de son identifiant |
void |
setReference(java.lang.String reference)
|
void |
update(ATGIEntite valueObject)
Modification d'un enregistrement en base de donnée |
| Methods inherited from class atg.util.service.ATGBasicClass |
|---|
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 |
|---|
protected java.lang.String reference
protected java.lang.Class laClasse
public static java.lang.String OPERATION_INFERIEUR_STRICT
public static java.lang.String OPERATION_INFERIEUR_OU_EGAL
public static java.lang.String OPERATION_COMME
protected static java.util.logging.Logger logger_
| Constructor Detail |
|---|
public ATGDaoJdo(java.lang.Class uneClasse)
| Method Detail |
|---|
protected javax.jdo.PersistenceManager getConnection()
throws ATGDaoBaseIndisponibleException
ATGDaoBaseIndisponibleException
public ATGIListEntity<K> executeRequete(ATGListCritereValue listeCritere,
int niveau)
throws ATGDaoBaseIndisponibleException,
ATGDaoAccessSupportException,
ATGDaoDataNotFoundException
ATGDaoBaseIndisponibleException
ATGDaoAccessSupportException
ATGDaoDataNotFoundException
public void delete(K entite)
throws ATGDaoDataNotFoundException,
ATGDaoAccessSupportException
ATGDao
delete in class ATGDao<K extends ATGIEntite>entite - ATGIEntite entite de l'enregistrement
ATGDaoDataNotFoundException
ATGDaoAccessSupportException
public void delete(ATGIdentifiant identifiant)
throws ATGDaoDataNotFoundException,
ATGDaoAccessSupportException
ATGDao
delete in class ATGDao<K extends ATGIEntite>identifiant - ATGIdentifiant identifiant de l'enregistrement
ATGDaoDataNotFoundException
ATGDaoAccessSupportException
public void insert(K valueObject)
throws ATGDaoAccessSupportException
ATGDao
insert in class ATGDao<K extends ATGIEntite>valueObject - ATGIEntite Value object à persiter
ATGDaoAccessSupportException
public ATGIListEntity<K> selectAll()
throws ATGDaoDataNotFoundException,
ATGDaoAccessSupportException
ATGDao
selectAll in class ATGDao<K extends ATGIEntite>ATGDaoDataNotFoundException
ATGDaoAccessSupportException
public ATGIListEntity<K> selectByCritere(ATGListCritereValue critere,
int niveau)
throws ATGDaoDataNotFoundException,
ATGDaoAccessSupportException
ATGDao
selectByCritere in class ATGDao<K extends ATGIEntite>critere - ATGListCritereValue critere de la rechercheniveau - int Niveau d'arborescence souhaité pour le chargement des objets en cascade
ATGDaoDataNotFoundException
ATGDaoAccessSupportException
public ATGIListEntity<K> selectByCritere(ATGListCritereValue critere)
throws ATGDaoDataNotFoundException,
ATGDaoAccessSupportException
ATGDao
selectByCritere in class ATGDao<K extends ATGIEntite>critere - ATGListCritereValue critere de la recherche
ATGDaoDataNotFoundException
ATGDaoAccessSupportException
public K selectByIdentifiant(ATGIdentifiant identifiant,
int niveau)
throws ATGDaoDataNotFoundException,
ATGDaoAccessSupportException
ATGDao
selectByIdentifiant in class ATGDao<K extends ATGIEntite>identifiant - ATGIdentifiant identifiant de l'enregistrementniveau - int Niveau d'arborescence souhaité pour le chargement des objets en cascade
ATGDaoDataNotFoundException
ATGDaoAccessSupportException
public K selectByIdentifiant(ATGIdentifiant identifiant)
throws ATGDaoDataNotFoundException,
ATGDaoAccessSupportException
ATGDao
selectByIdentifiant in class ATGDao<K extends ATGIEntite>identifiant - ATGIdentifiant identifiant de l'enregistrement
ATGDaoDataNotFoundException
ATGDaoAccessSupportException
public void update(ATGIEntite valueObject)
throws ATGDaoDataNotFoundException,
ATGDaoAccessSupportException
ATGDao
update in class ATGDao<K extends ATGIEntite>valueObject - ATGIEntite Value object à modifier
ATGDaoDataNotFoundException
ATGDaoAccessSupportException
public int countByCritere(ATGListCritereValue critere)
throws ATGDaoAccessSupportException
ATGDao
countByCritere in class ATGDao<K extends ATGIEntite>ATGDaoAccessSupportExceptionprotected void libererRessource()
public java.lang.String getReference()
public void setReference(java.lang.String reference)
reference - reference à définir.protected java.util.logging.Logger getLogger()
getLogger in class ATGBasicClass
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||