|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityFactory<E>
An entity factory is able to convert a Generic Value for an entity into a domain object and back.
It is used by EntityEngine
to run queries that return Domain objects instead of GenericValues.
Method Summary | |
---|---|
E |
build(org.ofbiz.core.entity.GenericValue genericValue)
Builds an instance of this Entity from the given GenericValue. |
List<E> |
buildList(Collection<org.ofbiz.core.entity.GenericValue> gvList)
Builds a list of instances from a list of GenericValues. |
Map<String,Object> |
fieldMapFrom(E value)
Builds a FieldMap from an entity Object. |
String |
getEntityName()
The name of the Entity as defined in the entitymodel.xml file. |
Method Detail |
---|
String getEntityName()
E build(org.ofbiz.core.entity.GenericValue genericValue)
genericValue
- GenericValue for the entity
List<E> buildList(Collection<org.ofbiz.core.entity.GenericValue> gvList)
gvList
- List of GenericValues
Map<String,Object> fieldMapFrom(E value)
value
- the Entity value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |