Class DtoUpdateResult

java.lang.Object
org.litebridge.orm.persistence.DtoUpdateResult

public class DtoUpdateResult extends Object
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 Details

    • DtoUpdateResult

      public DtoUpdateResult(Object dto, @Nullable DtoUpdateResult parentResult)
      Creates a new DtoUpdateResult.
      Parameters:
      dto - the updated DTO
      parentResult - the parent update result, or null if none
  • Method Details

    • getDto

      public Object getDto()
      Returns the updated DTO.
      Returns:
      the updated DTO
    • setDto

      public void setDto(Object dto)
      Sets the updated DTO.
      Parameters:
      dto - the updated DTO
    • getUpdateResult

      public UpdateResult getUpdateResult()
      Returns the underlying update result.
      Returns:
      the update result
    • setUpdateResult

      public void setUpdateResult(UpdateResult updateResult)
      Sets the underlying update result.
      Parameters:
      updateResult - the update result
    • getParentResult

      public @Nullable DtoUpdateResult getParentResult()
      Returns the parent update result.
      Returns:
      the parent result, or null if none