As suggested on dev ML, reintroduces findAll("EntityName") but uses the new pattern with a cache variable rather than a signature with "Cache" in method name (thanks to Adrian's comment on dev ML)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1523507 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -292,6 +292,19 @@ public interface Delegator {
|
||||
*/
|
||||
public EntityListIterator find(String entityName, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, Set<String> fieldsToSelect, List<String> orderBy, EntityFindOptions findOptions) throws GenericEntityException;
|
||||
|
||||
/**
|
||||
* Finds all Generic entities
|
||||
*
|
||||
* @param entityName
|
||||
* The Name of the Entity as defined in the entity XML file
|
||||
* @param useCache
|
||||
* Whether to cache the results
|
||||
* @return List containing all Generic entities
|
||||
* @deprecated use {@link #findList(String entityName, EntityCondition entityCondition, Set<String> fieldsToSelect, List<String> orderBy, EntityFindOptions findOptions, boolean useCache)
|
||||
*/
|
||||
@Deprecated
|
||||
public List<GenericValue> findAll(String entityName, boolean useCache) throws GenericEntityException;
|
||||
|
||||
/**
|
||||
* Finds Generic Entity records by all of the specified fields (ie: combined
|
||||
* using AND) NOTE 20080502: 264 references
|
||||
|
||||
@@ -1676,23 +1676,14 @@ public class GenericDelegator implements Delegator {
|
||||
|
||||
/** Finds all Generic entities
|
||||
*@param entityName The Name of the Entity as defined in the entity XML file
|
||||
*@return List containing all Generic entities
|
||||
*@deprecated Use findList() instead
|
||||
* @see org.ofbiz.entity.Delegator#findAll(java.lang.String, boolean)
|
||||
* @deprecated use {@link #findList(java.lang.String, org.ofbiz.entity.condition.EntityCondition, java.util.Set, java.util.List, org.ofbiz.entity.util.EntityFindOptions, boolean)}
|
||||
*
|
||||
*/
|
||||
public List<GenericValue> findAll(String entityName) throws GenericEntityException {
|
||||
return this.findList(entityName, null, null, null, null, false);
|
||||
public List<GenericValue> findAll(String entityName, boolean useCache) throws GenericEntityException {
|
||||
return this.findList(entityName, null, null, null, null, useCache);
|
||||
}
|
||||
|
||||
/** Finds all Generic entities, looking first in the cache
|
||||
*@param entityName The Name of the Entity as defined in the entity XML file
|
||||
*@return List containing all Generic entities
|
||||
*@deprecated Use findList() instead
|
||||
*/
|
||||
public List<GenericValue> findAllCache(String entityName) throws GenericEntityException {
|
||||
return this.findList(entityName, null, null, null, null, true);
|
||||
}
|
||||
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.ofbiz.entity.Delegator#findByAnd(java.lang.String, java.lang.Object)
|
||||
* @deprecated use {@link #findByAnd(String, Map, List, boolean)}
|
||||
|
||||
Reference in New Issue
Block a user