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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
org.modelmapper.ModelMapper
fromMe()
Class<?>
Identifier that allows the resource tier to map back responses to a record within the batch.getId()
long
List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState>
List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState>
getNotificationStates
(boolean fetch) com.broadleafcommerce.common.dataimport.messaging.OperationType
Identifier for the record at the resource tier which is associated after the record is persistedgetRow()
Intentionally not using theUlidConverter
here, since the value may just be the string version of the line number.int
hashCode()
void
setCorrelationId
(String correlationId) Identifier that allows the resource tier to map back responses to a record within the batch.void
setErrorMessage
(String errorMessage) void
void
setImportId
(String importId) void
setLineNumber
(long lineNumber) void
setNotificationStates
(List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState> notificationStates) setOperation
(com.broadleafcommerce.common.dataimport.messaging.OperationType operation) void
setRecordType
(String recordType) void
setResourceTierIdentifier
(String resourceTierIdentifier) Identifier for the record at the resource tier which is associated after the record is persistedvoid
setStatus
(BatchItemStatus status) void
setTopLevelParentCorrelationId
(String topLevelParentCorrelationId) Intentionally not using theUlidConverter
here, since the value may just be the string version of the line number.org.modelmapper.ModelMapper
toMe()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
postFromMe, postToMe, preFromMe, preToMe
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
findNotificationState
-
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
-
setStatus
-
setNotificationStates
public void setNotificationStates(List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState> notificationStates) - Specified by:
setNotificationStates
in interfacecom.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
-
getNotificationStates
public List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState> getNotificationStates()- Specified by:
getNotificationStates
in interfacecom.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
-
getNotificationStates
public List<com.broadleafcommerce.common.messaging.notification.domain.NotificationState> getNotificationStates(boolean fetch) - Specified by:
getNotificationStates
in interfacecom.broadleafcommerce.common.messaging.notification.domain.NotificationStateAware
-
getBusinessDomainType
- Specified by:
getBusinessDomainType
in interfacecom.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
-
fromMe
public org.modelmapper.ModelMapper fromMe()- Specified by:
fromMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
toMe
public org.modelmapper.ModelMapper toMe()- Specified by:
toMe
in interfacecom.broadleafcommerce.data.tracking.core.mapping.ModelMapperMappable
-
getId
- Specified by:
getId
in interfacecom.broadleafcommerce.data.tracking.core.Identifiable
- See Also:
-
BatchItemCompletion.id
-
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
- See Also:
-
BatchItemCompletion.recordType
-
getTopLevelParentCorrelationId
Intentionally not using theUlidConverter
here, since the value may just be the string version of the line number.- See Also:
-
BatchItemCompletion.topLevelParentCorrelationId
-
getResourceTierIdentifier
Identifier for the record at the resource tier which is associated after the record is persisted -
getImportId
- See Also:
-
BatchItemCompletion.importId
-
getLineNumber
public long getLineNumber()- See Also:
-
BatchItemCompletion.lineNumber
-
getErrorMessage
- See Also:
-
BatchItemCompletion.errorMessage
-
getRow
- See Also:
-
BatchItemCompletion.row
-
setId
- See Also:
-
BatchItemCompletion.id
-
setCorrelationId
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
- See Also:
-
BatchItemCompletion.recordType
-
setTopLevelParentCorrelationId
Intentionally not using theUlidConverter
here, since the value may just be the string version of the line number.- See Also:
-
BatchItemCompletion.topLevelParentCorrelationId
-
setResourceTierIdentifier
Identifier for the record at the resource tier which is associated after the record is persisted -
setImportId
- See Also:
-
BatchItemCompletion.importId
-
setLineNumber
public void setLineNumber(long lineNumber) - See Also:
-
BatchItemCompletion.lineNumber
-
setErrorMessage
- See Also:
-
BatchItemCompletion.errorMessage
-
setRow
- See Also:
-
BatchItemCompletion.row
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-