| java.lang.Object org.ofbiz.entity.datasource.MemoryHelper
MemoryHelper | public class MemoryHelper implements GenericHelper(Code) | | Partial GenericHelper implementation that is entirely memory-based,
to be used for simple unit testing (can't do anything beyond searches
for primary keys, findByOr and findByAnd).
author: Pat Lightbody |
Method Summary | |
public void | checkDataSource(Map modelEntities, List messages, boolean addMissing) | public static void | clearCache() | public GenericValue | create(GenericValue value) | public GenericValue | create(GenericPK primaryKey) | public List | findAllByPrimaryKeys(List primaryKeys) | public List | findByAnd(ModelEntity modelEntity, Map fields, List orderBy) | public List | findByAnd(ModelEntity modelEntity, List expressions, List orderBy) | public List | findByCondition(ModelEntity modelEntity, EntityCondition entityCondition, Collection fieldsToSelect, List orderBy) | public List | findByLike(ModelEntity modelEntity, Map fields, List orderBy) | public List | findByMultiRelation(GenericValue value, ModelRelation modelRelationOne, ModelEntity modelEntityOne, ModelRelation modelRelationTwo, ModelEntity modelEntityTwo, List orderBy) | public List | findByOr(ModelEntity modelEntity, Map fields, List orderBy) | public List | findByOr(ModelEntity modelEntity, List expressions, List orderBy) | public GenericValue | findByPrimaryKey(GenericPK primaryKey) | public GenericValue | findByPrimaryKeyPartial(GenericPK primaryKey, Set keys) | public long | findCountByCondition(ModelEntity modelEntity, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition) | public EntityListIterator | findListIteratorByCondition(ModelEntity modelEntity, EntityCondition whereEntityCondition, EntityCondition havingEntityCondition, Collection fieldsToSelect, List orderBy, EntityFindOptions findOptions) | public String | getHelperName() | public int | removeAll(List dummyPKs) | public int | removeByAnd(ModelEntity modelEntity, Map fields) | public int | removeByPrimaryKey(GenericPK primaryKey) | public int | store(GenericValue value) | public int | storeAll(List values) |
clearCache | public static void clearCache()(Code) | | |
|
|