java.lang.Object
com.genologics.ri.container.ContainerBatchFetchResult
- All Implemented Interfaces:
Batch<Container>,BatchUpdate<Container>,Serializable,Iterable<Container>
public class ContainerBatchFetchResult
extends Object
implements BatchUpdate<Container>, Serializable
The representation of a list of resource details for batch operations on containers.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ContainerBatchFetchResult(Collection<Container> containers) Constructor with a collection of containers. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddForCreate(Collection<Container> entities) Adds containers for batch creation.voidaddForUpdate(Collection<Container> entities) Adds containers for batch update.Gets the list of containers.getList()Gets the list of containers.intgetSize()Gets the size of the container 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
-
containers
The list of containers.
-
-
Constructor Details
-
ContainerBatchFetchResult
public ContainerBatchFetchResult()Default constructor. -
ContainerBatchFetchResult
Constructor with a collection of containers.- Parameters:
containers- the collection of containers.
-
-
Method Details
-
getContainers
Gets the list of containers.- Returns:
- the list of containers.
-
getList
Gets the list of containers. -
getSize
public int getSize()Gets the size of the container list. -
addForCreate
Adds containers for batch creation.- Specified by:
addForCreatein interfaceBatchUpdate<Container>- Parameters:
entities- the containers to add.
-
addForUpdate
Adds containers for batch update.- Specified by:
addForUpdatein interfaceBatchUpdate<Container>- Parameters:
entities- the containers to add.
-