Class JpaBulkUpdate
- java.lang.Object
 - 
- com.broadleafcommerce.bulk.provider.jpa.domain.JpaBulkUpdate
 
 
- 
- All Implemented Interfaces:
 com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware,com.broadleafcommerce.data.tracking.core.Identifiable,com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware,com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable,Serializable
@Entity public class JpaBulkUpdate extends Object implements com.broadleafcommerce.data.tracking.core.Identifiable, Serializable, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
Persistent counter-part to aBulkUpdatefor use with a JPA-supported datastore.- Author:
 - Samarth Dhruva (samarthd)
 - See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description JpaBulkUpdate() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)org.modelmapper.ModelMapperfromMe()Stringget_errors()Stores aListofJpaBulkUpdateErrorserialized as a JSON in the data store.StringgetApplicationId()StringgetAuthor()Class<?>getBusinessDomainType()InstantgetCreated()List<JpaBulkUpdateError>getErrors()Provides a way for callers to get the_errorswithout dealing with the deserialization aspect.List<String>getExclusions()StringgetFilterString()StringgetId()List<String>getInclusions()InstantgetLastUpdated()StringgetName()List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState>getNotificationStates()List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState>getNotificationStates(boolean fetch)longgetNumberOfRecordsProcessed()StringgetSerializedPayload()BulkUpdateStatusgetStatus()StringgetTarget()StringgetTenantId()longgetTotalRecordsToProcess()StringgetType()StringgetUpdatingApplicationId()StringgetUpdatingCatalogId()StringgetUpdatingCustomerContextId()StringgetUpdatingSandboxId()StringgetUpdatingSandboxName()inthashCode()booleanisProductionBulkUpdate()voidset_errors(String _errors)Stores aListofJpaBulkUpdateErrorserialized as a JSON in the data store.voidsetApplicationId(String applicationId)voidsetAuthor(String author)voidsetCreated(Instant created)voidsetErrors(List<JpaBulkUpdateError> errors)Provides a way for callers to set the_errorswithout dealing with the serialization aspect.voidsetExclusions(List<String> exclusions)voidsetFilterString(String filterString)voidsetId(String id)voidsetInclusions(List<String> inclusions)voidsetLastUpdated(Instant lastUpdated)voidsetName(String name)voidsetNotificationStates(List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState> notificationStates)voidsetNumberOfRecordsProcessed(long numberOfRecordsProcessed)voidsetProductionBulkUpdate(boolean productionBulkUpdate)voidsetSerializedPayload(String serializedPayload)voidsetStatus(BulkUpdateStatus status)voidsetTarget(String target)voidsetTenantId(String tenantId)voidsetTotalRecordsToProcess(long totalRecordsToProcess)voidsetType(String type)voidsetUpdatingApplicationId(String updatingApplicationId)voidsetUpdatingCatalogId(String updatingCatalogId)voidsetUpdatingCustomerContextId(String updatingCustomerContextId)voidsetUpdatingSandboxId(String updatingSandboxId)voidsetUpdatingSandboxName(String updatingSandboxName)org.modelmapper.ModelMappertoMe()StringtoString()- 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getStatus
@Nullable public BulkUpdateStatus getStatus()
 
- 
setStatus
public void setStatus(@Nullable BulkUpdateStatus status) 
- 
setErrors
public void setErrors(@Nullable List<JpaBulkUpdateError> errors)Provides a way for callers to set the_errorswithout dealing with the serialization aspect.- Parameters:
 errors- the errors to serialize and set as_errors- See Also:
 BulkUpdateErrorListConverter
 
- 
getErrors
@Nullable public List<JpaBulkUpdateError> getErrors()
Provides a way for callers to get the_errorswithout dealing with the deserialization aspect.- Returns:
 - a deserialized representation of 
_errors - See Also:
 BulkUpdateErrorListConverter
 
- 
setNotificationStates
public void setNotificationStates(List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState> notificationStates)
- Specified by:
 setNotificationStatesin interfacecom.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
 
