Class BatchItem
java.lang.Object
com.broadleafcommerce.dataimport.domain.BatchItem
- Author:
- Phillip Verheyden (phillipuniverse)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDependentItem
(BatchItem dependentItem) Adds a BatchItem to the list of dependents.protected 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
The line number in the original data file that this item appears in.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 examinedOverall status for this itemint
hashCode()
setCorrelationId
(String correlationId) void
setDependents
(List<BatchItem> 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) The line number in the original data file that this item appears in.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) Overall status for this itemtoString()
-
Constructor Details
-
BatchItem
-
BatchItem
public BatchItem()
-
-
Method Details
-
setCorrelationId
-
addDependentItem
Adds a BatchItem to the list of dependents.- Parameters:
dependentItem
-
-
getLineNumber
public long getLineNumber()The line number in the original data file that this item appears in. The numbering does not exclude any header lines at the start of the file. For instance, this generally means that all items in a CSV import will have a line number greater than or equal to 2, since line number 1 is the header line. -
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
-
getRow
A row of data being examined -
getDependents
Items that should be conceptually linked to the parent record that represents this item -
getStatus
Overall status for this item -
getErrorMessage
IfsetStatus(BatchItemStatus)
isBatchItemStatus.ERROR
then this contains a message detailing what the problem was -
setLineNumber
public void setLineNumber(long lineNumber) The line number in the original data file that this item appears in. The numbering does not exclude any header lines at the start of the file. For instance, this generally means that all items in a CSV import will have a line number greater than or equal to 2, since line number 1 is the header line. -
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
-
setRow
A row of data being examined -
setDependents
Items that should be conceptually linked to the parent record that represents this item -
setStatus
Overall status for this item -
setErrorMessage
IfsetStatus(BatchItemStatus)
isBatchItemStatus.ERROR
then this contains a message detailing what the problem was -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-