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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addForCreate
(Collection<Sample> samples) Add samples to this object ready for creation.void
addForUpdate
(Collection<Sample> entities) Add entities for update operations.getList()
int
getSize()
iterator()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:BatchUpdate
Add entities for update operations.- Specified by:
addForUpdate
in interfaceBatchUpdate<Sample>
- Parameters:
entities
- The collection of entities.
-
addForCreate
Add samples to this object ready for creation. This actually involves creatingSampleCreation
objects in thesampleCreations
list rather than simply putting the original entities into the normal list.- Specified by:
addForCreate
in 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:
-