Class ClarityFileBatchFetchResult

java.lang.Object
com.genologics.ri.file.ClarityFileBatchFetchResult
All Implemented Interfaces:
Batch<ClarityFile>, BatchUpdate<ClarityFile>, Serializable, Iterable<ClarityFile>

public class ClarityFileBatchFetchResult extends Object implements BatchUpdate<ClarityFile>, Serializable
The representation of a batch of file resources.

This class is used to encapsulate multiple ClarityFile objects for batch operations such as fetching, creating, or updating files in the Clarity LIMS system. It implements the BatchUpdate interface to support batch create and update operations on file resources.

Since:
2.18
See Also:
  • Field Details

    • files

      protected List<ClarityFile> files
      The list of file resources in this batch.
  • Constructor Details

    • ClarityFileBatchFetchResult

      public ClarityFileBatchFetchResult()
      Creates a new, empty ClarityFileBatchFetchResult.
  • Method Details

    • getFiles

      public List<ClarityFile> getFiles()
      Gets the list of files in this batch. If the list is null, it will be initialized to an empty list.
      Returns:
      The list of files in this batch.
    • getList

      public List<ClarityFile> getList()
      Gets the list of files in this batch. This method is required by the BatchUpdate interface.
      Specified by:
      getList in interface Batch<ClarityFile>
      Returns:
      The list of files in this batch.
    • getSize

      public int getSize()
      Gets the number of files in this batch.
      Specified by:
      getSize in interface Batch<ClarityFile>
      Returns:
      The number of files, or 0 if the files list is null.
    • addForCreate

      public void addForCreate(Collection<ClarityFile> entities)
      Adds a collection of file entities to this batch for creation. The entities are added to the internal files list.
      Specified by:
      addForCreate in interface BatchUpdate<ClarityFile>
      Parameters:
      entities - The collection of file entities to add for creation.
    • addForUpdate

      public void addForUpdate(Collection<ClarityFile> entities)
      Adds a collection of file entities to this batch for update. The entities are added to the internal files list. Note that there are no state parameters to worry about for file resources.
      Specified by:
      addForUpdate in interface BatchUpdate<ClarityFile>
      Parameters:
      entities - The collection of file entities to add for update.