java.lang.Object
com.genologics.ri.sample.SampleBatchFetchResult
- All Implemented Interfaces:
Batch<Sample>,BatchUpdate<Sample>,Serializable,Iterable<Sample>
Batch fetch and update holder for samples.
- Since:
- 2.18
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddForCreate(Collection<Sample> samples) Add samples to this object ready for creation.voidaddForUpdate(Collection<Sample> entities) Add entities for update operations.getList()intgetSize()iterator()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
-
samples
-
sampleCreations
-
-
Constructor Details
-
SampleBatchFetchResult
public SampleBatchFetchResult()
-
-
Method Details
-
getSamples
-
getSampleCreations
-
getList
-
getSize
public int getSize() -
iterator
-
addForUpdate
Description copied from interface:BatchUpdateAdd entities for update operations.- Specified by:
addForUpdatein interfaceBatchUpdate<Sample>- Parameters:
entities- The collection of entities.
-
addForCreate
Add samples to this object ready for creation. This actually involves creatingSampleCreationobjects in thesampleCreationslist rather than simply putting the original entities into the normal list.- Specified by:
addForCreatein interfaceBatchUpdate<Sample>- Parameters:
samples- The collection of Sample objects.- Throws:
IllegalStateException- if any sample does not have its creation location set or already has a URI.- See Also:
-