- 
getNotificationStates
public List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState> getNotificationStates()
- Specified by:
 getNotificationStatesin interfacecom.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
 
- 
getNotificationStates
public List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState> getNotificationStates(boolean fetch)
- Specified by:
 getNotificationStatesin interfacecom.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
 
- 
fromMe
@NonNull public org.modelmapper.ModelMapper fromMe()
- Specified by:
 fromMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
 
- 
toMe
@NonNull public org.modelmapper.ModelMapper toMe()
- Specified by:
 toMein interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
 
- 
getBusinessDomainType
public Class<?> getBusinessDomainType()
- Specified by:
 getBusinessDomainTypein interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
 
- 
getId
public String getId()
- Specified by:
 getIdin interfacecom.broadleafcommerce.data.tracking.core.Identifiable- See Also:
 BulkUpdate.getId()
 
- 
getName
public String getName()
- See Also:
 BulkUpdate.getName()
 
- 
get_errors
public String get_errors()
Stores aListofJpaBulkUpdateErrorserialized as a JSON in the data store.Generally speaking, callers should use
getErrors()andsetErrors(List)and not directly deal with this field. In rare circumstances (such as update queries likeJpaCustomizedBulkUpdateRepository.setContainedErrors(JpaBulkUpdate)), it may make sense to directly modify this value.Rather than simply annotating the column with the
@Convertannotation, we have different methods that manually invoke theBulkUpdateErrorListConverter. This is because the automatic-conversion does not work properly when usingCriteriaUpdate. Hibernate would forcefully attempt to split the list into multiple query parameters and convert the elements individually (inQueryParameterBindingsImpl.expandListValuedParameters(java.lang.String, org.hibernate.engine.spi.SharedSessionContractImplementor)), which caused errors to be thrown.- See Also:
 BulkUpdate.getErrors(),getErrors(),setErrors(List)
 
- 
getTotalRecordsToProcess
public long getTotalRecordsToProcess()
- See Also:
 BulkUpdate.getTotalRecordsToProcess()
 
- 
getNumberOfRecordsProcessed
public long getNumberOfRecordsProcessed()
- See Also:
 BulkUpdate.getNumberOfRecordsProcessed()
 
- 
getFilterString
public String getFilterString()
- See Also:
 BulkUpdate.getFilterString()
 
- 
getExclusions
public List<String> getExclusions()
- See Also:
 BulkUpdate.getExclusions()
 
- 
getInclusions
public List<String> getInclusions()
- See Also:
 BulkUpdate.getInclusions()
 
- 
getCreated
public Instant getCreated()
- See Also:
 BulkUpdate.getCreated()
 
- 
getLastUpdated
public Instant getLastUpdated()
- See Also:
 BulkUpdate.getLastUpdated()
 
- 
getType
public String getType()
- See Also:
 BulkUpdate.getType()
 
- 
getSerializedPayload
public String getSerializedPayload()
- See Also:
 BulkUpdate.getSerializedPayload()
 
- 
getTarget
public String getTarget()
- See Also:
 BulkUpdate.getTarget()
 
- 
getUpdatingSandboxId
public String getUpdatingSandboxId()
- See Also:
 BulkUpdate.getUpdatingSandboxId()
 
- 
getUpdatingSandboxName
public String getUpdatingSandboxName()
- See Also:
 BulkUpdate.getUpdatingSandboxName()
 
- 
getApplicationId
public String getApplicationId()
- See Also:
 BulkUpdate.getApplicationId()
 
- 
getTenantId
public String getTenantId()
- See Also:
 BulkUpdate.getTenantId()
 
- 
getAuthor
public String getAuthor()
- See Also:
 BulkUpdate.getAuthor()
 
- 
getUpdatingApplicationId
public String getUpdatingApplicationId()
- See Also:
 BulkUpdate.getUpdatingApplicationId()
 
- 
getUpdatingCatalogId
public String getUpdatingCatalogId()
- See Also:
 BulkUpdate.getUpdatingCatalogId()
 
- 
getUpdatingCustomerContextId
public String getUpdatingCustomerContextId()
 
