Class PipelineJobEventValueObject
java.lang.Object
ubic.gemma.model.pipeline.PipelineJobEventValueObject
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanstatic PipelineJobEventValueObjectfrom(PipelineJobEvent event) Project an event.getId()getJobId()getKind()inthashCode()voidvoidvoidvoidsetOccurredAt(Date occurredAt) voidsetPayloadJson(String payloadJson) toString()
-
Constructor Details
-
PipelineJobEventValueObject
public PipelineJobEventValueObject()
-
-
Method Details
-
from
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
-
getJobId
-
getOccurredAt
-
getKind
-
getPayloadJson
-
setId
-
setJobId
-
setOccurredAt
-
setKind
-
setPayloadJson
-
equals
-
canEqual
-
hashCode
-
toString
-