E - le type de l'entite@Deprecated public class TopiaDAOLegacy<E extends TopiaEntity> extends TopiaDAOImpl<E>
TopiaDAOImpl pour utiliser l'api criteria au lieu du hql
pour tout ce qui est requétage.
Created: 31 déc. 2005 13:10:34TopiaDAOImpl.FindAllIterator<E extends TopiaEntity,R>context, entityClass| Constructor and Description |
|---|
TopiaDAOLegacy()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
E |
create(Map<String,Object> properties)
Deprecated.
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)
Deprecated.
Construit une nouvelle instance de l'objet géré par ce DAO
|
List<E> |
findAll()
Deprecated.
Gets all entitys of the dao type in db.
|
List<E> |
findAllByProperties(Map<String,Object> properties)
Deprecated.
Gets all entities of the dao type matching all the
properties. |
List<E> |
findAllByProperties(String propertyName,
Object value,
Object... others)
Deprecated.
Gets all entities of the dao type matching the
value for the
given propertyName and others. |
List<E> |
findAllByProperty(String propertyName,
Object value)
Deprecated.
Gets all entities of the dao type matching the
value for the
given propertyName. |
List<String> |
findAllIds()
Deprecated.
Recuperation de tous les ids en base pour le type d'entite du dao.
|
List<E> |
findAllWithOrder(String... propertyNames)
Deprecated.
Gets all entites for the dao entity type order by given
propertyNames. |
E |
findByPrimaryKey(Map<String,Object> keys)
Deprecated.
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)
Deprecated.
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)
Deprecated.
Find an entity matching
properties. |
E |
findByProperties(String propertyName,
Object value,
Object... others)
Deprecated.
|
E |
findByProperty(String propertyName,
Object value)
Deprecated.
Find an entity matching
value for the given propertyName. |
E |
findByTopiaId(String k)
Deprecated.
Find an entity corresponding to the
id. |
protected E |
instanciateNew()
Deprecated.
|
addTopiaEntityListener, addTopiaEntityVetoable, computeAndAddRecordsToPager, count, countByQuery, countByQuery, create, createQuery, createQuery, createSimpleQuery, delete, deleteAll, existByProperties, existByQuery, existByTopiaId, existsByQuery, findAllByQuery, findAllByQuery, findAllByQuery, findAllByQueryAndPager, findAllByQueryAndPager, findAllByQueryWithBound, findAllByQueryWithBound, findAllContains, findAllLazyByQuery, findAllLazyByQuery, findAllLazyByQuery, findAllLazyByQuery, findAllMappedByQuery, findAllMappedByQuery, findAllUsages, findByQuery, findByQuery, findByQuery, findContains, findUsages, getBatchSize, getContext, getEntityClass, getId, getId, getRequestPermission, getTopiaEntityEnum, init, iterator, newInstance, removeTopiaEntityListener, removeTopiaEntityVetoable, setBatchSize, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected E instanciateNew() throws TopiaException
TopiaExceptionpublic E create(Object... properties) throws TopiaException
TopiaDAOcreate 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'instanciationpublic E findByPrimaryKey(Map<String,Object> keys) throws TopiaException
TopiaDAOfindByPrimaryKey in interface TopiaDAO<E extends TopiaEntity>findByPrimaryKey in class TopiaDAOImpl<E extends TopiaEntity>keys - la liste des champs de la cle naturelle avec leur valeurTopiaException - if any pb while getting dataspublic E findByPrimaryKey(Object... k) throws TopiaException
TopiaDAOfindByPrimaryKey in interface TopiaDAO<E extends TopiaEntity>findByPrimaryKey in class TopiaDAOImpl<E extends TopiaEntity>k - l'objet cle naturelle de la classeTopiaException - if any pb while getting dataspublic 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, valueTopiaException - if any pb while getting dataspublic List<E> findAllByProperties(String propertyName, Object value, Object... others) throws TopiaException
TopiaDAOvalue for the
given propertyName and others.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, valueTopiaException - if any pb while getting dataspublic List<E> findAllByProperty(String propertyName, Object value) throws TopiaException
TopiaDAOvalue for the
given propertyName.findAllByProperty in interface TopiaDAO<E extends TopiaEntity>findAllByProperty in class TopiaDAOImpl<E extends TopiaEntity>propertyName - property name to filtervalue - value to matchTopiaException - if any pb while getting dataspublic E findByProperty(String propertyName, Object value) throws TopiaException
TopiaDAOvalue for the given propertyName.findByProperty in interface TopiaDAO<E extends TopiaEntity>findByProperty in class TopiaDAOImpl<E extends TopiaEntity>propertyName - property name to filtervalue - value of the property to mathTopiaExceptionpublic 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'instanciationpublic E findByTopiaId(String k) throws TopiaException
TopiaDAOid. If the id is
null, nothing will be searched.findByTopiaId in interface TopiaDAO<E extends TopiaEntity>findByTopiaId in class TopiaDAOImpl<E extends TopiaEntity>k - topiaId of the entity to foundTopiaException - for Topia errors on querypublic List<E> findAll() throws TopiaException
TopiaDAOfindAll in interface TopiaDAO<E extends TopiaEntity>findAll in class TopiaDAOImpl<E extends TopiaEntity>TopiaExceptionpublic List<String> findAllIds() throws TopiaException
TopiaDAOfindAllIds in interface TopiaDAO<E extends TopiaEntity>findAllIds in class TopiaDAOImpl<E extends TopiaEntity>TopiaException - si pb en basepublic List<E> findAllWithOrder(String... propertyNames) throws TopiaException
TopiaDAOpropertyNames.
You can add on each property ASC ou DESC to
fix order way (by default is ASC).findAllWithOrder in interface TopiaDAO<E extends TopiaEntity>findAllWithOrder in class TopiaDAOImpl<E extends TopiaEntity>propertyNames - property names of order to applyTopiaException - if any pb while getting dataspublic E findByProperties(Map<String,Object> properties) throws TopiaException
TopiaDAOproperties.findByProperties in interface TopiaDAO<E extends TopiaEntity>findByProperties in class TopiaDAOImpl<E extends TopiaEntity>properties - les propriétés à matcherTopiaException - if any pb while getting dataspublic List<E> findAllByProperties(Map<String,Object> properties) throws TopiaException
TopiaDAOproperties.findAllByProperties in interface TopiaDAO<E extends TopiaEntity>findAllByProperties in class TopiaDAOImpl<E extends TopiaEntity>properties - properties to matchTopiaException - if any pb while getting datasCopyright © 2004–2022 Code Lutin. All rights reserved.