Record Class AbstractCuratableValueObject.LastEventTriple

java.lang.Object
java.lang.Record
ubic.gemma.model.common.auditAndSecurity.curation.AbstractCuratableValueObject.LastEventTriple
Enclosing class:
AbstractCuratableValueObject<C extends Curatable>

public static record AbstractCuratableValueObject.LastEventTriple(AuditEvent troubled, AuditEvent needsAttention, AuditEvent noteUpdate) extends Record
Pre-fetched triple of "last X event" associations off a CurationDetails, batch-loaded per page of curatable entities to avoid the NĂ—3-SELECT proxy-init cost of letting each VO constructor touch the three lazy proxies on its own. See ExpressionExperimentDaoImpl#loadLastEventsByExperimentIds(Collection).
  • Constructor Details

    • LastEventTriple

      public LastEventTriple(@Nullable AuditEvent troubled, @Nullable AuditEvent needsAttention, @Nullable AuditEvent noteUpdate)
      Creates an instance of a LastEventTriple record class.
      Parameters:
      troubled - the value for the troubled record component
      needsAttention - the value for the needsAttention record component
      noteUpdate - the value for the noteUpdate record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • troubled

      @Nullable public AuditEvent troubled()
      Returns the value of the troubled record component.
      Returns:
      the value of the troubled record component
    • needsAttention

      @Nullable public AuditEvent needsAttention()
      Returns the value of the needsAttention record component.
      Returns:
      the value of the needsAttention record component
    • noteUpdate

      @Nullable public AuditEvent noteUpdate()
      Returns the value of the noteUpdate record component.
      Returns:
      the value of the noteUpdate record component