Class ContainerBatchFetchResult

java.lang.Object
com.genologics.ri.container.ContainerBatchFetchResult
All Implemented Interfaces:
Batch<Container>, BatchUpdate<Container>, Serializable, Iterable<Container>

public class ContainerBatchFetchResult extends Object implements BatchUpdate<Container>, Serializable
The representation of a list of resource details for batch operations on containers.
See Also:
  • Field Details

    • containers

      protected List<Container> containers
      The list of containers.
  • Constructor Details

    • ContainerBatchFetchResult

      public ContainerBatchFetchResult()
      Default constructor.
    • ContainerBatchFetchResult

      public ContainerBatchFetchResult(Collection<Container> containers)
      Constructor with a collection of containers.
      Parameters:
      containers - the collection of containers.
  • Method Details

    • getContainers

      public List<Container> getContainers()
      Gets the list of containers.
      Returns:
      the list of containers.
    • getList

      public List<Container> getList()
      Gets the list of containers.
      Specified by:
      getList in interface Batch<Container>
      Returns:
      the list of containers.
    • getSize

      public int getSize()
      Gets the size of the container list.
      Specified by:
      getSize in interface Batch<Container>
      Returns:
      the size.
    • addForCreate

      public void addForCreate(Collection<Container> entities)
      Adds containers for batch creation.
      Specified by:
      addForCreate in interface BatchUpdate<Container>
      Parameters:
      entities - the containers to add.
    • addForUpdate

      public void addForUpdate(Collection<Container> entities)
      Adds containers for batch update.
      Specified by:
      addForUpdate in interface BatchUpdate<Container>
      Parameters:
      entities - the containers to add.