Class ArtifactBatchFetchResult

java.lang.Object
com.genologics.ri.artifact.ArtifactBatchFetchResult
All Implemented Interfaces:
Batch<Artifact>, BatchUpdate<Artifact>, Serializable, Iterable<Artifact>

public class ArtifactBatchFetchResult extends Object implements BatchUpdate<Artifact>, Serializable
The representation of a batch fetch result for artifacts.

This class is used for batch retrieval and batch update operations on artifacts.

See Also:
  • Field Details

    • artifacts

      protected List<Artifact> artifacts
      The list of artifacts in this batch.
  • Constructor Details

    • ArtifactBatchFetchResult

      public ArtifactBatchFetchResult()
      Constructor.
    • ArtifactBatchFetchResult

      public ArtifactBatchFetchResult(Collection<Artifact> artifacts)
      Constructor taking a collection of artifacts.
      Parameters:
      artifacts - The collection of artifacts.
  • Method Details

    • getArtifacts

      public List<Artifact> getArtifacts()
      Gets the list of artifacts in this batch.
      Returns:
      The list of artifacts.
    • getList

      public List<Artifact> getList()
      Gets the list of artifacts in this batch.
      Specified by:
      getList in interface Batch<Artifact>
      Returns:
      The list of artifacts.
    • getSize

      public int getSize()
      Gets the size of the artifact list.
      Specified by:
      getSize in interface Batch<Artifact>
      Returns:
      The number of artifacts.
    • addForCreate

      public void addForCreate(Collection<Artifact> entities)
      Adds artifacts to be created.
      Specified by:
      addForCreate in interface BatchUpdate<Artifact>
      Parameters:
      entities - The collection of artifacts to add for creation.
    • addForUpdate

      public void addForUpdate(Collection<Artifact> entities)
      Adds artifacts to be updated.
      Specified by:
      addForUpdate in interface BatchUpdate<Artifact>
      Parameters:
      entities - The collection of artifacts to add for update.