Class PipelineJobEventValueObject

java.lang.Object
ubic.gemma.model.pipeline.PipelineJobEventValueObject
All Implemented Interfaces:
Serializable

public class PipelineJobEventValueObject extends Object implements Serializable
Value object projection of PipelineJobEvent for the REST surface.

Why this exists

The endpoints used to return the entity. PipelineJobEvent.getJob() is a lazy @ManyToOne, so serializing one walked into PipelineJob and from there into the whole experiment graph — see PipelineJobBatchValueObject for what that cost the specification. This carries the owning job as an id instead.
Author:
phase3
See Also:
  • Constructor Details

    • PipelineJobEventValueObject

      public PipelineJobEventValueObject()
  • Method Details

    • from

      public static PipelineJobEventValueObject from(PipelineJobEvent event)
      Project an event.

      Reads the owning job's identifier off the proxy rather than the job itself, which does not initialize it — the same thing PipelineJob.equals(Object) relies on.

    • getId

      public Long getId()
    • getJobId

      public Long getJobId()
    • getOccurredAt

      public Date getOccurredAt()
    • getKind

      public String getKind()
    • getPayloadJson

      @Nullable public String getPayloadJson()
    • setId

      public void setId(Long id)
    • setJobId

      public void setJobId(Long jobId)
    • setOccurredAt

      public void setOccurredAt(Date occurredAt)
    • setKind

      public void setKind(String kind)
    • setPayloadJson

      public void setPayloadJson(@Nullable String payloadJson)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object