com.atlassian.jira.entity
Class AbstractEntityFactory<E>

java.lang.Object
  extended by com.atlassian.jira.entity.AbstractEntityFactory<E>
All Implemented Interfaces:
EntityBuilder<E>, EntityFactory<E>, NamedEntityBuilder<E>
Direct Known Subclasses:
ApplicationUserEntityFactory, ClusterLockStatusEntity, ClusterNodeHeartbeatFactory, EntityPropertyFactory, EntityPropertyIndexDocumentFactory, FilterSubscriptionFactory, GlobalPermissionEntityFactory, IssueLinkFactory, IssueSecurityLevelFactory, IssueSecurityLevelPermissionFactory, LicenseRoleGroupEntityFactory, MovedIssueKeyFactory, ProductLicenseEntityFactory, ProjectCategoryFactory, RemoteIssueLinkFactory, ReplicatedIndexOperationFactory, RunDetailsFactory, WorklogEntityFactory

public abstract class AbstractEntityFactory<E>
extends Object
implements EntityFactory<E>

An abstract EntityFactory that most implementations are expected to extend.

Since:
v4.4

Constructor Summary
AbstractEntityFactory()
           
 
Method Summary
 List<E> buildList(Collection<org.ofbiz.core.entity.GenericValue> gvList)
          Builds a list of instances from a list of GenericValues.
 org.ofbiz.core.entity.GenericValue genericValueFrom(E entity)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.entity.EntityFactory
fieldMapFrom
 
Methods inherited from interface com.atlassian.jira.entity.NamedEntityBuilder
getEntityName
 
Methods inherited from interface com.atlassian.jira.entity.EntityBuilder
build
 

Constructor Detail

AbstractEntityFactory

public AbstractEntityFactory()
Method Detail

buildList

public List<E> buildList(Collection<org.ofbiz.core.entity.GenericValue> gvList)
Description copied from interface: EntityFactory
Builds a list of instances from a list of GenericValues. This method is included in the interface so that the no-op implementation can take a performance shortcut and simply return the given list. If a null list is input, then a null list will be output.

Specified by:
buildList in interface EntityFactory<E>
Parameters:
gvList - List of GenericValues
Returns:
List of objects.

genericValueFrom

public org.ofbiz.core.entity.GenericValue genericValueFrom(E entity)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2014 Atlassian. All Rights Reserved.