java.lang.Object
org.litebridge.orm.persistence.CompositeUpdateResult
Represents the result of a composite update operation, aggregating multiple
DtoUpdateResult objects
that represent individual update results.
This class is immutable and maintains an internal list of DtoUpdateResult, allowing for chained
operations while maintaining encapsulation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(DtoUpdateResult dtoUpdateResult) Adds aDtoUpdateResultto the composite update result.@Nullable DtoUpdateResultgetDtoUpdateResult(Object dto) Returns theDtoUpdateResultfor the given DTO.results()Returns the list ofDtoUpdateResultobjects contained in this composite update result.
-
Constructor Details
-
CompositeUpdateResult
public CompositeUpdateResult()
-
-
Method Details
-
add
Adds aDtoUpdateResultto the composite update result.- Parameters:
dtoUpdateResult- TheDtoUpdateResultto add.- Returns:
- This
CompositeUpdateResultinstance, allowing for method chaining.
-
results
Returns the list ofDtoUpdateResultobjects contained in this composite update result.- Returns:
- The list of
DtoUpdateResultobjects.
-
getDtoUpdateResult
Returns theDtoUpdateResultfor the given DTO.- Parameters:
dto- The DTO to look up.- Returns:
- The
DtoUpdateResultfor the DTO, or null if not found.
-