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 aScheduledJobDetailfor 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 booleancanEqual(Object other)booleanequals(Object o)JpaScheduledJobgetJob()StringgetName()StringgetValue()Stores the scheduled job detail value serialized as a JSON string in the data store.StringgetValueSha()inthashCode()voidsetJob(JpaScheduledJob job)voidsetName(String name)JpaScheduledJobDetailsetValue(String value)Sets the value and determines and sets the SHA of the value.voidsetValueSha(String valueSha)StringtoString()
-
-
-
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
@Convertannotation, we have different methods that manually invoke theScheduledJobDetailValueConverter. This is because automatic conversion sometimes has problems withCriteriaQueryandCriteriaUpdate.- 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)
-
-