|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.topia.persistence.TopiaDAOImpl<E>
org.nuiton.topia.persistence.TopiaDAOLegacy<E>
E - le type de l'entitepublic class TopiaDAOLegacy<E extends TopiaEntity>
Surcharge du TopiaDAOImpl pour utiliser l'api criteria au lieu du hql
pour tout ce qui est requétage.
Created: 31 déc. 2005 13:10:34
| Field Summary |
|---|
| Fields inherited from class org.nuiton.topia.persistence.TopiaDAOImpl |
|---|
context, entityClass |
| Constructor Summary | |
|---|---|
TopiaDAOLegacy()
|
|
| Method Summary | |
|---|---|
E |
create(Map<String,Object> properties)
Cette methode appelle fireVetoableCreate et fireOnCreated Si vous la surchargé, faites attention a appeler le super ou a appeler vous aussi ces deux methodes. |
E |
create(Object... properties)
Construit une nouvelle instance de l'objet géré par ce DAO |
List<E> |
findAll()
|
List<E> |
findAllByProperties(Map<String,Object> properties)
|
List<E> |
findAllByProperties(String propertyName,
Object value,
Object... others)
|
List<E> |
findAllByProperty(String propertyName,
Object value)
|
List<String> |
findAllIds()
Recuperation de tous les ids en base pour le type d'entite du dao. |
List<E> |
findAllWithOrder(String... propertyNames)
|
E |
findByPrimaryKey(Map<String,Object> keys)
Recherche la classe en utilisant la cle naturelle, chaque champs de la cle naturelle est une entre de la map passe en argument. |
E |
findByPrimaryKey(Object... k)
Recherche la classe en utilisant la cle naturelle, si la cle naturelle est composé de plusieurs champs alors les arguments passés doivent être dans l'ordre de declaration dans le fichier de mapping |
E |
findByProperties(Map<String,Object> properties)
|
E |
findByProperties(String propertyName,
Object value,
Object... others)
|
E |
findByProperty(String propertyName,
Object value)
|
E |
findByTopiaId(String k)
Find an entity corresponding to the id. |
protected E |
instanciateNew()
|
| Methods inherited from class org.nuiton.topia.persistence.TopiaDAOImpl |
|---|
addTopiaEntityListener, addTopiaEntityVetoable, count, countByQuery, create, createQuery, createQuery, delete, existByProperties, existByQuery, existByTopiaId, findAllByQuery, findAllContains, findAllMappedByQuery, findAllMappedByQuery, findAllUsages, findByQuery, findContains, findUsages, getContext, getEntityClass, getId, getId, getRequestPermission, getTopiaEntityEnum, init, newInstance, removeTopiaEntityListener, removeTopiaEntityVetoable, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TopiaDAOLegacy()
| Method Detail |
|---|
protected E instanciateNew()
throws TopiaException
TopiaException
public E create(Object... properties)
throws TopiaException
TopiaDAO
create in interface TopiaDAO<E extends TopiaEntity>create in class TopiaDAOImpl<E extends TopiaEntity>properties - la liste des propriétés que doit avoir l'objet créé les
arguments vont par paire (propertyName, value)
TopiaException - si un problème est rencontré durant
l'instanciation
public E findByPrimaryKey(Map<String,Object> keys)
throws TopiaException
TopiaDAO
findByPrimaryKey in interface TopiaDAO<E extends TopiaEntity>findByPrimaryKey in class TopiaDAOImpl<E extends TopiaEntity>keys - la liste des champs de la cle naturelle avec leur valeur
TopiaException - if any pb while getting datas
public E findByPrimaryKey(Object... k)
throws TopiaException
TopiaDAO
findByPrimaryKey in interface TopiaDAO<E extends TopiaEntity>findByPrimaryKey in class TopiaDAOImpl<E extends TopiaEntity>k - l'objet cle naturelle de la classe
TopiaException - if any pb while getting datas
public E findByProperties(String propertyName,
Object value,
Object... others)
throws TopiaException
findByProperties in interface TopiaDAO<E extends TopiaEntity>findByProperties in class TopiaDAOImpl<E extends TopiaEntity>propertyName - le nom de la propriétévalue - la valeur à testerothers - les autres proprietes doivent aller par 2
propertyName, value
TopiaException - if any pb while getting datas
public List<E> findAllByProperties(String propertyName,
Object value,
Object... others)
throws TopiaException
findAllByProperties in interface TopiaDAO<E extends TopiaEntity>findAllByProperties in class TopiaDAOImpl<E extends TopiaEntity>propertyName - le nom de la propriétévalue - la valeur à testerothers - les autres proprietes doivent aller par 2
propertyName, value
TopiaException - if any pb while getting datas
public List<E> findAllByProperty(String propertyName,
Object value)
throws TopiaException
findAllByProperty in interface TopiaDAO<E extends TopiaEntity>findAllByProperty in class TopiaDAOImpl<E extends TopiaEntity>TopiaException
public E findByProperty(String propertyName,
Object value)
throws TopiaException
findByProperty in interface TopiaDAO<E extends TopiaEntity>findByProperty in class TopiaDAOImpl<E extends TopiaEntity>TopiaException
public E create(Map<String,Object> properties)
throws TopiaException
create in interface TopiaDAO<E extends TopiaEntity>create in class TopiaDAOImpl<E extends TopiaEntity>properties - la liste des propriétés que doit avoir l'objet créé
TopiaException - si un problème est rencontré durant
l'instanciation
public E findByTopiaId(String k)
throws TopiaException
TopiaDAOid. If the id is
null, nothing will be search.
findByTopiaId in interface TopiaDAO<E extends TopiaEntity>findByTopiaId in class TopiaDAOImpl<E extends TopiaEntity>k - topiaId of the entity to found
TopiaException - for Topia errors on query
public List<E> findAll()
throws TopiaException
findAll in interface TopiaDAO<E extends TopiaEntity>findAll in class TopiaDAOImpl<E extends TopiaEntity>TopiaException
public List<String> findAllIds()
throws TopiaException
TopiaDAO
findAllIds in interface TopiaDAO<E extends TopiaEntity>findAllIds in class TopiaDAOImpl<E extends TopiaEntity>TopiaException - si pb en base
public List<E> findAllWithOrder(String... propertyNames)
throws TopiaException
findAllWithOrder in interface TopiaDAO<E extends TopiaEntity>findAllWithOrder in class TopiaDAOImpl<E extends TopiaEntity>TopiaException
public E findByProperties(Map<String,Object> properties)
throws TopiaException
findByProperties in interface TopiaDAO<E extends TopiaEntity>findByProperties in class TopiaDAOImpl<E extends TopiaEntity>TopiaException
public List<E> findAllByProperties(Map<String,Object> properties)
throws TopiaException
findAllByProperties in interface TopiaDAO<E extends TopiaEntity>findAllByProperties in class TopiaDAOImpl<E extends TopiaEntity>TopiaException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||