- 
isProductionBulkUpdate
public boolean isProductionBulkUpdate()
 
- 
setId
public void setId(String id)
- See Also:
 BulkUpdate.getId()
 
- 
setName
public void setName(String name)
- See Also:
 BulkUpdate.getName()
 
- 
set_errors
public void set_errors(String _errors)
Stores aListofJpaBulkUpdateErrorserialized as a JSON in the data store.Generally speaking, callers should use
getErrors()andsetErrors(List)and not directly deal with this field. In rare circumstances (such as update queries likeJpaCustomizedBulkUpdateRepository.setContainedErrors(JpaBulkUpdate)), it may make sense to directly modify this value.Rather than simply annotating the column with the
@Convertannotation, we have different methods that manually invoke theBulkUpdateErrorListConverter. This is because the automatic-conversion does not work properly when usingCriteriaUpdate. Hibernate would forcefully attempt to split the list into multiple query parameters and convert the elements individually (inQueryParameterBindingsImpl.expandListValuedParameters(java.lang.String, org.hibernate.engine.spi.SharedSessionContractImplementor)), which caused errors to be thrown.- See Also:
 BulkUpdate.getErrors(),getErrors(),setErrors(List)
 
- 
setTotalRecordsToProcess
public void setTotalRecordsToProcess(long totalRecordsToProcess)
- See Also:
 BulkUpdate.getTotalRecordsToProcess()
 
- 
setNumberOfRecordsProcessed
public void setNumberOfRecordsProcessed(long numberOfRecordsProcessed)
- See Also:
 BulkUpdate.getNumberOfRecordsProcessed()
 
- 
setFilterString
public void setFilterString(String filterString)
- See Also:
 BulkUpdate.getFilterString()
 
- 
setExclusions
public void setExclusions(List<String> exclusions)
- See Also:
 BulkUpdate.getExclusions()
 
- 
setInclusions
public void setInclusions(List<String> inclusions)
- See Also:
 BulkUpdate.getInclusions()
 
- 
setCreated
public void setCreated(Instant created)
- See Also:
 BulkUpdate.getCreated()
 
- 
setLastUpdated
public void setLastUpdated(Instant lastUpdated)
- See Also:
 BulkUpdate.getLastUpdated()
 
- 
setType
public void setType(String type)
- See Also:
 BulkUpdate.getType()
 
- 
setSerializedPayload
public void setSerializedPayload(String serializedPayload)
- See Also:
 BulkUpdate.getSerializedPayload()
 
- 
setTarget
public void setTarget(String target)
- See Also:
 BulkUpdate.getTarget()
 
- 
setUpdatingSandboxId
public void setUpdatingSandboxId(String updatingSandboxId)
- See Also:
 BulkUpdate.getUpdatingSandboxId()
 
- 
setUpdatingSandboxName
public void setUpdatingSandboxName(String updatingSandboxName)
- See Also:
 BulkUpdate.getUpdatingSandboxName()
 
- 
setApplicationId
public void setApplicationId(String applicationId)
- See Also:
 BulkUpdate.getApplicationId()
 
- 
setTenantId
public void setTenantId(String tenantId)
- See Also:
 BulkUpdate.getTenantId()
 
- 
setAuthor
public void setAuthor(String author)
- See Also:
 BulkUpdate.getAuthor()
 
- 
setUpdatingApplicationId
public void setUpdatingApplicationId(String updatingApplicationId)
- See Also:
 BulkUpdate.getUpdatingApplicationId()
 
- 
setUpdatingCatalogId
public void setUpdatingCatalogId(String updatingCatalogId)
- See Also:
 BulkUpdate.getUpdatingCatalogId()
 
- 
setUpdatingCustomerContextId
public void setUpdatingCustomerContextId(String updatingCustomerContextId)
 
- 
setProductionBulkUpdate
public void setProductionBulkUpdate(boolean productionBulkUpdate)
 
- 
canEqual
protected boolean canEqual(Object other)
 
 - 
 
 -