Class JpaBatchItem
java.lang.Object
com.broadleafcommerce.dataimport.provider.jpa.domain.JpaBatchItem
A logical record from a flat file. This could have spanned multiple physical records from the
flat file if the logical "parent" record has dependents located within it, laid out in multiple
physical rows. Example could be a PRODUCT physical record that contains OPTION records laid out
as separate lines but grouped together
Persistent counter-part to a BatchItem
for use with a JPA-supported datastore.
- Author:
- Phillip Verheyden (phillipuniverse)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Identifier that allows the resource tier to map back responses to a record within the batchItems that should be conceptually linked to the parent record that represents this itemIfsetStatus(BatchItemStatus)
isBatchItemStatus.ERROR
then this contains a message detailing what the problem waslong
com.broadleafcommerce.common.dataimport.messaging.OperationType
In a multi-typed record file this holds the specific information of what was parsed out from the line in the file.getRow()
A row of data being examinedint
hashCode()
void
setCorrelationId
(String correlationId) Identifier that allows the resource tier to map back responses to a record within the batchvoid
setDependents
(List<JpaBatchItem> dependents) Items that should be conceptually linked to the parent record that represents this itemvoid
setErrorMessage
(String errorMessage) IfsetStatus(BatchItemStatus)
isBatchItemStatus.ERROR
then this contains a message detailing what the problem wasvoid
setLineNumber
(long lineNumber) void
setOperation
(com.broadleafcommerce.common.dataimport.messaging.OperationType operation) void
setRecordType
(String recordType) In a multi-typed record file this holds the specific information of what was parsed out from the line in the file.void
setResourceTierIdentifier
(String resourceTierIdentifier) void
A row of data being examinedvoid
setStatus
(BatchItemStatus status) toString()
-
Constructor Details
-
JpaBatchItem
public JpaBatchItem()
-
-
Method Details
-
getLineNumber
public long getLineNumber() -
getCorrelationId
Identifier that allows the resource tier to map back responses to a record within the batch -
getRecordType
In a multi-typed record file this holds the specific information of what was parsed out from the line in the file. For example in a product import there arePRODUCT
,VARIANT
,INCLUDED_PRODUCT
-
getOperation
public com.broadleafcommerce.common.dataimport.messaging.OperationType getOperation() -
getResourceTierIdentifier
-
getStatus
-
getErrorMessage
IfsetStatus(BatchItemStatus)
isBatchItemStatus.ERROR
then this contains a message detailing what the problem was -
getRow
A row of data being examined -
getDependents
Items that should be conceptually linked to the parent record that represents this item -
setLineNumber
public void setLineNumber(long lineNumber) -
setCorrelationId
Identifier that allows the resource tier to map back responses to a record within the batch -
setRecordType
In a multi-typed record file this holds the specific information of what was parsed out from the line in the file. For example in a product import there arePRODUCT
,VARIANT
,INCLUDED_PRODUCT
-
setOperation
public void setOperation(com.broadleafcommerce.common.dataimport.messaging.OperationType operation) -
setResourceTierIdentifier
-
setStatus
-
setErrorMessage
IfsetStatus(BatchItemStatus)
isBatchItemStatus.ERROR
then this contains a message detailing what the problem was -
setRow
A row of data being examined -
setDependents
Items that should be conceptually linked to the parent record that represents this item -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-