|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.ofbiz.util.EntityUtils
public class EntityUtils
This was taken from atlassian-ofbiz and placed into its now rightful home of JIRA.
Constructor Summary | |
---|---|
EntityUtils()
|
Method Summary | |
---|---|
static boolean |
contains(Collection<org.ofbiz.core.entity.GenericValue> entities,
org.ofbiz.core.entity.GenericValue entity)
Checks if a collection of entities contains an identical entity to the one provided. |
static org.ofbiz.core.entity.GenericValue |
createValue(String entity,
Map<String,?> paramMap)
Create a new entity. |
static List<org.ofbiz.core.entity.GenericValue> |
filterByAnd(List<org.ofbiz.core.entity.GenericValue> values,
List<? extends org.ofbiz.core.entity.EntityExpr> exprs)
This method is analogous to the OFBiz EntityUtil.filterByAnd method except that theirs does not filter on GT, GTE, LT, LTE yet. |
static String |
getNextStringId(String entityName)
Calculate a new entity ID (by basically taking one more than the max integer that exists). |
static org.ofbiz.core.entity.EntityOperator |
getOperator(String code)
Small utility method to get an entity operator from it's code |
static boolean |
identical(org.ofbiz.core.entity.GenericValue v1,
org.ofbiz.core.entity.GenericValue v2)
Compare two GenericValues based on their content. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityUtils()
Method Detail |
---|
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
org.ofbiz.core.entity.GenericEntityException
public static boolean identical(org.ofbiz.core.entity.GenericValue v1, org.ofbiz.core.entity.GenericValue v2)
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 to
public static List<org.ofbiz.core.entity.GenericValue> filterByAnd(List<org.ofbiz.core.entity.GenericValue> values, List<? extends org.ofbiz.core.entity.EntityExpr> exprs)
values
- A collection of GenericValuesexprs
- The expressions that must validate to true
public static String getNextStringId(String entityName) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |