java.lang.Object
com.genologics.ri.artifact.ArtifactBatchFetchResult
- All Implemented Interfaces:
Batch<Artifact>,BatchUpdate<Artifact>,Serializable,Iterable<Artifact>
The representation of a batch fetch result for artifacts.
This class is used for batch retrieval and batch update operations on artifacts.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.ArtifactBatchFetchResult(Collection<Artifact> artifacts) Constructor taking a collection of artifacts. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddForCreate(Collection<Artifact> entities) Adds artifacts to be created.voidaddForUpdate(Collection<Artifact> entities) Adds artifacts to be updated.Gets the list of artifacts in this batch.getList()Gets the list of artifacts in this batch.intgetSize()Gets the size of the artifact list.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
-
artifacts
The list of artifacts in this batch.
-
-
Constructor Details
-
ArtifactBatchFetchResult
public ArtifactBatchFetchResult()Constructor. -
ArtifactBatchFetchResult
Constructor taking a collection of artifacts.- Parameters:
artifacts- The collection of artifacts.
-
-
Method Details
-
getArtifacts
Gets the list of artifacts in this batch.- Returns:
- The list of artifacts.
-
getList
Gets the list of artifacts in this batch. -
getSize
public int getSize()Gets the size of the artifact list. -
addForCreate
Adds artifacts to be created.- Specified by:
addForCreatein interfaceBatchUpdate<Artifact>- Parameters:
entities- The collection of artifacts to add for creation.
-
addForUpdate
Adds artifacts to be updated.- Specified by:
addForUpdatein interfaceBatchUpdate<Artifact>- Parameters:
entities- The collection of artifacts to add for update.
-