Class JpaBatchItemCompletion

java.lang.Object
com.broadleafcommerce.dataimport.provider.jpa.domain.JpaBatchItemCompletion
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 JpaBatchItemCompletion extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware, com.broadleafcommerce.data.tracking.core.Identifiable
Persistent counter-part to a BatchItemCompletion for use with a JPA-supported datastore.
Author:
Samarth Dhruva (samarthd)
See Also:
  • Constructor Details

    • JpaBatchItemCompletion

      public JpaBatchItemCompletion()
  • Method Details

    • getOperation

      @Nullable public com.broadleafcommerce.common.dataimport.messaging.OperationType getOperation()
    • setOperation

      public JpaBatchItemCompletion setOperation(@Nullable com.broadleafcommerce.common.dataimport.messaging.OperationType operation)
    • getStatus

      @Nullable public BatchItemStatus getStatus()
    • setStatus

      public JpaBatchItemCompletion setStatus(@Nullable BatchItemStatus status)
    • setNotificationStates

      public void setNotificationStates(List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState> notificationStates)
      Specified by:
      setNotificationStates in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
    • getNotificationStates

      public List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState> getNotificationStates()
      Specified by:
      getNotificationStates in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
    • getNotificationStates

      public List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState> getNotificationStates(boolean fetch)
      Specified by:
      getNotificationStates in interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
    • getBusinessDomainType

      public Class<?> getBusinessDomainType()
      Specified by:
      getBusinessDomainType in interface com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
    • fromMe

      public org.modelmapper.ModelMapper fromMe()
      Specified by:
      fromMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
    • toMe

      public org.modelmapper.ModelMapper toMe()
      Specified by:
      toMe in interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
    • getId

      public String getId()
      Specified by:
      getId in interface com.broadleafcommerce.data.tracking.core.Identifiable
      See Also:
      • BatchItemCompletion.id
    • getCorrelationId

      public String getCorrelationId()
      Identifier that allows the resource tier to map back responses to a record within the batch.

      Intentionally not using the UlidConverter here, since the value may just be the string version of the line number.

    • getRecordType

      public String getRecordType()
      See Also:
      • BatchItemCompletion.recordType
    • getTopLevelParentCorrelationId

      @Nullable public String getTopLevelParentCorrelationId()
      Intentionally not using the UlidConverter here, since the value may just be the string version of the line number.
      See Also:
      • BatchItemCompletion.topLevelParentCorrelationId
    • getResourceTierIdentifier

      @Nullable public String getResourceTierIdentifier()
      Identifier for the record at the resource tier which is associated after the record is persisted
    • getImportId

      public String getImportId()
      See Also:
      • BatchItemCompletion.importId
    • getLineNumber

      public long getLineNumber()
      See Also:
      • BatchItemCompletion.lineNumber
    • getErrorMessage

      @Nullable public String getErrorMessage()
      See Also:
      • BatchItemCompletion.errorMessage
    • getRow

      public Map<String,String> getRow()
      See Also:
      • BatchItemCompletion.row
    • setId

      public void setId(String id)
      See Also:
      • BatchItemCompletion.id
    • setCorrelationId

      public void setCorrelationId(String correlationId)
      Identifier that allows the resource tier to map back responses to a record within the batch.

      Intentionally not using the UlidConverter here, since the value may just be the string version of the line number.

    • setRecordType

      public void setRecordType(String recordType)
      See Also:
      • BatchItemCompletion.recordType
    • setTopLevelParentCorrelationId

      public void setTopLevelParentCorrelationId(@Nullable String topLevelParentCorrelationId)
      Intentionally not using the UlidConverter here, since the value may just be the string version of the line number.
      See Also:
      • BatchItemCompletion.topLevelParentCorrelationId
    • setResourceTierIdentifier

      public void setResourceTierIdentifier(@Nullable String resourceTierIdentifier)
      Identifier for the record at the resource tier which is associated after the record is persisted
    • setImportId

      public void setImportId(String importId)
      See Also:
      • BatchItemCompletion.importId
    • setLineNumber

      public void setLineNumber(long lineNumber)
      See Also:
      • BatchItemCompletion.lineNumber
    • setErrorMessage

      public void setErrorMessage(@Nullable String errorMessage)
      See Also:
      • BatchItemCompletion.errorMessage
    • setRow

      public void setRow(Map<String,String> row)
      See Also:
      • BatchItemCompletion.row
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object