E - the entity type managed by the daoTopiaDao@Deprecated public interface TopiaDAO<E extends TopiaEntity> extends TopiaDao<E>
E type :
create, delete, update or find entities.
This interface is implemented by TopiaDAOImpl overridden by generation
from EntityDaoTransformer.
| Modifier and Type | Method and Description |
|---|---|
void |
computeAndAddRecordsToPager(String hql,
TopiaPagerBean pager,
Object... propertyNamesAndValues)
Deprecated.
|
long |
countByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
move your call to inside the DAO and use
AbstractTopiaDao.count(String, java.util.Map) |
E |
create(Object... propertyNamesAndValues)
Deprecated.
|
String |
createSimpleQuery(String alias)
Deprecated.
no longer accessible from outside DAO
|
boolean |
existByProperties(String propertyName,
Object propertyValue,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.exists(String, java.util.Map) |
boolean |
existByTopiaId(String id)
Deprecated.
use new API and inline
LegacyTopiaDao.existByTopiaId(String) |
boolean |
existsByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.exists(String, java.util.Map) |
<E> List<E> |
find(String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Deprecated.
use method from
TopiaJpaSupport |
<E> List<E> |
findAll(String hql,
Object... propertyNamesAndValues)
Deprecated.
use method from
TopiaJpaSupport |
List<E> |
findAllByProperties(Map<String,Object> properties)
Deprecated.
use new API and inline
LegacyTopiaDao.findAllByProperties(java.util.Map) |
List<E> |
findAllByProperties(String propertyName,
Object value,
Object... propertyNamesAndValues)
Deprecated.
use new API and inline
LegacyTopiaDao.findAllByProperties(String, Object, Object...) |
List<E> |
findAllByProperty(String propertyName,
Object value)
Deprecated.
use new API and inline
LegacyTopiaDao.findAllByProperties(String, Object, Object...) |
<R> List<R> |
findAllByQuery(Class<R> type,
String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAll(String, java.util.Map, Class) |
List<E> |
findAllByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAll(String, java.util.Map) |
<R> List<R> |
findAllByQueryAndPager(Class<R> type,
String hql,
TopiaPagerBean pager,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAll(String, java.util.Map, Class, org.nuiton.topia.persistence.pager.TopiaPagerBean) |
List<E> |
findAllByQueryAndPager(String hql,
TopiaPagerBean pager,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAll(String, java.util.Map, org.nuiton.topia.persistence.pager.TopiaPagerBean) |
<R> List<R> |
findAllByQueryWithBound(Class<R> type,
String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAll(String, java.util.Map, Class, int, int) |
List<E> |
findAllByQueryWithBound(String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAll(String, java.util.Map, int, int) |
List<E> |
findAllContains(String propertyName,
Object value)
Deprecated.
use new API and inline
LegacyTopiaDao.findAllContains(String, Object) |
<R> Iterable<R> |
findAllLazyByQuery(Class<R> type,
int batchSize,
String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAllLazy(String, java.util.Map, Class) |
<R> Iterable<R> |
findAllLazyByQuery(Class<R> type,
String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAllLazy(String, java.util.Map, Class) |
Iterable<E> |
findAllLazyByQuery(int batchSize,
String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAllLazy(String, java.util.Map) |
Iterable<E> |
findAllLazyByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use
AbstractTopiaDao.findAllLazy(String, java.util.Map, Class) |
List<E> |
findAllWithOrder(String... propertyNames)
Deprecated.
use new API and inline
LegacyTopiaDao.findAllWithOrder(String...) |
E |
findByPrimaryKey(Map<String,Object> keys)
Deprecated.
use new API and inline
LegacyTopiaDao.findByPrimaryKey(java.util.Map) |
E |
findByPrimaryKey(Object... propertyNamesAndValues)
Deprecated.
use new API and inline
LegacyTopiaDao.findByPrimaryKey(Object...) |
E |
findByProperties(Map<String,Object> properties)
Deprecated.
@deprecated use new API and inline
LegacyTopiaDao.findByProperties(java.util.Map) |
E |
findByProperties(String propertyName,
Object value,
Object... propertyNamesAndValues)
Deprecated.
@deprecated use new API and inline
LegacyTopiaDao.findByProperties(String, Object, Object...) |
E |
findByProperty(String propertyName,
Object value)
Deprecated.
@deprecated use new API and inline
LegacyTopiaDao.findByProperties(String, Object, Object...) |
<R> R |
findByQuery(Class<R> type,
String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use a suitable protected method
|
E |
findByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
move your code inside the DAO and use a suitable protected method
|
E |
findByTopiaId(String id)
Deprecated.
ambiguous signature use new API and inline
TopiaDao.forTopiaIdEquals(String) |
E |
findContains(String propertyName,
Object value)
Deprecated.
use new API and inline
LegacyTopiaDao.findContains(String, Object) |
<E> E |
findUnique(String hql,
Object... propertyNamesAndValues)
Deprecated.
use method from
TopiaJpaSupport |
TopiaContextImplementor |
getContext()
Deprecated.
|
List<Permission> |
getRequestPermission(String topiaId,
int actions)
Deprecated.
topia-service-security will be removed in 3.0
|
TopiaContext |
getTopiaContext()
Deprecated.
Returns the context used by this DAO.
|
TopiaEntityEnum |
getTopiaEntityEnum()
Deprecated.
you should get it from persistence context or application context
|
addTopiaEntityListener, addTopiaEntityVetoable, count, create, create, create, create, createAll, delete, deleteAll, findAll, findAllIds, findAllLazy, findAllUsages, findUsages, forContains, forEquals, forIn, forProperties, forProperties, forTopiaIdEquals, forTopiaIdIn, getBatchSize, getEntityClass, newInstance, newQueryBuilder, removeTopiaEntityListener, removeTopiaEntityVetoable, setBatchSize, tryFindByTopiaId, update, updateAllE create(Object... propertyNamesAndValues) throws TopiaException
TopiaDao.create(String, Object, Object...)propertyNamesAndValues - the list of properties that the created entity will have. Arguments are key-value
paired : [propertyName;value;propertyName;value;...]TopiaException - if any problem during instantiationIllegalArgumentException - if the arguments count is not correct or
if some property type is not the
expected oneTopiaDao.create(Map)E findByTopiaId(String id) throws TopiaException
TopiaDao.forTopiaIdEquals(String)id. If the id is
null, nothing will be searched.findByTopiaId in interface TopiaDao<E extends TopiaEntity>id - topiaId of the entity to foundTopiaException - for Topia errors on queryE findByProperty(String propertyName, Object value) throws TopiaException
LegacyTopiaDao.findByProperties(String, Object, Object...)value for the given propertyName.propertyName - property name to filtervalue - value of the property to matchTopiaException - if any pb while getting datasE findByProperties(String propertyName, Object value, Object... propertyNamesAndValues) throws TopiaException
LegacyTopiaDao.findByProperties(String, Object, Object...)propertyName - the first property name to filtervalue - the first value of the property to matchpropertyNamesAndValues - other property names and values. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any pb while getting datasE findByProperties(Map<String,Object> properties) throws TopiaException
LegacyTopiaDao.findByProperties(java.util.Map)properties.properties - the properties key + value to matchTopiaException - if any pb while getting datasE findByQuery(String hql, Object... propertyNamesAndValues) throws TopiaException
hql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any pb while getting datas<R> R findByQuery(Class<R> type, String hql, Object... propertyNamesAndValues) throws TopiaException
type - the expected result typehql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any pb while getting datasClassCastException - if the found type is not the expected oneE findByPrimaryKey(Map<String,Object> keys) throws TopiaException
LegacyTopiaDao.findByPrimaryKey(java.util.Map)keys - Map with the natural id property name as Map.key, and value as Map.valueTopiaException - if any pb while getting datasE findByPrimaryKey(Object... propertyNamesAndValues) throws TopiaException
LegacyTopiaDao.findByPrimaryKey(Object...)propertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any pb while getting datasE findContains(String propertyName, Object value) throws TopiaException
LegacyTopiaDao.findContains(String, Object)propertyName - the name of the property (must be a collection)value - the value to use for findTopiaException - if any pb while getting datasList<E> findAllWithOrder(String... propertyNames) throws TopiaException
LegacyTopiaDao.findAllWithOrder(String...)propertyNames.
You can add on each property ASC or DESC to force the result order
(by default is ASC).propertyNames - property names of order to applyTopiaException - if any pb while getting datasList<E> findAllByProperty(String propertyName, Object value) throws TopiaException
LegacyTopiaDao.findAllByProperties(String, Object, Object...)propertyName is
valuepropertyName - property name to usevalue - value to expectTopiaException - if any pb while getting datasList<E> findAllByProperties(String propertyName, Object value, Object... propertyNamesAndValues) throws TopiaException
LegacyTopiaDao.findAllByProperties(String, Object, Object...)propertyName, value
AND all other propertiespropertyName - property name to usevalue - value to expectpropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any pb while getting datasList<E> findAllByProperties(Map<String,Object> properties) throws TopiaException
LegacyTopiaDao.findAllByProperties(java.util.Map)properties values.properties - properties to matchTopiaException - if any pb while getting datasList<E> findAllByQuery(String hql, Object... propertyNamesAndValues) throws TopiaException
AbstractTopiaDao.findAll(String, java.util.Map)hql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any pb while getting datas<R> List<R> findAllByQuery(Class<R> type, String hql, Object... propertyNamesAndValues) throws TopiaException
AbstractTopiaDao.findAll(String, java.util.Map, Class)type which may not be a entity type (int, long, map,...).type - the expected result typehql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any pb while getting datasIterable<E> findAllLazyByQuery(String hql, Object... propertyNamesAndValues) throws TopiaException
AbstractTopiaDao.findAllLazy(String, java.util.Map, Class)hql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any pb while getting datas<R> Iterable<R> findAllLazyByQuery(Class<R> type, String hql, Object... propertyNamesAndValues) throws TopiaException
AbstractTopiaDao.findAllLazy(String, java.util.Map, Class)type which may not be a entity type (int, long, map,...).
Important note: // TODO AThimel 20/07/13 Write the important note...type - the expected result typehql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any pb while getting datasIterable<E> findAllLazyByQuery(int batchSize, String hql, Object... propertyNamesAndValues) throws TopiaException
AbstractTopiaDao.findAllLazy(String, java.util.Map)batchSize - batch sizehql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any pb while getting datas<R> Iterable<R> findAllLazyByQuery(Class<R> type, int batchSize, String hql, Object... propertyNamesAndValues) throws TopiaException
AbstractTopiaDao.findAllLazy(String, java.util.Map, Class)type which may not be a entity type (int, long, map,...).
Important note: // TODO AThimel 20/07/13 Write the important note...type - the expected result typebatchSize - batch sizehql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any pb while getting datasList<E> findAllByQueryWithBound(String hql, int startIndex, int endIndex, Object... propertyNamesAndValues) throws TopiaException
AbstractTopiaDao.findAll(String, java.util.Map, int, int)startIndex -
endIndex entities).
// TODO AThimel 20/07/13 Reformulate(?) the "window thing"hql - the HQL querystartIndex - first index of entity to returnendIndex - last index of entity to returnpropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any pb while getting datas<R> List<R> findAllByQueryWithBound(Class<R> type, String hql, int startIndex, int endIndex, Object... propertyNamesAndValues) throws TopiaException
AbstractTopiaDao.findAll(String, java.util.Map, Class, int, int)startIndex -
endIndex entities).
// TODO AThimel 20/07/13 Reformulate(?) the "window thing"type - the expected result typehql - the HQL querystartIndex - first index of entity to returnendIndex - last index of entity to returnpropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any pb while getting datasList<E> findAllByQueryAndPager(String hql, TopiaPagerBean pager, Object... propertyNamesAndValues) throws TopiaException
AbstractTopiaDao.findAll(String, java.util.Map, org.nuiton.topia.persistence.pager.TopiaPagerBean)hql query using the
pager to obtain the window of entities to return.hql - the HQL querypager - pager to obtain the correct window of datapropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any pb while getting datasTopiaPagerBean<R> List<R> findAllByQueryAndPager(Class<R> type, String hql, TopiaPagerBean pager, Object... propertyNamesAndValues) throws TopiaException
AbstractTopiaDao.findAll(String, java.util.Map, Class, org.nuiton.topia.persistence.pager.TopiaPagerBean)hql query using the
pager to obtain the window of entities to return.type - the expected result typehql - the HQL querypager - pager to obtain the correct window of datapropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any pb while getting datasTopiaPagerBeanList<E> findAllContains(String propertyName, Object value) throws TopiaException
LegacyTopiaDao.findAllContains(String, Object)propertyName - the name of the property (must be a collection)value - the value to use for findTopiaException - if any pb while getting datasboolean existByTopiaId(String id) throws TopiaException
LegacyTopiaDao.existByTopiaId(String)id.id - unique id of the entity to test existence.TopiaException - for any errorboolean existByProperties(String propertyName, Object propertyValue, Object... propertyNamesAndValues) throws TopiaException
AbstractTopiaDao.exists(String, java.util.Map)propertyName with propertyValue. others properties can be added to test
existence.propertyName - the first property name to test existencepropertyValue - the first property value to test existencepropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - for Topia errorsboolean existsByQuery(String hql, Object... propertyNamesAndValues) throws TopiaException
AbstractTopiaDao.exists(String, java.util.Map)hql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaExceptionlong countByQuery(String hql, Object... propertyNamesAndValues) throws TopiaException
AbstractTopiaDao.count(String, java.util.Map)hql - the HQL query to usepropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any pb while getting datasvoid computeAndAddRecordsToPager(String hql, TopiaPagerBean pager, Object... propertyNamesAndValues) throws TopiaException
hql query and then synch the pager to this
result (says fill the
PagerBean.records field and then adapt
the number of pages available and the current number page).hql - the HQL query to usepager - pager to obtain the correct window of datapropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - if any pb while getting datasTopiaPagerBean@Deprecated TopiaContextImplementor getContext()
getTopiaContext()TopiaContext getTopiaContext()
@Deprecated TopiaEntityEnum getTopiaEntityEnum()
@Deprecated String createSimpleQuery(String alias)
FROM MyEntityImpl myAlias
alias - optional alias to use in query@Deprecated List<Permission> getRequestPermission(String topiaId, int actions) throws TopiaException
topiaId - topiaId d'une entiteactions - encoded actionsTopiaException - if any pb while getting datas@Deprecated <E> List<E> findAll(String hql, Object... propertyNamesAndValues) throws TopiaException
TopiaJpaSupporthql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - for any error during querying@Deprecated <E> List<E> find(String hql, int startIndex, int endIndex, Object... propertyNamesAndValues) throws TopiaException
TopiaJpaSupportstartIndex = 0.endIndex = -1.
WARNING : Depending on the registered service, this method may not
support something else than queries on TopiaEntityhql - the HQL querystartIndex - first index of entity to returnendIndex - last index of entity to returnpropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - for any error during querying@Deprecated <E> E findUnique(String hql, Object... propertyNamesAndValues) throws TopiaException
TopiaJpaSupporthql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - for any error during querying or if the the query
returns more than one result.Copyright © 2004–2013 CodeLutin. All rights reserved.