Class BatchItem
java.lang.Object
com.broadleafcommerce.dataimport.domain.BatchItem
- Author:
- Phillip Verheyden (phillipuniverse)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDependentItem(BatchItem dependentItem) Adds a BatchItem to the list of dependents.protected booleanbooleanIdentifier 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.ERRORthen this contains a message detailing what the problem waslongThe line number in the original data file that this item appears in.com.broadleafcommerce.common.dataimport.messaging.OperationTypeIn 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 iteminthashCode()setCorrelationId(String correlationId) voidsetDependents(List<BatchItem> dependents) Items that should be conceptually linked to the parent record that represents this itemvoidsetErrorMessage(String errorMessage) IfsetStatus(BatchItemStatus)isBatchItemStatus.ERRORthen this contains a message detailing what the problem wasvoidsetLineNumber(long lineNumber) The line number in the original data file that this item appears in.voidsetOperation(com.broadleafcommerce.common.dataimport.messaging.OperationType operation) voidsetRecordType(String recordType) In a multi-typed record file this holds the specific information of what was parsed out from the line in the file.voidsetResourceTierIdentifier(String resourceTierIdentifier) voidA row of data being examinedvoidsetStatus(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.ERRORthen 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.ERRORthen this contains a message detailing what the problem was -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-