@Deprecated public abstract class LegacyTopiaDao<E extends TopiaEntity> extends Object implements TopiaDAO<E>
TopiaDAO, should be deleted.| Constructor and Description |
|---|
LegacyTopiaDao()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
computeAndAddRecordsToPager(String hql,
TopiaPagerBean pager,
Object... propertyNamesAndValues)
Deprecated.
|
long |
countByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
|
E |
create(Object... propertyNamesAndValues)
Deprecated.
Creates a new instance of the entity managed by the DAO
|
protected String |
createSimpleQuery()
Deprecated.
|
String |
createSimpleQuery(String alias)
Deprecated.
|
boolean |
existByProperties(String propertyName,
Object propertyValue,
Object... propertyNamesAndValues)
Deprecated.
|
boolean |
existByTopiaId(String topiaId)
Deprecated.
|
protected abstract boolean |
exists(String hql,
Map<String,Object> hqlParameters)
Deprecated.
|
boolean |
existsByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
|
<E1> List<E1> |
find(String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Deprecated.
|
protected abstract <R> List<R> |
findAll(String hql,
Map<String,Object> hqlParameters,
Class<R> type)
Deprecated.
|
protected abstract <R> List<R> |
findAll(String hql,
Map<String,Object> hqlParameters,
Class<R> type,
int startIndex,
int endIndex)
Deprecated.
|
<E1> List<E1> |
findAll(String hql,
Object... propertyNamesAndValues)
Deprecated.
|
List<E> |
findAllByProperties(Map<String,Object> properties)
Deprecated.
|
List<E> |
findAllByProperties(String propertyName,
Object value,
Object... propertyNamesAndValues)
Deprecated.
|
List<E> |
findAllByProperty(String propertyName,
Object value)
Deprecated.
|
<R> List<R> |
findAllByQuery(Class<R> type,
String hql,
Object... propertyNamesAndValues)
Deprecated.
|
List<E> |
findAllByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
|
<R> List<R> |
findAllByQueryAndPager(Class<R> type,
String hql,
TopiaPagerBean pager,
Object... propertyNamesAndValues)
Deprecated.
|
List<E> |
findAllByQueryAndPager(String hql,
TopiaPagerBean pager,
Object... propertyNamesAndValues)
Deprecated.
|
<R> List<R> |
findAllByQueryWithBound(Class<R> type,
String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Deprecated.
|
List<E> |
findAllByQueryWithBound(String hql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Deprecated.
|
List<E> |
findAllContains(String propertyName,
Object value)
Deprecated.
|
protected abstract Iterable<E> |
findAllLazy(String hql,
Map<String,Object> hqlParameters)
Deprecated.
|
protected abstract <R> Iterable<R> |
findAllLazy(String hql,
Map<String,Object> hqlParameters,
Class<R> type)
Deprecated.
|
<R> Iterable<R> |
findAllLazyByQuery(Class<R> type,
int batchSize,
String hql,
Object... propertyNamesAndValues)
Deprecated.
|
<R> Iterable<R> |
findAllLazyByQuery(Class<R> type,
String hql,
Object... propertyNamesAndValues)
Deprecated.
|
Iterable<E> |
findAllLazyByQuery(int batchSize,
String hql,
Object... propertyNamesAndValues)
Deprecated.
|
Iterable<E> |
findAllLazyByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
|
List<E> |
findAllWithOrder(String... propertyNames)
Deprecated.
|
protected abstract <R> R |
findAny(String hql,
Map<String,Object> properties,
Class<R> type)
Deprecated.
|
protected abstract <R> R |
findAnyOrNull(String hql,
Map<String,Object> hqlParameters,
Class<R> type)
Deprecated.
|
E |
findByPrimaryKey(Map<String,Object> keys)
Deprecated.
|
E |
findByPrimaryKey(Object... propertyNamesAndValues)
Deprecated.
|
E |
findByProperties(Map<String,Object> properties)
Deprecated.
|
E |
findByProperties(String propertyName,
Object value,
Object... propertyNamesAndValues)
Deprecated.
|
E |
findByProperty(String propertyName,
Object value)
Deprecated.
|
<R> R |
findByQuery(Class<R> type,
String hql,
Object... propertyNamesAndValues)
Deprecated.
|
E |
findByQuery(String hql,
Object... propertyNamesAndValues)
Deprecated.
|
E |
findByTopiaId(String id)
Deprecated.
|
E |
findContains(String propertyName,
Object value)
Deprecated.
|
protected abstract <R> R |
findUnique(String hql,
Map<String,Object> hqlParameters,
Class<R> type)
Deprecated.
|
<E1> E1 |
findUnique(String hql,
Object... propertyNamesAndValues)
Deprecated.
|
protected abstract TopiaQueryBuilderRunQueryStep<E> |
forHql(String hql,
Map<String,Object> hqlParameters)
Deprecated.
|
TopiaContextImplementor |
getContext()
Deprecated.
Returns the context used by this DAO.
|
List<Permission> |
getRequestPermission(String topiaId,
int actions)
Deprecated.
Retourne les permissions a verifier pour l'acces a l'entite pour le
service Taas.
|
TopiaContext |
getTopiaContext()
Deprecated.
Returns the context used by this DAO.
|
protected abstract String |
newFromClause(String alias)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTopiaEntityEnumaddTopiaEntityListener, 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, updateAllpublic E create(Object... propertyNamesAndValues)
TopiaDAOcreate in interface TopiaDAO<E extends TopiaEntity>propertyNamesAndValues - the list of properties that the created entity will have. Arguments are key-value
paired : [propertyName;value;propertyName;value;...]TopiaDao.create(Map)@Deprecated public boolean existByTopiaId(String topiaId)
TopiaDAOid.existByTopiaId in interface TopiaDAO<E extends TopiaEntity>topiaId - unique id of the entity to test existence.@Deprecated public boolean existByProperties(String propertyName, Object propertyValue, Object... propertyNamesAndValues)
TopiaDAOpropertyName with propertyValue. others properties can be added to test
existence.existByProperties in interface TopiaDAO<E extends TopiaEntity>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;...]@Deprecated protected String createSimpleQuery()
@Deprecated public String createSimpleQuery(String alias)
TopiaDAOFROM MyEntityImpl myAlias
createSimpleQuery in interface TopiaDAO<E extends TopiaEntity>alias - optional alias to use in query@Deprecated public E findByTopiaId(String id)
TopiaDAOid. If the id is
null, nothing will be searched.findByTopiaId in interface TopiaDao<E extends TopiaEntity>findByTopiaId in interface TopiaDAO<E extends TopiaEntity>id - topiaId of the entity to found@Deprecated public E findByProperty(String propertyName, Object value)
TopiaDAOvalue for the given propertyName.findByProperty in interface TopiaDAO<E extends TopiaEntity>propertyName - property name to filtervalue - value of the property to match@Deprecated public <R> R findByQuery(Class<R> type, String hql, Object... propertyNamesAndValues)
TopiaDAOfindByQuery in interface TopiaDAO<E extends TopiaEntity>type - the expected result typehql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]@Deprecated public E findByPrimaryKey(Map<String,Object> keys)
TopiaDAOfindByPrimaryKey in interface TopiaDAO<E extends TopiaEntity>keys - Map with the natural id property name as Map.key, and value as Map.value@Deprecated public E findByPrimaryKey(Object... propertyNamesAndValues)
TopiaDAOfindByPrimaryKey in interface TopiaDAO<E extends TopiaEntity>propertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]@Deprecated public List<E> findAllWithOrder(String... propertyNames)
TopiaDAOpropertyNames.
You can add on each property ASC or DESC to force the result order
(by default is ASC).findAllWithOrder in interface TopiaDAO<E extends TopiaEntity>propertyNames - property names of order to apply@Deprecated public <R> List<R> findAllByQuery(Class<R> type, String hql, Object... propertyNamesAndValues)
TopiaDAOtype which may not be a entity type (int, long, map,...).findAllByQuery in interface TopiaDAO<E extends TopiaEntity>type - the expected result typehql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]@Deprecated public E findByProperties(String propertyName, Object value, Object... propertyNamesAndValues)
TopiaDAOfindByProperties in interface TopiaDAO<E extends TopiaEntity>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;...]@Deprecated public E findByProperties(Map<String,Object> properties)
TopiaDAOproperties.findByProperties in interface TopiaDAO<E extends TopiaEntity>properties - the properties key + value to match@Deprecated public List<E> findAllByProperty(String propertyName, Object value)
TopiaDAOpropertyName is
valuefindAllByProperty in interface TopiaDAO<E extends TopiaEntity>propertyName - property name to usevalue - value to expect@Deprecated public List<E> findAllByProperties(String propertyName, Object value, Object... propertyNamesAndValues)
TopiaDAOpropertyName, value
AND all other propertiesfindAllByProperties in interface TopiaDAO<E extends TopiaEntity>propertyName - property name to usevalue - value to expectpropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]@Deprecated public List<E> findAllByProperties(Map<String,Object> properties)
TopiaDAOproperties values.findAllByProperties in interface TopiaDAO<E extends TopiaEntity>properties - properties to match@Deprecated public E findContains(String propertyName, Object value)
TopiaDAOfindContains in interface TopiaDAO<E extends TopiaEntity>propertyName - the name of the property (must be a collection)value - the value to use for find@Deprecated public List<E> findAllContains(String propertyName, Object value)
TopiaDAOfindAllContains in interface TopiaDAO<E extends TopiaEntity>propertyName - the name of the property (must be a collection)value - the value to use for find@Deprecated public boolean existsByQuery(String hql, Object... propertyNamesAndValues)
TopiaDAOexistsByQuery in interface TopiaDAO<E extends TopiaEntity>hql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]@Deprecated public long countByQuery(String hql, Object... propertyNamesAndValues)
TopiaDAOcountByQuery in interface TopiaDAO<E extends TopiaEntity>hql - the HQL query to usepropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]@Deprecated public E findByQuery(String hql, Object... propertyNamesAndValues)
TopiaDAOfindByQuery in interface TopiaDAO<E extends TopiaEntity>hql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]@Deprecated public List<E> findAllByQuery(String hql, Object... propertyNamesAndValues)
TopiaDAOfindAllByQuery in interface TopiaDAO<E extends TopiaEntity>hql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]@Deprecated public Iterable<E> findAllLazyByQuery(String hql, Object... propertyNamesAndValues)
TopiaDAOfindAllLazyByQuery in interface TopiaDAO<E extends TopiaEntity>hql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]@Deprecated public <R> Iterable<R> findAllLazyByQuery(Class<R> type, String hql, Object... propertyNamesAndValues)
TopiaDAOtype which may not be a entity type (int, long, map,...).
Important note: // TODO AThimel 20/07/13 Write the important note...findAllLazyByQuery in interface TopiaDAO<E extends TopiaEntity>type - the expected result typehql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]@Deprecated public Iterable<E> findAllLazyByQuery(int batchSize, String hql, Object... propertyNamesAndValues)
TopiaDAOfindAllLazyByQuery in interface TopiaDAO<E extends TopiaEntity>batchSize - batch sizehql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]@Deprecated public <R> Iterable<R> findAllLazyByQuery(Class<R> type, int batchSize, String hql, Object... propertyNamesAndValues)
findAllLazy(String, java.util.Map, Class)TopiaDAOtype which may not be a entity type (int, long, map,...).
Important note: // TODO AThimel 20/07/13 Write the important note...findAllLazyByQuery in interface TopiaDAO<E extends TopiaEntity>type - the expected result typebatchSize - batch sizehql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]@Deprecated public <R> List<R> findAllByQueryWithBound(Class<R> type, String hql, int startIndex, int endIndex, Object... propertyNamesAndValues)
TopiaDAOstartIndex -
endIndex entities).
// TODO AThimel 20/07/13 Reformulate(?) the "window thing"findAllByQueryWithBound in interface TopiaDAO<E extends TopiaEntity>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;...]@Deprecated public List<E> findAllByQueryWithBound(String hql, int startIndex, int endIndex, Object... propertyNamesAndValues)
TopiaDAOstartIndex -
endIndex entities).
// TODO AThimel 20/07/13 Reformulate(?) the "window thing"findAllByQueryWithBound in interface TopiaDAO<E extends TopiaEntity>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;...]@Deprecated public <R> List<R> findAllByQueryAndPager(Class<R> type, String hql, TopiaPagerBean pager, Object... propertyNamesAndValues)
TopiaDAOhql query using the
pager to obtain the window of entities to return.findAllByQueryAndPager in interface TopiaDAO<E extends TopiaEntity>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;...]TopiaPagerBean@Deprecated public List<E> findAllByQueryAndPager(String hql, TopiaPagerBean pager, Object... propertyNamesAndValues)
TopiaDAOhql query using the
pager to obtain the window of entities to return.findAllByQueryAndPager in interface TopiaDAO<E extends TopiaEntity>hql - the HQL querypager - pager to obtain the correct window of datapropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaPagerBean@Deprecated public void computeAndAddRecordsToPager(String hql, TopiaPagerBean pager, Object... propertyNamesAndValues)
TopiaDAOhql 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).computeAndAddRecordsToPager in interface TopiaDAO<E extends TopiaEntity>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;...]TopiaPagerBeanpublic List<Permission> getRequestPermission(String topiaId, int actions)
TopiaDAOgetRequestPermission in interface TopiaDAO<E extends TopiaEntity>topiaId - topiaId d'une entiteactions - encoded actionspublic TopiaContextImplementor getContext()
TopiaDAOgetContext in interface TopiaDAO<E extends TopiaEntity>public TopiaContext getTopiaContext()
TopiaDAOgetTopiaContext in interface TopiaDAO<E extends TopiaEntity>protected abstract Iterable<E> findAllLazy(String hql, Map<String,Object> hqlParameters)
protected abstract <R> R findAny(String hql, Map<String,Object> properties, Class<R> type)
protected abstract <R> R findAnyOrNull(String hql, Map<String,Object> hqlParameters, Class<R> type)
protected abstract TopiaQueryBuilderRunQueryStep<E> forHql(String hql, Map<String,Object> hqlParameters)
protected abstract <R> List<R> findAll(String hql, Map<String,Object> hqlParameters, Class<R> type)
protected abstract <R> Iterable<R> findAllLazy(String hql, Map<String,Object> hqlParameters, Class<R> type)
protected abstract <R> List<R> findAll(String hql, Map<String,Object> hqlParameters, Class<R> type, int startIndex, int endIndex)
protected abstract <R> R findUnique(String hql, Map<String,Object> hqlParameters, Class<R> type)
@Deprecated public <E1> List<E1> findAll(String hql, Object... propertyNamesAndValues) throws TopiaException
TopiaDAOfindAll in interface TopiaDAO<E extends TopiaEntity>hql - the HQL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]TopiaException - for any error during querying@Deprecated public <E1> List<E1> find(String hql, int startIndex, int endIndex, Object... propertyNamesAndValues) throws TopiaException
TopiaDAOstartIndex = 0.endIndex = -1.
WARNING : Depending on the registered service, this method may not
support something else than queries on TopiaEntityfind in interface TopiaDAO<E extends TopiaEntity>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 - for any error during querying@Deprecated public <E1> E1 findUnique(String hql, Object... propertyNamesAndValues) throws TopiaException
TopiaDAOfindUnique in interface TopiaDAO<E extends TopiaEntity>hql - 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.