EntityUtils
instead. Since v5.1.public class EntityUtils extends Object
Constructor and Description |
---|
EntityUtils()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
contains(Collection<org.ofbiz.core.entity.GenericValue> entities,
org.ofbiz.core.entity.GenericValue entity)
Deprecated.
Not used in JIRA code - please replicate this if you want to use it. Since v5.1.
|
static org.ofbiz.core.entity.GenericValue |
createValue(String entity,
Map<String,?> paramMap)
Deprecated.
Use
EntityUtils.createValue(String, java.util.Map) instead. Since v5.1. |
static List<org.ofbiz.core.entity.GenericValue> |
filterByAnd(List<org.ofbiz.core.entity.GenericValue> values,
List<? extends org.ofbiz.core.entity.EntityExpr> exprs)
Deprecated.
Use
EntityUtil.filterByAnd(java.util.List, java.util.List) instead or write your own filter. Since v5.1. |
static String |
getNextStringId(String entityName)
Deprecated.
Use
EntityUtils.getNextStringId(String) instead. Since v5.1. |
static org.ofbiz.core.entity.EntityOperator |
getOperator(String code)
Deprecated.
Not used in JIRA code - please replicate this if you want to use it. Since v5.1.
|
static boolean |
identical(org.ofbiz.core.entity.GenericValue v1,
org.ofbiz.core.entity.GenericValue v2)
Deprecated.
Use
EntityUtils.identical(org.ofbiz.core.entity.GenericValue, org.ofbiz.core.entity.GenericValue) instead. Since v5.1. |
public static org.ofbiz.core.entity.EntityOperator getOperator(String code)
public static org.ofbiz.core.entity.GenericValue createValue(String entity, Map<String,?> paramMap) throws org.ofbiz.core.entity.GenericEntityException
EntityUtils.createValue(String, java.util.Map)
instead. Since v5.1.If there is no "id" in the parameter list, one is created using the entity sequence
org.ofbiz.core.entity.GenericEntityException
public static boolean identical(org.ofbiz.core.entity.GenericValue v1, org.ofbiz.core.entity.GenericValue v2)
EntityUtils.identical(org.ofbiz.core.entity.GenericValue, org.ofbiz.core.entity.GenericValue)
instead. Since v5.1.This method will check the keys and values of both GenericValues.
There is only a single difference between this method and GenericValue.equals(gv2), that is that if one GV has no key of a certain type, and the other has a null value for that key, they are still deemed to be identical (as GenericValue.get(key) always returns null if the key exists or not).
public static boolean contains(Collection<org.ofbiz.core.entity.GenericValue> entities, org.ofbiz.core.entity.GenericValue entity)
entities
- The list of entities to searchentity
- The entity to search for and compare topublic static List<org.ofbiz.core.entity.GenericValue> filterByAnd(List<org.ofbiz.core.entity.GenericValue> values, List<? extends org.ofbiz.core.entity.EntityExpr> exprs)
EntityUtil.filterByAnd(java.util.List, java.util.List)
instead or write your own filter. Since v5.1.values
- A collection of GenericValuesexprs
- The expressions that must validate to truepublic static String getNextStringId(String entityName) throws org.ofbiz.core.entity.GenericEntityException
EntityUtils.getNextStringId(String)
instead. Since v5.1.org.ofbiz.core.entity.GenericEntityException
Copyright © 2002-2019 Atlassian. All Rights Reserved.