java.lang.Object
org.litebridge.orm.persistence.DtoUpdateResult
Represents the result of an update operation on a Data Transfer Object (DTO).
This class encapsulates information about the updated DTO, the outcome of the update operation, and optionally, a parent result if nested updates occurred.
-
Constructor Summary
ConstructorsConstructorDescriptionDtoUpdateResult(Object dto, @Nullable DtoUpdateResult parentResult) Creates a new DtoUpdateResult. -
Method Summary
Modifier and TypeMethodDescriptiongetDto()Returns the updated DTO.@Nullable DtoUpdateResultReturns the parent update result.Returns the underlying update result.voidSets the updated DTO.voidsetUpdateResult(UpdateResult updateResult) Sets the underlying update result.
-
Constructor Details
-
DtoUpdateResult
Creates a new DtoUpdateResult.- Parameters:
dto- the updated DTOparentResult- the parent update result, or null if none
-
-
Method Details
-
getDto
Returns the updated DTO.- Returns:
- the updated DTO
-
setDto
Sets the updated DTO.- Parameters:
dto- the updated DTO
-
getUpdateResult
Returns the underlying update result.- Returns:
- the update result
-
setUpdateResult
Sets the underlying update result.- Parameters:
updateResult- the update result
-
getParentResult
Returns the parent update result.- Returns:
- the parent result, or null if none
-