Class AbstractEntityFactory<E>

java.lang.Object
com.atlassian.jira.entity.AbstractEntityFactory<E>
All Implemented Interfaces:
EntityBuilder<E>, EntityFactory<E>, NamedEntityBuilder<E>
Direct Known Subclasses:
ApplicationUserEntityFactory, ClusteredJobFactory, ClusterLockStatusEntity, ClusterNodeHeartbeatFactory, ConfigurationContextEntityFactory, EntityPropertyFactory, EntityPropertyIndexDocumentFactory, FieldConfigSchemeIssueTypeEntityFactory, FilterSubscriptionFactory, GlobalPermissionEntityFactory, IssueLinkFactory, IssueSecurityLevelFactory, IssueSecurityLevelPermissionFactory, MovedIssueKeyFactory, PermissionSchemeEntryFactory, ProductLicenseEntityFactory, ProjectCategoryFactory, ProjectComponentFactory, ReindexComponentFactory, ReindexRequestFactory, RemoteIssueLinkFactory, ReplicatedIndexOperationFactory, RunDetailsFactory, VersionFactory, 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 Details

    • AbstractEntityFactory

      public AbstractEntityFactory()
  • Method Details

    • 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