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 Summary
FieldsModifier and TypeFieldDescriptionprotected List<ClarityFile>The list of file resources in this batch. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new, empty ClarityFileBatchFetchResult. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddForCreate(Collection<ClarityFile> entities) Adds a collection of file entities to this batch for creation.voidaddForUpdate(Collection<ClarityFile> entities) Adds a collection of file entities to this batch for update.getFiles()Gets the list of files in this batch.getList()Gets the list of files in this batch.intgetSize()Gets the number of files in this batch.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
files
The list of file resources in this batch.
-
-
Constructor Details
-
ClarityFileBatchFetchResult
public ClarityFileBatchFetchResult()Creates a new, empty ClarityFileBatchFetchResult.
-
-
Method Details
-
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
Gets the list of files in this batch. This method is required by theBatchUpdateinterface.- Specified by:
getListin interfaceBatch<ClarityFile>- Returns:
- The list of files in this batch.
-
getSize
public int getSize()Gets the number of files in this batch.- Specified by:
getSizein interfaceBatch<ClarityFile>- Returns:
- The number of files, or 0 if the files list is null.
-
addForCreate
Adds a collection of file entities to this batch for creation. The entities are added to the internal files list.- Specified by:
addForCreatein interfaceBatchUpdate<ClarityFile>- Parameters:
entities- The collection of file entities to add for creation.
-
addForUpdate
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:
addForUpdatein interfaceBatchUpdate<ClarityFile>- Parameters:
entities- The collection of file entities to add for update.
-