Class JpaScheduledJobDetail
java.lang.Object
com.broadleafcommerce.scheduledjob.provider.jpa.domain.JpaScheduledJobDetail
- All Implemented Interfaces:
Serializable
Persistent counter-part to a
ScheduledJobDetail
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getJob()
getName()
getValue()
Stores the scheduled job detail value serialized as a JSON string in the data store.int
hashCode()
void
setJob
(JpaScheduledJob job) void
Sets the value and determines and sets the SHA of the value.void
setValueSha
(String valueSha) toString()
-
Constructor Details
-
JpaScheduledJobDetail
public JpaScheduledJobDetail()
-
-
Method Details
-
setValue
Sets the value and determines and sets the SHA of the value.- Parameters:
value
- the value to serialize and set asvalue
-
getJob
-
getName
- See Also:
-
getValueSha
-
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:
-
setJob
-
setName
- See Also:
-
setValueSha
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-