Class JpaScheduledJobDetail
- java.lang.Object
-
- com.broadleafcommerce.scheduledjob.provider.jpa.domain.JpaScheduledJobDetail
-
- All Implemented Interfaces:
Serializable
@Entity public class JpaScheduledJobDetail extends Object implements Serializable
Persistent counter-part to aScheduledJobDetail
for use with a JPA-supported datastore.We use a composite key of the job ID + detail name + detail value to ensure JPA recognizes which details are the same and which details are new based upon these fields rather than some separate ID field.
- Author:
- Samarth Dhruva (samarthd)
- See Also:
ScheduledJobDetail
,JpaScheduledJob.getDetails()
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JpaScheduledJobDetail()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
JpaScheduledJob
getJob()
String
getName()
String
getValue()
Stores the scheduled job detail value serialized as a JSON string in the data store.String
getValueSha()
int
hashCode()
void
setJob(JpaScheduledJob job)
void
setName(String name)
JpaScheduledJobDetail
setValue(String value)
Sets the value and determines and sets the SHA of the value.void
setValueSha(String valueSha)
String
toString()
-
-
-
Method Detail
-
setValue
public JpaScheduledJobDetail setValue(String value)
Sets the value and determines and sets the SHA of the value.- Parameters:
value
- the value to serialize and set asvalue
-
getJob
public JpaScheduledJob getJob()
-
getName
public String getName()
- See Also:
ScheduledJobDetail.getName()
-
getValueSha
public String getValueSha()
-
getValue
public String getValue()
Stores the scheduled job detail value serialized as a JSON string in the data store.Generally speaking, callers should use
getValue()
andsetValue(String)
and not directly deal with this field. In rare circumstances (like a customCriteriaQuery
), it may make sense to directly access this value.Rather than simply annotating the column with the
@Convert
annotation, we have different methods that manually invoke theScheduledJobDetailValueConverter
. This is because automatic conversion sometimes has problems withCriteriaQuery
andCriteriaUpdate
.- See Also:
ScheduledJobDetail.getRawValue()
-
setJob
public void setJob(JpaScheduledJob job)
-
setName
public void setName(String name)
- See Also:
ScheduledJobDetail.getName()
-
setValueSha
public void setValueSha(String valueSha)
-
canEqual
protected boolean canEqual(Object other)
-
-